Click here to Skip to main content
15,911,531 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Lost_focus and save button. Pin
lemarshall2-Jun-10 17:32
lemarshall2-Jun-10 17:32 
AnswerRe: Lost_focus and save button. Pin
George B Gilbert2-Jun-10 17:17
George B Gilbert2-Jun-10 17:17 
GeneralRe: Lost_focus and save button. Pin
lemarshall2-Jun-10 17:32
lemarshall2-Jun-10 17:32 
GeneralRe: Lost_focus and save button. Pin
George B Gilbert2-Jun-10 19:03
George B Gilbert2-Jun-10 19:03 
GeneralRe: Lost_focus and save button. Pin
lemarshall3-Jun-10 2:40
lemarshall3-Jun-10 2:40 
GeneralRe: Lost_focus and save button. Pin
George B Gilbert3-Jun-10 6:35
George B Gilbert3-Jun-10 6:35 
GeneralRe: Lost_focus and save button. Pin
lemarshall3-Jun-10 16:13
lemarshall3-Jun-10 16:13 
AnswerRe: Lost_focus and save button. Pin
Henry Minute3-Jun-10 4:22
Henry Minute3-Jun-10 4:22 
From your description of your form it seems to me that you might be better served by designing a user control that contains the 5 text boxes, laid out as you need them, together with any labels, if any.

Then you only need to add 13 of these user controls to something like a scroll box on your form. If nothing else it would make your code much less complex and therefore easier to read/maintain.

Fortunately those nice folks at M$ must have been thinking of you and your problem they have released Microsoft Visual Basic Power Packs 3.0[^] which contains a new control, for VB.NET anyway (I believe a similar control was available for VB 6), called the DataRepeater. The download from the above link contains full source code and Help files with some samples.

For a quick 'HowTo' take a look at DataRepeater Control For Windows Forms[^].

I have just noticed from that link that if you have installed VS2008 SP1, you should already have this control.

If you have the time, I really recommend that you, at least, take a look at the 'HowTo' as I really believe that it will help with your current project.

Good luck anyway. Smile | :)
Henry Minute

Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
Why do programmers often confuse Halloween and Christmas?
Because 31 Oct = 25 Dec.

QuestionGenerating Error While Set the FontStyle Pin
Anubhava Dimri1-Jun-10 20:43
Anubhava Dimri1-Jun-10 20:43 
AnswerRe: Generating Error While Set the FontStyle Pin
Wayne Gaylard1-Jun-10 21:46
professionalWayne Gaylard1-Jun-10 21:46 
GeneralRe: Generating Error While Set the FontStyle Pin
Anubhava Dimri2-Jun-10 0:45
Anubhava Dimri2-Jun-10 0:45 
AnswerRe: Generating Error While Set the FontStyle Pin
walterhevedeich2-Jun-10 0:35
professionalwalterhevedeich2-Jun-10 0:35 
QuestionHow I search DataGridView with text column? Pin
Curious 20091-Jun-10 10:35
Curious 20091-Jun-10 10:35 
AnswerRe: How I search DataGridView with text column? Pin
Luc Pattyn1-Jun-10 10:48
sitebuilderLuc Pattyn1-Jun-10 10:48 
GeneralRe: How I search DataGridView with text column? Pin
Curious 20091-Jun-10 11:07
Curious 20091-Jun-10 11:07 
GeneralRe: How I search DataGridView with text column? Pin
Luc Pattyn1-Jun-10 11:17
sitebuilderLuc Pattyn1-Jun-10 11:17 
GeneralRe: How I search DataGridView with text column? Pin
Curious 20091-Jun-10 12:22
Curious 20091-Jun-10 12:22 
GeneralRe: How I search DataGridView with text column? Pin
Luc Pattyn1-Jun-10 12:27
sitebuilderLuc Pattyn1-Jun-10 12:27 
GeneralRe: How I search DataGridView with text column? Pin
elizas1-Jun-10 20:08
elizas1-Jun-10 20:08 
GeneralRe: How I search DataGridView with text column? Pin
Dave Kreskowiak2-Jun-10 2:36
mveDave Kreskowiak2-Jun-10 2:36 
QuestionWindows 7 setup Pin
Ayesha.Hafeez1-Jun-10 0:37
Ayesha.Hafeez1-Jun-10 0:37 
AnswerRe: Windows 7 setup Pin
DaveAuld1-Jun-10 1:16
professionalDaveAuld1-Jun-10 1:16 
AnswerRe: Windows 7 setup Pin
tosch1-Jun-10 3:02
tosch1-Jun-10 3:02 
AnswerRe: Windows 7 setup Pin
Аslam Iqbal11-Jul-10 0:31
professionalАslam Iqbal11-Jul-10 0:31 
QuestionWindows Service with Tray Icon and GUI Pin
VikashGohil31-May-10 20:38
VikashGohil31-May-10 20:38 

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.