Click here to Skip to main content
15,921,452 members
Home / Discussions / Windows Forms
   

Windows Forms

 
GeneralRe: Using a custom string to cacls Pin
Johan1312-May-08 0:10
Johan1312-May-08 0:10 
QuestionRe: Using a custom string to cacls Pin
Johan137-May-08 21:10
Johan137-May-08 21:10 
QuestionDrawing Sunpath in my WinForms Pin
Member 38458153-May-08 0:05
Member 38458153-May-08 0:05 
AnswerRe: Drawing Sunpath in my WinForms Pin
Christian Graus3-May-08 1:39
protectorChristian Graus3-May-08 1:39 
QuestionDrawing Sunpath in my WinForms Pin
Member 38458153-May-08 19:30
Member 38458153-May-08 19:30 
AnswerRe: Drawing Sunpath in my WinForms Pin
Christian Graus4-May-08 11:34
protectorChristian Graus4-May-08 11:34 
QuestionTwo TextBoxs and only one can contain any text at a given time [modified] Pin
Steve Messer1-May-08 9:11
Steve Messer1-May-08 9:11 
AnswerRe: Two TextBoxs and only one can contain any text at a given time Pin
SomeGuyThatIsMe2-May-08 8:46
SomeGuyThatIsMe2-May-08 8:46 
They both go away, becaues when you empty the other textbox it fires that box's textChanged event thus clearing the second box...it works the second time because the box is already clear. You'll probably have to use a flag to show if you should change it..or put some logic in the event to check if that box has focus i.e.

<br />
        private void textBox1_TextChanged (object sender, EventArgs e)<br />
        {<br />
            if (textBox1.Focused)<br />
            {<br />
                textBox2.Text = "";<br />
            }<br />
        }<br />
<br />
        private void textBox2_TextChanged (object sender, EventArgs e)<br />
        {<br />
            if (textBox2.Focused)<br />
            {<br />
                textBox1.Text = "";<br />
            }<br />
        }<br />


this prevents the event from doing anything if its control isnt the one bieng typed in..oh i'm using .NET 3.5 i dont know when the Focused property was added...i've never had to use it before, but there should be something similar in each version.

Hope this helps..if you have any more questions feel free to ask.
GeneralRe: Two TextBoxs and only one can contain any text at a given time Pin
Steve Messer2-May-08 11:57
Steve Messer2-May-08 11:57 
Questioncalling event from inside another event Pin
raydona1-May-08 7:34
raydona1-May-08 7:34 
AnswerRe: calling event from inside another event Pin
Luc Pattyn1-May-08 9:45
sitebuilderLuc Pattyn1-May-08 9:45 
QuestionConvert txt to sysmbols!! Pin
s3rk430-Apr-08 23:46
s3rk430-Apr-08 23:46 
AnswerRe: Convert txt to sysmbols!! Pin
Kschuler1-May-08 3:43
Kschuler1-May-08 3:43 
GeneralRe: Convert txt to sysmbols!! [modified] Pin
s3rk41-May-08 6:52
s3rk41-May-08 6:52 
GeneralRe: Convert txt to sysmbols!! Pin
Kschuler1-May-08 7:27
Kschuler1-May-08 7:27 
GeneralRe: Convert txt to sysmbols!! Pin
s3rk41-May-08 9:56
s3rk41-May-08 9:56 
QuestionEnumChildWindows Pin
mehmetned30-Apr-08 20:59
mehmetned30-Apr-08 20:59 
AnswerRe: EnumChildWindows Pin
Christian Graus30-Apr-08 23:20
protectorChristian Graus30-Apr-08 23:20 
QuestionHow to display a Winform as rounded rectangle Pin
Member 391904930-Apr-08 9:08
Member 391904930-Apr-08 9:08 
AnswerRe: How to display a Winform as rounded rectangle Pin
Giorgi Dalakishvili30-Apr-08 9:17
mentorGiorgi Dalakishvili30-Apr-08 9:17 
GeneralRe: How to display a Winform as rounded rectangle Pin
Member 391904930-Apr-08 10:55
Member 391904930-Apr-08 10:55 
QuestionDATABOUND DATAGRIDVIEW Pin
Linn7230-Apr-08 2:46
Linn7230-Apr-08 2:46 
AnswerRe: DATABOUND DATAGRIDVIEW Pin
SomeGuyThatIsMe2-May-08 8:54
SomeGuyThatIsMe2-May-08 8:54 
QuestionRegarding Message Box size Pin
mrcsn30-Apr-08 0:29
mrcsn30-Apr-08 0:29 
AnswerRe: Regarding Message Box size Pin
N a v a n e e t h30-Apr-08 3:20
N a v a n e e t h30-Apr-08 3:20 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.