int columnIndex = 0; // Just imaginary valuesint lastColumnIndex = 5; // Just imaginary values
DataControlField dcf = GridView1.Columns[columnIndex];
128 bit encrypted signature, crack if you can
the app A request (call a method )from the web service and the app B should receive the response for that request.as i think this is not possible, but want to make sure ,is there any possible way for doing this.
Hi, I'm not fluent with C# (but i some how got forced into doing this). After form1 loads the user supplies information (Ip address, username ...etc), presses button 1, this connects them to a specialized video recorder. I then call the ExportImage() method to save the current frame to a bmp in a specified location.
What i would like to do is automatically go to ExportImage() every 5 seconds. The only way i can get it to call ExportImage() again is to press the button.
privatevoid button1_Click(object sender, System.EventArgs e)
IDVRSystem system = SystemFactory.FindOrCreateSystem<idvrsystem>(cmbSystem.Text, 18772, txtUserID.Text, txtPassword.Text);
if (system.ConnectionStatus == Integral.Client.Sources.ConnectionState.LoggedIn)
mRecorder = system.Recorders.FindByIPAddress(txtRecorder.Text);
if (mRecorder != null)
// Sometimes a camera is not renderable because it is not 'detected.'// we'll just keep rendering until we get a successful render.foreach (IStream stream in mRecorder.Cameras)
mInfo = stream.Render(picVideo);
if (mInfo != null)
Console.WriteLine("Export Image Method");
mInfo.VideoOverlay.GetCurrentImage(false, out bmp, out aspectRatio);
Image img = bmp.GetThumbnailImage(800, 600, null, IntPtr.Zero);
I forgot to include that in my code, but i was trying to use Thread.Sleep(time) with no success. I'm not sure where to put it.
I think my main issue is getting exportImage() to be called more than once, since it's in the foreach loop i though it would be called on every scan, do you know why it's not ? the only way i can initiate a call again is to press button1.
You really don't want to use Thread.Sleep. You'll want to use the WinForm Timer class to set up a callback at a 5 second interval. The nice thing about the WinForm timer class is that you don't need to worry about marshalling to the application thread, since the event fires on the application thread. This means that you can update the UI, etc., without any worry about cross-threads.
Yusuf do u know how to read and write File summery Infomation....im tring ole etc thing....but cannot....can u understand the other reply....i tried other reply also but couldn't....???can u understand that reply...??