473,809 Members | 2,610 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

C# / C Sharp Forum

0
1,772
thread by: gil gil | last post Nov 15 '11 by: gil gil
Hi, I'm building a program that at some point needs to hook the keyboard input to prevent the user from pressing some key combinations. Then, at a later point I need to unhook the keyboard, and then, I need to hook again the keyboard. I succeed in hooking the keyboard for the first time and then unhhok the keyboard, but when I try to hook it...
0
1,376
thread by: bhagyap | last post Nov 15 '11 by: bhagyap
I have an checkedlistbox in one form Form1,and an treeview in another form Form2,i want to retain state of checkedlistbox in Form2 and create XML dynamically and finally populate treeview.. System.IO.DirectoryInfo di = new System.IO.DirectoryInfo("E:\\Testing"); //System.IO.FileSystemInfo files = di.GetFileSystemInfos(); ...
1
2,729
thread by: snehasismishra1 | last post Nov 14 '11 by: Maraj
Hi, I have two forms. Let say, form1 and form2. in form1 class, i have method ChangeColor() and i am calling this method in button click event of form2. But it is not changing the color of form2. Please find the below code: Below code is for form1, where on click of Button1, form2 is opening. public partial class Form1 : Form { ...
0
1,206
thread by: Sudeep Kushwaha | last post Nov 14 '11 by: Sudeep Kushwaha
I am getting an Error (Exception) : Attempted to read or write protected memory. This is often an indication that other memory is corrupt. In my Code I am using a Hashtable to store some data at the Run Time and also when the use of that particular data with a key is over i delete the key from the hashtable. This process is done on different...
0
1,483
thread by: Harrison Frede | last post Nov 13 '11 by: Harrison Frede
I am trying to find a way besides doing a read and write test to find out if a hard drive is SSD or HDD. I have been trying to use a ManagementObjectSearcher instance that grabs all Physical Media. I have tried multiples ways to pulls things from it but haven't found a conclusive answer to my problem. Any ideas?
0
1,547
thread by: 1 Sparrow | last post Nov 12 '11 by: 1 Sparrow
Good evening. I'm Eugene Buzin. I'm writing my WPF application with the following structure. I have primary User Interface thread where a user presses the button in the application main window for starting the other four threads. Here is the code of the ButtonClick event handler: private void StartThreadingButton_Click(object sender,...
0
1,453
thread by: flash blue | last post Nov 12 '11 by: flash blue
How to create transparent picture box in windows ce form in .Net
1
2,320
thread by: lazerbrain | last post Nov 11 '11 by: mcfly1204
How can I represent eg. 23633.78 with leading zeros in format: 000000002363378 In other words the field is 15 characters length and when I put number I want to place leading zeroes on the left. The number must not be rounded! Thanks in advance for your help!
4
2,091
thread by: franknagy | last post Nov 11 '11 by: franknagy
Hi, How can check each records in a data grid and move the record pointer to the correct record. I have three text boxes red, green and blue. I have an MSAccess database with fields code, red, green and blue. How can I navigate to the record where red, green and blue values match with the corresponding text boxes? TIA Frank
3
14,185
thread by: ksgsharma | last post Nov 10 '11 by: ksgsharma
Hi, I m creating a mail object and setting the FROM address to it as follows: MailMessage objMail = new MailMessage(); objMail.From = new MailAddress("TestFrom@gmail.com"); When I look at the mail in OutLook, display name is not set for FROM address. It always shows the complete email ID. But for TO and CC addresses, display names...
3
3,250
shweta
thread by: shweta | last post Nov 10 '11 by: shweta
hello i m c# beginner.. i m learning creating constituent controls but when i debug "Object reference not set to an instance of an object." this type of error occurs, i dont understand where i did mistake kindly help me... using System;
0
1,339
thread by: Nataraj Ganesan | last post Nov 10 '11 by: Nataraj Ganesan
I have a treeview named as tv_dynamic_creation.I haved this in an XML file alone with the image index.Its working fine.But while iam changing the image index i need to update the xml file with new image index its not working for me. Can anyone help on this.
0
1,321
thread by: ram123 | last post Nov 10 '11 by: ram123
hi all, I wanna convert Fingerprint Binaryformat(Image only not Template) to Image(.png/.jpeg) format....i tried with all possible methods..but it doesn't work...here am posted the code for sample..can anyone Fix this Issue? SqlConnection con = new SqlConnection(connstring); con.Open(); SqlCommand cmd2 = new...
0
1,540
thread by: britzer | last post Nov 10 '11 by: britzer
I tried all the possible combination of codes, and spending almost half of the day searching over the internet but it doesn't work everything, i need help. Code 1: string sFrom = Request.QueryString.ToString() +" 00:00:00"; string sTo = Request.QueryString.ToString() +" 23:59:59"; ReportDocument cryRpt =...
1
6,075
thread by: Lexus Langg | last post Nov 9 '11 by: GaryTexmo
I'm relatively new to XNA and C#, so please try to use small words. I'm making a Breakout clone for my first real project (simplest thing I could think of), and have gotten fairly far. How would I implement a fade to black after the level ends or the ball flies past the paddle. I also want it to pause the game loop until the fade is complete. Any...
1
3,350
thread by: prashant82 | last post Nov 9 '11 by: GaryTexmo
I have a rich textbox control on a windows form. I want to update the log information in that control which comes from another class in the same project. Suggestions please? Thanks Prashant
5
4,887
Tyler Wiebe
thread by: Tyler Wiebe | last post Nov 9 '11 by: GaryTexmo
Okay, I have a few questions about auto drawing a Texture2D, to be used in an 2D Windows Game I'm making for the fun of it. But first, a few things, 1: The code is in my own custom .dll file that I'm making for this. 2: I've taught myself everything I know about C#, so any comment about my coding style isn't important to me, but is...
1
2,047
thread by: sharathmolagava | last post Nov 9 '11 by: Paul Johnson
There's a thread on the same topic here. But, I didnt find reply option, so posting a new one. The code mentioned is not working. Any help is higly appreciated. class Program { static void Main(string args) {
0
1,157
thread by: samsince85 | last post Nov 9 '11 by: samsince85
Hello Everyone, I am facing an issue related to open cmd prompt window from webpage. My objective is to open the cmd prompt window with click of a button on webpage. I have tried this in my local system when working with Visual studio, and it was working then. But when hosted the website on a server and try accessing the website on my...
10
7,132
thread by: franknagy | last post Nov 9 '11 by: franknagy
Gentle Community Members, I want to display a form with an image, the map of Europe. How can I achieve that the event handler displays the information belonging to the selected country. I have discarded the usage of complicated polygon and elliptical shapes. I have found out another way. I download a map with borders of countries. I fill...
0
1,148
thread by: prashant82 | last post Nov 9 '11 by: prashant82
I have a rich text box and I want to update the logs with the events happening in other classes.How can I execute this? TIA Prashant
1
2,302
thread by: Prateek Kumar | last post Nov 8 '11 by: GaryTexmo
How is the Undo, Cut, Copy , Refresh and Paste operations implemented in Windows XP when i right-click the mouse on the desktop ? Which language is used ?
2
2,263
thread by: mishi khan | last post Nov 8 '11 by: mishi khan
hi. i want to replace the and change the color of a character in a rich text box. i can replace and change the color of the character but as soon as i replaced the second character the first characters color is loss...how can i maintain the color of all the replaced characters????
0
1,287
thread by: raj1002 kumar | last post Nov 8 '11 by: raj1002 kumar
Here is my problem .... I am doing backup schedule every day (i.e) if any backup file is not created with in 24 hours ,I want to create new backup file(`executing backupdatabase() function`) ..... In addition to , I have used timer , `so that every hour it will be checked whether the file is created` or not....and after 24 hours it will...
0
1,327
thread by: rohit abhijith | last post Nov 8 '11 by: rohit abhijith
HI i'm working on crystal reports with parameters, i have written code to programmatically pass the parameter values but when i use the following code for passing parameters ...an error message "incorrect parameter" is displayed on the webpage..... ParameterFields myParams = new ParameterFields(); ParameterField myParam = new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.