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

Visual Basic

 
AnswerRe: OleDB Data Adaptor Problem Pin
Dave Kreskowiak15-Apr-09 2:25
mveDave Kreskowiak15-Apr-09 2:25 
Questionrefresh datagrid on another windows form Pin
sohaib_a14-Apr-09 21:36
sohaib_a14-Apr-09 21:36 
AnswerRe: refresh datagrid on another windows form Pin
Anubhava Dimri14-Apr-09 21:45
Anubhava Dimri14-Apr-09 21:45 
GeneralRe: refresh datagrid on another windows form Pin
sohaib_a14-Apr-09 22:09
sohaib_a14-Apr-09 22:09 
GeneralRe: refresh datagrid on another windows form Pin
Christian Graus14-Apr-09 22:12
protectorChristian Graus14-Apr-09 22:12 
AnswerRe: refresh datagrid on another windows form Pin
Christian Graus14-Apr-09 22:07
protectorChristian Graus14-Apr-09 22:07 
RantRe: refresh datagrid on another windows form Pin
Andy Missico15-Apr-09 0:15
Andy Missico15-Apr-09 0:15 
AnswerRe: refresh datagrid on another windows form Pin
Andy Missico15-Apr-09 0:12
Andy Missico15-Apr-09 0:12 
This is a case where you do not need an event. Events are good when one or more objects need to react to another object's behavior. Here one form is telling the other form to update. Therefore, you just need a simple method call. Event handling just complicates the communication between the two forms (objects).

Remove all event handling code, such as the Public Event, AddHandler, and RaiseEvent statements. Just call Form1.refreshdg(s1) as you did in Item #3.

I usually use RefreshUI as the standard entry point for my forms. If needed, I will add RefreshData, RefreshButtonState, and so on.
GeneralRe: refresh datagrid on another windows form Pin
sohaib_a16-Apr-09 8:45
sohaib_a16-Apr-09 8:45 
Questionhow to control 2 frames by 2 option buttons? Pin
zhiyuan1614-Apr-09 20:38
zhiyuan1614-Apr-09 20:38 
AnswerRe: how to control 2 frames by 2 option buttons? Pin
Guffa14-Apr-09 20:58
Guffa14-Apr-09 20:58 
AnswerRe: how to control 2 frames by 2 option buttons? Pin
Christian Graus14-Apr-09 22:08
protectorChristian Graus14-Apr-09 22:08 
AnswerRe: how to control 2 frames by 2 option buttons? Pin
Dalek Dave14-Apr-09 22:17
professionalDalek Dave14-Apr-09 22:17 
QuestionTwo way Data synchronization mssql 2008 express Pin
r_mohd14-Apr-09 20:01
r_mohd14-Apr-09 20:01 
AnswerRe: Two way Data synchronization mssql 2008 express Pin
Ashfield14-Apr-09 21:07
Ashfield14-Apr-09 21:07 
QuestionAppActivate and Send Keys not working correctly Pin
CARisk314-Apr-09 12:29
CARisk314-Apr-09 12:29 
AnswerRe: AppActivate and Send Keys not working correctly Pin
Dave Kreskowiak15-Apr-09 2:23
mveDave Kreskowiak15-Apr-09 2:23 
GeneralRe: AppActivate and Send Keys not working correctly Pin
CARisk315-Apr-09 3:27
CARisk315-Apr-09 3:27 
GeneralFind some code but not understanding it Pin
CARisk315-Apr-09 8:26
CARisk315-Apr-09 8:26 
QuestionVB.net Listbox: load listbox from folder, show only file name, click to open file in textbox Pin
trujade14-Apr-09 12:12
trujade14-Apr-09 12:12 
AnswerRe: VB.net Listbox: load listbox from folder, show only file name, click to open file in textbox Pin
Christian Graus14-Apr-09 22:09
protectorChristian Graus14-Apr-09 22:09 
AnswerRe: VB.net Listbox: load listbox from folder, show only file name, click to open file in textbox Pin
trujade12-Dec-09 5:24
trujade12-Dec-09 5:24 
QuestionVisual Studio 2008 Web Browser Control Pin
AndyASPVB14-Apr-09 11:15
AndyASPVB14-Apr-09 11:15 
AnswerRe: Visual Studio 2008 Web Browser Control Pin
Christian Graus14-Apr-09 22:11
protectorChristian Graus14-Apr-09 22:11 
AnswerRe: Visual Studio 2008 Web Browser Control Pin
Andy Missico15-Apr-09 1:51
Andy Missico15-Apr-09 1:51 

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.