Answer Questions
Jochen Wezel foreach loop to loop all the text box in a form
I am new to C#, I am hoping that can anybody teach me how to use the foreach loop to loop throught all the text box in a from. Thanks. foreach ( Control c in this .Controls) { if (c.GetType().ToString() == "System.Windows.Form.Textbox" ) { that can be rewritten as: foreach ( Control c in this .Controls) { if (c ...Show All
Selea Encrypt string using DES
Hi to all, I'm trying to encrypt a string using DES, but I'm not getting the result that I espected. Key 0123456789ABCDEF Data 1234567890123445 Result BD0B1A49070AC376 (this is using CrypTools, I also get the same value using a program that I made using C#). But, I ask a friend that use a another program (to encryp data, using DES) for make sure that I have the correct encrypt value, and his got this result: Key 0123456789ABCDEF Data 1234567 ...Show All
wantowan2 Setup Creation window application with .NetFramework
How to create setup for C# window application with .Netframework , Install third party utilities and register COM component. Regds Tanny Just create a new Setup project in your VS-solution ...Show All
jpx How to print a ListView with all its items?
Hi all, I am trying to develop the code for the print function of my application using C#. I know that to be able to print something, you must first have a printDocument control on the windows form and that the PrintPage event must be filled up with code to paint the thing that you want to print using Graphics class. For my application, I have a ListView with the view set to "Details". I would like this ListView to be printed out whenever ...Show All
Richardk Unable to start debugging...all of a sudden.
Can't open or create a project. "The binding handle is invalid" cablehead - Glad to see you found how to solve this problem. For more information, see http://blogs.msdn.com/habibh/archive/2005/11/10/491572.aspx . Thanks, Karen ReStarted Terminal Services. All set. ...Show All
Leather How do I Retrieve MMS messages from a Nokia cellphone?
Hi, I am looking to develop an application that can download MMS messages from cellphones, probably Nokia, and extract the images from the messages to display on a screen. I am currently able to retrieve SMS messages, but have no idea how to do it for MMS messages. Any ideas Thanks Simon ...Show All
xPropHead message box in webapp
I need help. I need a message box OK/Cancel button in a web application (JavaScript ) to confirm a deleting row the problem is that i have not button "Delete" but i have a datagrid with a button column. Thx PS-could you post code and explanation Hi, Item_Created() event is not called in my page tell me how can i debug or how can i set break point over this. in my .aspx file i have following code < asp : Ima ...Show All
Malika Senaratna writing value to Registry
Hi all, I have a problem with writing a value to a registry. I want to change the pocket pc registry at run time by my application. On of the keys I want to change is : BDDevClass = 06 05 80 the key value type is REG_BINARY. When I write to this key by the SetValue methode : SetValue("06 06 07") I get in the key the value "06 06 07" (I mean with the "" marks. This is the problem, I want to set the value without the "". How can I do that. Pl ...Show All
kotte Get a list of Delegate on Event
Ok, What I want to do is retreive all the delegate that is attached to an event. Let's say i'm attaching several deletages to a button: IE: myButton.Click += new System. EventHandler ( this .myButtonClick1_Click); myButton.Click += new System. EventHandler ( this .myButtonClick2_Click); myButton.Click += new System. EventHandler ( this .myButtonClick3_Click); myButton.Click += new System. EventHandler ( this .myButtonClick4 ...Show All
hendyb Operator + in strings
string path = "C:\\Documents and Settings\\"+ LogonName +"\\Recent"; Error 1 Operator '+' cannot be applied to operands of type 'string' and 'method group' What do i have to do Thanks, Guilherme I Tried: string LogonName = Environment.UserName.ToString(); label2.Text = LogonName.ToString(); It Works, but when i tried: string pasta = "C:\\Documents and Settings\\&quo ...Show All
Matt Slat Download file(MP3) with progressbar
Any sample(s) online (I don't need to stream it) private bool DownloadFile( string sURL, ProgressBar pProgress, string Filename) { System.Net. HttpWebRequest URLReq; System.Net. HttpWebResponse URLRes; System.IO. FileStream FileStreamer; byte [] bBuffer = new byte [1024]; int iBytesRead = 0; try { FileStreamer = new FileStream (Filename, System.IO. FileMode .Create); URL ...Show All
Rudedog2 editing resource files
I am using a ResourceManager to retrieve values from a .resource file. I would like to be able to update the values in the file from within the application. Can this be done How Thanks. Use the Resource editor Lutz Roeder has writen, you can find it here . There are so much alertnatives with have other roamings, the registery can have Machine roamings, version roamings, user roamings and so does the ...Show All
flbos String Testing
Hi All, I've a question. In perl I can do the following to test if a variable contains a series of strings: if ($myVar =~ /^SGT|^MSG|^BG/) { doSomething; } =~ basically means "contains" so what the above line is saying is: if($myVar "contains" /Anchored on left with SGT OR anchored on left with MSG OR anchored on left with BG) { doSomething; } Anything similar in C# --Richard ...Show All
abuck Switching off computer using C#
Is it possible to switch off computer using c# I know that it is possible when using c/c++. There is a method called exitWindows or exitWindowsEx, but I can't find it in Visual C# Express Edition 2005 Thank you very much. It was very helpful. The .NET framework must by definition call Win32 functions, but it does not expose all the functions that exist. pInvoke fills thi ...Show All
Longhorn62 2005 .item() & .Select() replacements?
In 2003 I could set, for instance, the datagrid.item() and datagrid.select() to select a row after filtering the dataview results. These aren't available in 2005, how can this now be achieved still no Item property in intellisense. I did figure out the row select method in 2005 though, dgv.Rows .Select = true; which is slightly different from 2003, dgv.Select . As i can se ...Show All
