Click here to Skip to main content
15,924,039 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionVB.Net MTAThread attribute (.Net 3.5) Pin
#realJSOP3-Dec-09 5:21
professional#realJSOP3-Dec-09 5:21 
AnswerRe: VB.Net MTAThread attribute (.Net 3.5) Pin
Duncan Edwards Jones3-Dec-09 5:42
professionalDuncan Edwards Jones3-Dec-09 5:42 
AnswerRe: VB.Net MTAThread attribute (.Net 3.5) Pin
Rama Krishna Vavilala3-Dec-09 5:48
Rama Krishna Vavilala3-Dec-09 5:48 
QuestionUsing Combobox as DataGridViewColumn Pin
EvanSaunders3-Dec-09 2:37
EvanSaunders3-Dec-09 2:37 
Questionhow can I built Hyperterminal functionality in vb.net Pin
Amanjot2-Dec-09 13:38
Amanjot2-Dec-09 13:38 
AnswerRe: how can I built Hyperterminal functionality in vb.net Pin
Dave Kreskowiak4-Dec-09 6:57
mveDave Kreskowiak4-Dec-09 6:57 
QuestionBouncing Ball Pin
rbjanaki2-Dec-09 12:57
rbjanaki2-Dec-09 12:57 
AnswerRe: Bouncing Ball Pin
Luc Pattyn2-Dec-09 13:13
sitebuilderLuc Pattyn2-Dec-09 13:13 
rbjanaki wrote:
My problem is the ball is moving vertically Its not moving up and down


Your code has a lot of problems: you should not unnecessarily use CreateGraphics, you should not draw stuff outside the GUI thread, you should not use Thread.Sleep() inside a painting method, and you should use a timer (preferably a System.Windows.Forms.Timer), to name a few.

Here are some articles you should read:
- crossthreads1[^]
- animation1[^]

PS: as your code doesn't change yValue, the ball will never move vertically.

Smile | :)

Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]

I only read code that is properly indented, and rendered in a non-proportional font; hint: use PRE tags in forum messages


QuestionUninstalling a program Pin
RyJaBy2-Dec-09 7:04
RyJaBy2-Dec-09 7:04 
AnswerRe: Uninstalling a program Pin
The Man from U.N.C.L.E.2-Dec-09 7:34
The Man from U.N.C.L.E.2-Dec-09 7:34 
GeneralRe: Uninstalling a program Pin
RyJaBy4-Dec-09 6:38
RyJaBy4-Dec-09 6:38 
GeneralRe: Uninstalling a program Pin
Dave Kreskowiak4-Dec-09 6:57
mveDave Kreskowiak4-Dec-09 6:57 
GeneralRe: Uninstalling a program Pin
RyJaBy7-Dec-09 9:37
RyJaBy7-Dec-09 9:37 
GeneralRe: Uninstalling a program Pin
Dave Kreskowiak7-Dec-09 14:50
mveDave Kreskowiak7-Dec-09 14:50 
GeneralRe: Uninstalling a program Pin
RyJaBy9-Dec-09 7:30
RyJaBy9-Dec-09 7:30 
GeneralRe: Uninstalling a program Pin
Dave Kreskowiak9-Dec-09 15:02
mveDave Kreskowiak9-Dec-09 15:02 
QuestionNeed Code Pin
n0dy2-Dec-09 2:53
n0dy2-Dec-09 2:53 
AnswerRe: Need Code PinPopular
Eddy Vluggen2-Dec-09 3:23
professionalEddy Vluggen2-Dec-09 3:23 
AnswerRe: Need Code Pin
Tom Deketelaere2-Dec-09 3:25
professionalTom Deketelaere2-Dec-09 3:25 
AnswerRe: Need Code Pin
Dave Kreskowiak2-Dec-09 4:17
mveDave Kreskowiak2-Dec-09 4:17 
AnswerRe: Need Code Pin
Ashfield2-Dec-09 4:45
Ashfield2-Dec-09 4:45 
AnswerRe: Need Code Pin
Shameel2-Dec-09 7:05
professionalShameel2-Dec-09 7:05 
Questionchange the buttons color Pin
negar karimi1-Dec-09 23:33
negar karimi1-Dec-09 23:33 
AnswerRe: change the buttons color Pin
Tom Deketelaere2-Dec-09 0:01
professionalTom Deketelaere2-Dec-09 0:01 
AnswerRe: change the buttons color PinPopular
0x3c02-Dec-09 0:32
0x3c02-Dec-09 0:32 

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.