Click here to Skip to main content
16,006,341 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionRe: SmptClient Question Pin
Alan Burkhart29-Apr-09 6:15
Alan Burkhart29-Apr-09 6:15 
QuestionI really need help on this one ........... can anyone help me.............. Pin
maheshgtm28-Apr-09 12:50
maheshgtm28-Apr-09 12:50 
AnswerRe: I really need help on this one ........... can anyone help me.............. Pin
Luc Pattyn28-Apr-09 13:35
sitebuilderLuc Pattyn28-Apr-09 13:35 
AnswerRe: I really need help on this one ........... can anyone help me.............. Pin
Christian Graus28-Apr-09 14:40
protectorChristian Graus28-Apr-09 14:40 
Questionpost vb.net form Pin
mhulak28-Apr-09 8:06
mhulak28-Apr-09 8:06 
QuestionReplace-Funktion for controlcollection Pin
User 584223728-Apr-09 7:50
User 584223728-Apr-09 7:50 
AnswerRe: Replace-Funktion for controlcollection Pin
Dave Kreskowiak28-Apr-09 8:57
mveDave Kreskowiak28-Apr-09 8:57 
AnswerRe: Replace-Funktion for controlcollection Pin
Alan Burkhart28-Apr-09 18:46
Alan Burkhart28-Apr-09 18:46 
Create the new control in your code, then find the old control by looping through your form's control collection and checking the type of the controls, or the name of each control. When you find the one you're looking for, convert it (using Ctype) to the new one. This way the index doesn't change.

Here's an example of using Ctype. I use this method in a tabbed text editor with an extended RichTextBox class. The RTBs are contained in a collection ("allFiles") of type "myRTF" (the extended RTB). All editing is done with an in-memory RTB named "rtf". When the tab control's selected index changes, the following code gets the tab control's new SelectedIndex and finds the correct item in the collection:

index = tabs.SelectedIndex
rtf = CType(allFiles(index), myRTF)


The in-memory RTB ("rtf") is converted to the proper member of the collection. You can use a similar method to "insert" your new control without affecting the indexes in the control collection.
QuestionInserting into a link table when inserting using a grid Pin
Ekjon28-Apr-09 6:59
Ekjon28-Apr-09 6:59 
AnswerRe: Inserting into a link table when inserting using a grid Pin
Ekjon28-Apr-09 8:05
Ekjon28-Apr-09 8:05 
QuestionDataGridView - Date column [Get Input format dd/MM/yyyy] Pin
Paramu197328-Apr-09 6:39
Paramu197328-Apr-09 6:39 
AnswerRe: DataGridView - Date column [Get Input format dd/MM/yyyy] Pin
Mycroft Holmes28-Apr-09 15:57
professionalMycroft Holmes28-Apr-09 15:57 
QuestionResize text to fill textbox? Pin
Garfunkiel28-Apr-09 6:34
Garfunkiel28-Apr-09 6:34 
AnswerRe: Resize text to fill textbox? Pin
Dave Kreskowiak28-Apr-09 6:53
mveDave Kreskowiak28-Apr-09 6:53 
AnswerRe: Resize text to fill textbox? Pin
Luc Pattyn28-Apr-09 6:55
sitebuilderLuc Pattyn28-Apr-09 6:55 
QuestionHow to implement UNDO/REDO in vb.net windows Pin
dilipmca0428-Apr-09 5:06
dilipmca0428-Apr-09 5:06 
AnswerRe: How to implement UNDO/REDO in vb.net windows Pin
Henry Minute28-Apr-09 5:14
Henry Minute28-Apr-09 5:14 
AnswerRe: How to implement UNDO/REDO in vb.net windows Pin
0x3c028-Apr-09 5:45
0x3c028-Apr-09 5:45 
AnswerRe: How to implement UNDO/REDO in vb.net windows Pin
Dave Kreskowiak28-Apr-09 6:48
mveDave Kreskowiak28-Apr-09 6:48 
QuestionX - Key as a shortcut creates problem when typing. Pin
Atul Kharecha28-Apr-09 2:38
Atul Kharecha28-Apr-09 2:38 
AnswerRe: X - Key as a shortcut creates problem when typing. Pin
Jay Royall28-Apr-09 2:44
Jay Royall28-Apr-09 2:44 
GeneralRe: X - Key as a shortcut creates problem when typing. Pin
Atul Kharecha28-Apr-09 2:51
Atul Kharecha28-Apr-09 2:51 
GeneralRe: X - Key as a shortcut creates problem when typing. Pin
Jay Royall28-Apr-09 2:58
Jay Royall28-Apr-09 2:58 
AnswerRe: X - Key as a shortcut creates problem when typing. Pin
Tom Deketelaere28-Apr-09 2:46
professionalTom Deketelaere28-Apr-09 2:46 
GeneralRe: X - Key as a shortcut creates problem when typing. Pin
Atul Kharecha28-Apr-09 3:58
Atul Kharecha28-Apr-09 3:58 

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.