C# - Securely store a string of text - C#
Hi,I have an application that sends an email to the developer team each time an error is handled.I am using a gmail account and the password for it is passed to a System.Net.NetworkCredentialThe...
View Articlec# main form property
Hi all,How can you programmatically change the main form in a c# application?Thank you
View ArticleHow can open a Template Word in Resources ?
Hi I'veput a file inside Template WordAnd I've written the following code Microsoft.Office.Interop.Word.Application aplication = new Microsoft.Office.Interop.Word.Application();...
View ArticleCreating and calling windows form in dll file
Can we create and then call windows form for ex From1 in the class library dll project? I am creating a windows form in the dll, but after execution through the other Application, it displays windows...
View Articlereturn outside nested methods
hello ....i have nested function and the inner method cause an error i want to return from the parent method , an example:public void DoSomething(){try{}catch(exception){}}public void...
View ArticleNeed Help to Save order in Microsoft Nav 2009 R2 with help of .NET c#
Hi Guys, Help me to resolve my issue..Thanks
View ArticleCreating an object out of an XML file
I need to create an XML file and send it over to an external client. We have an agreed upon layout with about 100 fields. We have a master layout and within that there is a place to send variables....
View ArticleC# determine if COM port is a virtual serial port connected via bluetooth
In c# how would i determine if a serial port is blue tooth? i have some code that executes when i have a device connected to a com port. It attempts to shift the baud, which is fine when hard wired...
View ArticleCode refactoring - using simple list instead of methods to add/remove/clear
Hi All,Let me place my code first. private readonly List<string> myViewSettingNameList = new List<string>(); public IEnumerable<string> ViewSettings {...
View ArticleFolder Browser Dialog - New Folder problem
Hi all,Let me preface with the fact that I am using VS2008 .net 3.5 and this may be fixed in later versions; we just have not upgraded our development platform yet.I am using the folder browser dialog...
View ArticleCreating controls with transparency and gradients in a c# winform in visual...
How to create a gradient transparency on a panel created in visual studio C# winform? Is it possible and is there any code out there that can help me?Debra has a question
View ArticleReading HTML-Table data
Hi,I have a HTML file which has the following table. How to read that HTML file and retrieve 'Last Name' and display it using c#?First NameLast NamedanielvettorimikejackThanks !
View ArticleHow to block keypresses from reaching main form
Hello, I have been writing an application that will capture output from a barcode scanner. The scanner wedges itself in between the keyboard and the OS and sends the barcode as a sequence of key...
View Articleupdate data in database
Hi,Im trying to update columns data in database .protected void update_Click(object sender, EventArgs e) { UpdateDetails2DB(); }Here is procedure for update ALTER PROCEDURE [dbo].[SP_updateDetails] --...
View ArticleUpdating source xml file when binding
HiI'm raw when it comes to using WPF and c# so forgive me if I'm asking a basic question.<o:p></o:p>I have a Stackpanel with a Listbox and a set of Textblocks which are bound together. The...
View ArticleExecuting SQL within an event routine
Hello Everyone: I've a lot of experience with php, and other languages. But C# is completely new to me. I'm working in Visual C# 2010 express and doing some experimentation. My project uses the...
View ArticleTrying to display multipage tiff image getting error
Hi I am trying to read multipage tiff image but dont know howI tried to display single page tiff getting errormy code is using System; using System.Collections.Generic; using System.Linq; using...
View ArticleProblems creating Windows Service-based multiple file watchers
Just wondering if this is a sound design.I'm creating a C# Windows Service in VS2012. The basic concept is that I don't know how many folders I might be watching so the FileSystemWatchers are...
View Articlewhen accessing variables from one form to another I cannot get it to update
I have 2 forms (FormMain & Live)I need to populate a textbox in form Live with variables from FormMain and continue to update the textbox.In FormMain I have ....... private void timer1_Tick(object...
View ArticleUnAuthorizedAccessException. How to attain the permissions to create...
Hello everybody,I have a folder in C drive and I wanted to pass the text from richTextBox to the file. The following code to print the file works fine:System.IO.StreamWriter file = new...
View Article