Click here to Skip to main content
15,902,492 members
Home / Discussions / Windows Forms
   

Windows Forms

 
Generaltimer problem Pin
Miss Maheshwari15-Feb-08 20:08
Miss Maheshwari15-Feb-08 20:08 
GeneralRe: timer problem Pin
Christian Graus16-Feb-08 11:37
protectorChristian Graus16-Feb-08 11:37 
GeneralRe: timer problem Pin
Navneet Hegde25-Feb-08 23:36
Navneet Hegde25-Feb-08 23:36 
GeneralParsing problem string to int Pin
RanaSohail15-Feb-08 5:00
RanaSohail15-Feb-08 5:00 
GeneralRe: Parsing problem string to int Pin
Colin Angus Mackay15-Feb-08 5:15
Colin Angus Mackay15-Feb-08 5:15 
GeneralRe: Parsing problem string to int Pin
Luc Pattyn15-Feb-08 7:56
sitebuilderLuc Pattyn15-Feb-08 7:56 
GeneralRe: Parsing problem string to int Pin
RanaSohail15-Feb-08 20:06
RanaSohail15-Feb-08 20:06 
GeneralRe: Parsing problem string to int Pin
Luc Pattyn16-Feb-08 1:53
sitebuilderLuc Pattyn16-Feb-08 1:53 
Hi,

I recommend you try and understand what goes wrong, rather than look for another approach.
There is nothing wrong with the approach, so it must be in the details.
First and forall, look at the symptoms and describe them in full detail when asking this
kind of questions.

Did you check the content of Textbox1.Text? Add some code right where you need it,
and show the value to yourself. Do not assume everything is all-right, since it
clearly is not, otherwise you would not ask for help.

is it a valid number (no more no less)? is it empty? does it contain non-digits?

why don't you use a try-catch block and show the exception.ToString()?
that should tell a lot.

BTW: you should not draw things in a button click handler, anyway e.Graphics will not
be available there.

Seems to me you are a novice in C#, and could benefit a lot from buying and reading
in introductory book on C#.

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

This month's tips:
- before you ask a question here, search CodeProject, then Google;
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get;
- use PRE tags to preserve formatting when showing multi-line code snippets.


General[Message Deleted] Pin
Miss Maheshwari15-Feb-08 1:18
Miss Maheshwari15-Feb-08 1:18 
GeneralRe: not showing the form on mdi parent form Pin
Dave Kreskowiak15-Feb-08 6:11
mveDave Kreskowiak15-Feb-08 6:11 
Generaldatabase problem Pin
Naresh12345678914-Feb-08 23:38
Naresh12345678914-Feb-08 23:38 
GeneralRe: database problem Pin
Colin Angus Mackay15-Feb-08 1:52
Colin Angus Mackay15-Feb-08 1:52 
GeneralRe: database problem Pin
Naresh1234567896-Mar-08 1:18
Naresh1234567896-Mar-08 1:18 
GeneralRe: database problem Pin
Colin Angus Mackay6-Mar-08 1:26
Colin Angus Mackay6-Mar-08 1:26 
GeneralBest practices winforms projects in C# Pin
SimonH7614-Feb-08 22:39
SimonH7614-Feb-08 22:39 
GeneralRe: Best practices winforms projects in C# Pin
Colin Angus Mackay15-Feb-08 1:55
Colin Angus Mackay15-Feb-08 1:55 
GeneralRe: Best practices winforms projects in C# Pin
Giorgi Dalakishvili15-Feb-08 2:16
mentorGiorgi Dalakishvili15-Feb-08 2:16 
GeneralRe: Best practices winforms projects in C# Pin
SimonH7615-Feb-08 16:39
SimonH7615-Feb-08 16:39 
GeneralRe: Best practices winforms projects in C# Pin
Giorgi Dalakishvili16-Feb-08 4:56
mentorGiorgi Dalakishvili16-Feb-08 4:56 
QuestionAbt changing the settings of default keys In Win CE 6.0 Pin
Pankaj Kothawade14-Feb-08 19:29
Pankaj Kothawade14-Feb-08 19:29 
GeneralAdvice of TableLayoutPanel Pin
Brady Kelly14-Feb-08 18:05
Brady Kelly14-Feb-08 18:05 
GeneralRe: Advice of TableLayoutPanel Pin
Dave Kreskowiak15-Feb-08 6:20
mveDave Kreskowiak15-Feb-08 6:20 
Question"Program Not Responding" Pin
nathan2240513-Feb-08 10:15
nathan2240513-Feb-08 10:15 
GeneralRe: "Program Not Responding" Pin
led mike13-Feb-08 10:34
led mike13-Feb-08 10:34 
GeneralRe: "Program Not Responding" Pin
nathan2240513-Feb-08 10:45
nathan2240513-Feb-08 10:45 

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.