Click here to Skip to main content
15,929,833 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Avoid inserting a duplicate record using vb.net Pin
Johan Hakkesteegt18-May-10 22:12
Johan Hakkesteegt18-May-10 22:12 
AnswerRe: Avoid inserting a duplicate record using vb.net Pin
Luc Pattyn19-May-10 2:19
sitebuilderLuc Pattyn19-May-10 2:19 
GeneralRe: Avoid inserting a duplicate record using vb.net Pin
Johan Hakkesteegt19-May-10 2:45
Johan Hakkesteegt19-May-10 2:45 
AnswerRe: Avoid inserting a duplicate record using vb.net Pin
TheComputerMan19-May-10 6:06
TheComputerMan19-May-10 6:06 
Questionhow to check for duplication before inserting data in tables using vb.net Pin
faisalali_7818-May-10 21:13
faisalali_7818-May-10 21:13 
AnswerRe: how to check for duplication before inserting data in tables using vb.net Pin
Eduard Keilholz18-May-10 21:49
Eduard Keilholz18-May-10 21:49 
Questionhow to add controls dynamically ? [modified] Pin
sanyexian18-May-10 16:33
sanyexian18-May-10 16:33 
AnswerRe: how to add controls dynamically ? Pin
Luc Pattyn18-May-10 16:39
sitebuilderLuc Pattyn18-May-10 16:39 
For a WinForm app, there seem to be two very different ways to add controls to a form:
- one is by using the "Visual Designer"
- the other is by adding some code that creates and adds controls at run-time.

However, the designer basically does two things for you:

1. it adds code to some file, which you may not have seen yet; if your form is called Form1, it consists of several files, including Form1.vb; the designer creates and controls Form1.designer.vb (you may have to fiddle some buttons/settings for Studio to show it in the Solution pane, can't remember the details).

2. and then it lets Studio execute such code, and that is how the controls suddenly appear on you form. (No they are not really drag-and-dropped, your drag operation tells the Designer to add and then execute code!)

So the suggestion is clear: do it once with designer, then go and peek inside that auto-generated file.

BTW: do not edit the designer files, just learn from them, and add similar things to your code.

Smile | :)
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]

I only read formatted code with indentation, so please use PRE tags for code snippets.

I'm not participating in frackin' Q&A, so if you want my opinion, ask away in a real forum (or on my profile page).

QuestionCurious Cross Thread Error Pin
TheComputerMan18-May-10 4:31
TheComputerMan18-May-10 4:31 
AnswerRe: Curious Cross Thread Error Pin
Dave Kreskowiak18-May-10 5:05
mveDave Kreskowiak18-May-10 5:05 
GeneralRe: Curious Cross Thread Error Pin
Luc Pattyn18-May-10 5:09
sitebuilderLuc Pattyn18-May-10 5:09 
GeneralRe: Curious Cross Thread Error Pin
Dave Kreskowiak18-May-10 8:17
mveDave Kreskowiak18-May-10 8:17 
GeneralRe: Curious Cross Thread Error Pin
Luc Pattyn18-May-10 8:42
sitebuilderLuc Pattyn18-May-10 8:42 
GeneralRe: Curious Cross Thread Error Pin
TheComputerMan18-May-10 14:37
TheComputerMan18-May-10 14:37 
GeneralRe: Curious Cross Thread Error Pin
Luc Pattyn18-May-10 15:38
sitebuilderLuc Pattyn18-May-10 15:38 
QuestionNamespace importing at project level question Pin
programmervb.netc++17-May-10 8:20
programmervb.netc++17-May-10 8:20 
AnswerRe: Namespace importing at project level question Pin
Luc Pattyn17-May-10 8:29
sitebuilderLuc Pattyn17-May-10 8:29 
GeneralRe: Namespace importing at project level question Pin
programmervb.netc++17-May-10 8:45
programmervb.netc++17-May-10 8:45 
GeneralRe: Namespace importing at project level question Pin
Luc Pattyn17-May-10 8:49
sitebuilderLuc Pattyn17-May-10 8:49 
GeneralRe: Namespace importing at project level question Pin
programmervb.netc++17-May-10 9:02
programmervb.netc++17-May-10 9:02 
GeneralRe: Namespace importing at project level question Pin
Luc Pattyn17-May-10 9:06
sitebuilderLuc Pattyn17-May-10 9:06 
AnswerRe: Namespace importing at project level question Pin
Gideon Engelberth19-May-10 9:42
Gideon Engelberth19-May-10 9:42 
QuestionConcurrency Error Pin
Ghost_80717-May-10 5:48
Ghost_80717-May-10 5:48 
QuestionError Reading Raw Pixel Data Into Bitmap Pin
Sonhospa16-May-10 21:44
Sonhospa16-May-10 21:44 
AnswerRe: Error Reading Raw Pixel Data Into Bitmap Pin
Henry Minute17-May-10 1:39
Henry Minute17-May-10 1:39 

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.