Click here to Skip to main content
16,020,628 members
Home / Discussions / Windows Forms
   

Windows Forms

 
QuestionAccepting user input and writing it to a text file Pin
Rajdeep.NET is BACK13-May-09 10:03
Rajdeep.NET is BACK13-May-09 10:03 
AnswerRe: Accepting user input and writing it to a text file Pin
Dave Kreskowiak13-May-09 10:38
mveDave Kreskowiak13-May-09 10:38 
AnswerRe: Accepting user input and writing it to a text file Pin
Jabbar_espania18-May-09 23:23
Jabbar_espania18-May-09 23:23 
AnswerRe: Accepting user input and writing it to a text file Pin
Baeltazor11-Jun-09 21:12
Baeltazor11-Jun-09 21:12 
QuestionRegarding boolean type variable Pin
Ahamed Azeem11-May-09 22:52
Ahamed Azeem11-May-09 22:52 
AnswerRe: Regarding boolean type variable Pin
Ashfield12-May-09 1:28
Ashfield12-May-09 1:28 
AnswerRe: Regarding boolean type variable Pin
Ray Cassick14-May-09 10:48
Ray Cassick14-May-09 10:48 
AnswerRe: Regarding boolean type variable Pin
Ray Cassick14-May-09 10:55
Ray Cassick14-May-09 10:55 
Trying to locate a link that shows you why this happens, but what you are seeing is type conversion related. VB.NET stores false as a 0 and any other value as true, but that defaults to being stored as = -1.

So, when you assign the Boolean = 1 it gets converted internally to -1 because it is not a false value (0).

Try doing a few debug.prints and setting the Boolean to a few values and see what happens.

It looks to me like you do not have option strict turned on. If not, you should because it forces your code to be far more explicit and not allow type coercion (dynamic type conversion) like this.


AnswerRe: Regarding boolean type variable Pin
Eddy Vluggen15-May-09 2:22
professionalEddy Vluggen15-May-09 2:22 
QuestionHow to get this windows app related to mobile folders Pin
Ch.Gayatri Subudhi11-May-09 18:26
Ch.Gayatri Subudhi11-May-09 18:26 
AnswerRe: How to get this windows app related to mobile folders Pin
Dave Kreskowiak11-May-09 18:50
mveDave Kreskowiak11-May-09 18:50 
GeneralRe: How to get this windows app related to mobile folders Pin
Ch.Gayatri Subudhi11-May-09 19:03
Ch.Gayatri Subudhi11-May-09 19:03 
GeneralRe: How to get this windows app related to mobile folders Pin
Dave Kreskowiak11-May-09 19:10
mveDave Kreskowiak11-May-09 19:10 
Questionname of parent node Pin
riddhi8411-May-09 4:39
riddhi8411-May-09 4:39 
AnswerRe: name of parent node Pin
Henry Minute11-May-09 13:18
Henry Minute11-May-09 13:18 
GeneralRe: name of parent node Pin
riddhi8412-May-09 18:14
riddhi8412-May-09 18:14 
QuestionWhat's the word for... Pin
Alan Burkhart9-May-09 17:45
Alan Burkhart9-May-09 17:45 
AnswerRe: What's the word for... Pin
Lee Humphries9-May-09 19:04
professionalLee Humphries9-May-09 19:04 
GeneralRe: What's the word for... Pin
Alan Burkhart10-May-09 7:48
Alan Burkhart10-May-09 7:48 
AnswerRe: What's the word for... Pin
Mycroft Holmes9-May-09 21:28
professionalMycroft Holmes9-May-09 21:28 
AnswerRe: What's the word for... Pin
Luc Pattyn10-May-09 0:31
sitebuilderLuc Pattyn10-May-09 0:31 
GeneralRe: What's the word for... Pin
Alan Burkhart10-May-09 7:46
Alan Burkhart10-May-09 7:46 
QuestionHow to set up project for easy updating in the future Pin
Hypermommy7-May-09 5:26
Hypermommy7-May-09 5:26 
AnswerRe: How to set up project for easy updating in the future Pin
Luc Pattyn7-May-09 6:34
sitebuilderLuc Pattyn7-May-09 6:34 
GeneralRe: How to set up project for easy updating in the future Pin
Hypermommy11-May-09 13:07
Hypermommy11-May-09 13:07 

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.