No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
I have a datepicker which is set up to select a whole week. I have two buttons which are supposed to move the selected dates forward and backward a week. The forward button works all the time, but the backward button only works if the month changes. If the month … |
|
This may be a simple question and it may be a complex question. I am not sure. Lets assume I have a windows form app that has three different areas: Area 1, Area 2. If there a way to tell the program when I am assigning tabbing order that I … |
|
I am using this code to clear a form but it is throwing an error. Any help is appreciated. [CODE=c sharp]public static void ClearForm(Control parent) { foreach (Control ctrControl in parent.Controls) { if (object.ReferenceEquals(ctrControl.GetType(), typeof(TextBox))) { ((TextBox)ctrControl).Text = string.Empty; } else if (object.ReferenceEquals(ctrControl.GetType(), typeof(RichTextBox))) { ((RichTextBox)ctrControl).Text = string.Empty; } else … |
|
Ok. This is kind of a weird problem. I have a form in my program that I add more controls to in order to allow users to enter more data if need be. I also have a button that clears the form and resets it to its initial state. The … |
|
I am trying to find a way to convert measurements and add measurements together. Does anyone know of anything like his? Thanks. |
|
Re:
I want to validate username and password i.e.I created a table with two variables username and password in sql. I want to match table username and given username as well as for password. If those matches then only it should login. Please help me with the code sir |
|
I am still learning C# so I am sorry if I do not use the correct terminology. Here is what I am trying to do. I have the following code that I use to check to see if an instance of a form already exists, and if it does show … |
|
Here is the code that I have [code=c#] MaskedTextBox timein1 = (MaskedTextBox)Time.Controls["txtTimeIn1"]; MaskedTextBox timein2 = (MaskedTextBox)Time.Controls["txtTimeIn2"]; MaskedTextBox timein3 = (MaskedTextBox)Time.Controls["txtTimeIn3"]; MaskedTextBox timein4 = (MaskedTextBox)Time.Controls["txtTimeIn4"]; MaskedTextBox timein5 = (MaskedTextBox)Time.Controls["txtTimeIn5"]; MaskedTextBox timein6 = (MaskedTextBox)Time.Controls["txtTimeIn6"]; MaskedTextBox timein7 = (MaskedTextBox)Time.Controls["txtTimeIn7"]; [/code] Is there anyway to create a For loop that will do all of … |
|
I have a maskedtextbox. I am trying to convert the contents to DateTime but when I do it says it is not a valid string. I have checked the value at runtime and it is returning the mask in the string. I did a little research and found the TextMaskFormat … |
|
I am not sure what I am doing wrong, but I am starting to feel very stupid. I am fairly new to C# so be gentle :) . I have an If Statement that is not working and I am not sure why. Here is my code [code=c#] if ("Admin" … |