Advertisement

635 organizations, including eBay, Ericsson and Lockheed Martin, now work smarter with Corporate Accounts. Save up to 42%

 

Welcome! If you have any general questions about Experts Exchange, feel free to ask me.

 
Top C# Solutions: 26 - 50 of 1220
 
hi, i found this code on the net. been playing with it. but i would like to know is it possible on "richTextBox1.AppendText()" event in 2 colors. timestamp::Mytext timestamp =  black Myte...
I'm trying to draw a barcode image. I have the barcode font installed on my server and using the code below i can draw text to my screen using the font BUT it comes out too blurry so when i go...
Currently what I have implemented is a ListBox combined with a CheckedListBox, to make a "SwitchingCheckedListBox". I need the ListBox to highlight certain lines red (The highlighted lines may...
Retrieving binary data from MSSQL using C# I have a web application where the user can attach a document or file through the UI using the FileUpLoad control. The results are then populated ...
In my following code I am using Transaction Scope to monitor the database transaction. I want to know: (1) What is the difference between SQLTransaction and Transaction Scope? (2) In Trans...
I have a textbox which hold a currency value like that : Double total = 198.99; txt_total.Text = decimal.Parse(total.ToString()).ToString("C"); // It displays "198.99 $" that works fine...
I have a Form with a command button named "Modify" on it. When the user clicks Modify button, another small Form will open that will ask the Employee Code. After entering the Employee Code the...
Hello Experts, I have two XML files that are identical except for one or more elements. Is there a way to compare these two XML files and remove a particular sub element from every top leve...
Hi,       I want to show a message to user "Are you shure u want to proceed?" if the user clicks "OK" i want to run certain code in c# if the user clicks "Cancel" i want to run other code...
I get this error with this query.  Query is the result of c# code. insert into utilitybills (billdate,usagekw,billdatefrom,billdateto,servicecharge,taxes) values('1/1/0001 12:00:00 AM', '21...
I am trying to populate a combo box on a windows for I am creating, but it is not getting populated. The worst part is that I am not getting any error message. Below is the full code, but here...
In the example below I need to use sr.ReadLine() to read the lines out of a text file. Sometimes I may want to back the position of the streamreader up to the beginning of the previous line, s...
I have a C++ DLL wrapping other C++ code and am calling from C#.    [DllImport("MyDll.dll")]    static unsafe private extern IntPtr StatusToString(); The function being called is    e...
I have Window's forms application that calls a DLL.  If the DLL is in the same directory as the application it works great.  If the DLL is in a different directory, the application gets an unh...
I'm trying to write a C# function that will return the full name of the user who is currently logged into the machine. I was able to generate an example using WMI Code Creator (see attachment)...
I am using C# (VS 2005) Windows Forms. In a combo box I want to show the column names of a MySQL table. How to get column names of a table. I don't want records only field names.
I'am working in C#, And I have a picture  at this type : System.Drawing.Bitmap, what I need is some code to convert System.Drawing.Bitmap into Image object or Byte [ ] regards, Gudmundur  
How do I determine if a file is locked? If a file is readonly but not locked, the following fails:
Hi, I have the following two fields in a databse that i'm reading into a hashtable: StaffNumber StaffName Staffnumber is the primary key.   Storing this in a hastable, with the Staff...
I have tried a bit back and forth but can't find an easy, fast and reliable way of solving my problem (nor one that works). I was hoping someone out there might have tackled this themselves ea...
What is the best way to have one C# application show and focus to another C# application hidden in the taskbar with a notifyIcon?  I would like to do this on startup, if the application is alr...
Hello, I need to run my sql script when I run my c# application. I don't know how to do or where to look for information. This is my sql script. It store une a 'resource' folder in m...
I'm building an application in C# that needs to execute a different application as if it was done from the command prompt. The shell command that I need to have fun is: 7z  e  C:\Inetpub\w...
Hello, I am making a simple Logger class and I want to know the advantage/disadvantage of keeping a StreamWriter object open for the life of the application or creating one at every log wri...
Hi There, I m trying to develop an windows mobile 6 application using C# to backup all the sms messages in my Inbox. Is there is way or API any one know with which i can read the Messages. ...