Click here to Skip to main content
15,911,789 members
Home / Discussions / C#
   

C#

 
GeneralRe: Detecting mouse button that DoubleClick-ed Pin
Luis Alonso Ramos24-Jun-05 8:41
Luis Alonso Ramos24-Jun-05 8:41 
Generalsimple ping class request( non console) Pin
brokenheart23-Jun-05 7:51
brokenheart23-Jun-05 7:51 
GeneralRe: simple ping class request( non console) Pin
Dave Kreskowiak23-Jun-05 9:05
mveDave Kreskowiak23-Jun-05 9:05 
GeneralRe: simple ping class request( non console) Pin
Sebastian Schneider23-Jun-05 22:20
Sebastian Schneider23-Jun-05 22:20 
GeneralRe: simple ping class request( non console) Pin
Dave Kreskowiak24-Jun-05 1:27
mveDave Kreskowiak24-Jun-05 1:27 
GeneralImage Processing Pin
CYMA23-Jun-05 7:19
CYMA23-Jun-05 7:19 
GeneralUpdate datagrid in a MDI child from a MDI child!!!URGENT HELP REQUIRED!!! Pin
GianlucaSeno23-Jun-05 7:09
GianlucaSeno23-Jun-05 7:09 
GeneralRe: Update datagrid in a MDI child from a MDI child!!!URGENT HELP REQUIRED!!! Pin
Bojan Rajkovic23-Jun-05 9:55
Bojan Rajkovic23-Jun-05 9:55 
Uh...What you need to do is maybe set a timer in form 2 to refresh the data in the datagrid..
I have an app that I do something similar in, and all you need to do is call ReadResults() and do dataPreResult.Invalidate() (to make sure that it gets redrawn) every so often..I'm not 100% sure on that, but it should work.

Here's the relevant code:

Timer updateDataGrid = new Timer(); // add this to your object declarations<br />
<br />
public FORM2()<br />
{<br />
	InitializeComponent();<br />
	updateDataGrid.Interval = 60*1000;<br />
	updateDataGrid.Tick += new EventHandler(doUpdate);<br />
	updateDataGrid.Start(); // add the above 3 lines in the constructor to set the interval, the 				    handler for the timer firing and to start it. updating every minute 					    seems like a good time, but you can change that<br />
}<br />
<br />
private void doUpdate(object sender, EventArgs e)<br />
{<br />
	ReadResults();<br />
	dataPreResult.Invalidate();<br />
}

GeneralRe: Update datagrid in a MDI child from a MDI child!!!URGENT HELP REQUIRED!!! Pin
GianlucaSeno23-Jun-05 10:05
GianlucaSeno23-Jun-05 10:05 
GeneralDateTime.Parse / ParseExact Pin
trevor_moody23-Jun-05 6:32
trevor_moody23-Jun-05 6:32 
GeneralRe: DateTime.Parse / ParseExact Pin
Dave Kreskowiak23-Jun-05 8:58
mveDave Kreskowiak23-Jun-05 8:58 
GeneralTextBox in ASP.NET Pin
BECK723-Jun-05 6:32
BECK723-Jun-05 6:32 
GeneralRe: TextBox in ASP.NET Pin
Dave Kreskowiak23-Jun-05 8:59
mveDave Kreskowiak23-Jun-05 8:59 
GeneralRe: TextBox in ASP.NET Pin
BECK723-Jun-05 9:30
BECK723-Jun-05 9:30 
GeneralRe: TextBox in ASP.NET Pin
DavidNohejl23-Jun-05 9:43
DavidNohejl23-Jun-05 9:43 
GeneralRe: TextBox in ASP.NET Pin
BECK723-Jun-05 11:49
BECK723-Jun-05 11:49 
GeneralRe: TextBox in ASP.NET Pin
DavidNohejl23-Jun-05 11:53
DavidNohejl23-Jun-05 11:53 
GeneralRe: TextBox in ASP.NET Pin
Dave Kreskowiak23-Jun-05 10:10
mveDave Kreskowiak23-Jun-05 10:10 
GeneralRe: TextBox in ASP.NET Pin
BECK723-Jun-05 10:32
BECK723-Jun-05 10:32 
GeneralVARIANT in VC 6.0 and Objects in C# Pin
btanveer23-Jun-05 6:07
btanveer23-Jun-05 6:07 
Generalping class request Pin
brokenheart23-Jun-05 5:53
brokenheart23-Jun-05 5:53 
GeneralRe: ping class request Pin
Simon Wren23-Jun-05 6:05
professionalSimon Wren23-Jun-05 6:05 
GeneralNewbie needs expert help Pin
74Camaro23-Jun-05 4:57
74Camaro23-Jun-05 4:57 
GeneralRe: Newbie needs expert help Pin
V.23-Jun-05 5:03
professionalV.23-Jun-05 5:03 
GeneralRe: Newbie needs expert help Pin
74Camaro23-Jun-05 7:10
74Camaro23-Jun-05 7:10 

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.