- Upvotes Received
- 2
- Posts with Upvotes
- 2
- Upvoting Members
- 2
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
5 Posted Topics
Hi, In the second form create a constructor that takes a string as a parameter. There, after `InitializeComponent` method, assign your string to the label. For example: public Form2(string selectedValue) { InitializeComponent(); label1.Text = selectedValue; } You can get your selected item and display another form in the following way: …
Hi, Set Form's `KeyPreview` property to True. Otherwise your handler won't be called. Then you can use KeyPress or KeyDown event.
Hi again, the code foreach (string key_value in key.GetValue("NetCfgInstanceId").ToString()) actually doesn't have any sense. What you want to do is to get value of NetCfgInstanceId in every subkey. `key.GetValue(NetCfgInstanceId) `returns a single value (string), there's nothing to enumerate. Compiler doesn't allow you to do this, because string can be divided …
You can remove spaces exactly like Mitja Bonca said. And you don't have to care about removing zeros - you can try to parse your IP address like that (based on Mitja Bonca's code): string input = "23 .1 .001.200"; if (input.Contains(" ")) input = input.Replace(" ", ""); IPAddress ipAddress; …
Well, actually pseudocode doesn't have any fixed syntax and I think everyone writes it on one's own way, but usually its style is similar to Pascal (in my opinion). The most important thing is to make it understandable ;) I would ride something like that: min = 10 max = …
The End.
mvxg