|
truegilly wrote: AJAX
Head off to ASP.NET forum then...
|
|
|
|
|
Can't you use pure javascript for this? That will be lot better I think.
If you want to use C# for this, the TimeSpan class and it's properties will be useful.
|
|
|
|
|
hi freind i create a configurator that is use to Update Our Product.
now i want to update my configurator when new update arrived how i can do this without using (ClickOnce Deployment)
wasim khan
|
|
|
|
|
Hi, Wasin
Put another post with your code and explain what you want, maybe some advanced programmer can help you there!
Good Luck
|
|
|
|
|
What are the differences between the following events, and which should be used when?
Activated<br />
Load<br />
Shown<br />
Validated
Let's say that you want to perform some actions (run SQL, copy files, etc.) when a form appears, but with no user interaction. In which event handler do you place your code? Thanks.
|
|
|
|
|
i will do it in Load Event
wasim khan
|
|
|
|
|
I usually use "load" or "click" event to trigger it.
|
|
|
|
|
this function run when the DataArrival event is fired,
but the w1.GetData is not working, and the code never arraive to
"data = (String)dat" part ( no exception)
void w1_DataArrival(int Len)
{
String data = "";
dat = new object()data;
len = (object)Len;
w1.GetData(ref dat, dat, len);
data = (String)dat;
}
|
|
|
|
|
onakar wrote:
void w1_DataArrival(int Len)
{
String data = "";
dat = new object()data;
len = (object)Len;
w1.GetData(ref dat, dat, len);
data = (String)dat;
}
WTF?
|
|
|
|
|
|
Have a look at the documentation for the Array[^] class.
|
|
|
|
|
THANKS
Have Fun
Never forget it
|
|
|
|
|
Array.Copy(array1, 7, array2, 0, 18);
Dave
|
|
|
|
|
|
This is the second question today about something that can easily be found in the documentation or on the web (search for "c# format binary string" and "c# copy part of array" to get the solutions as the first hit). You really should learn how to use google and MSDN Library, and save your forum posts until you need them.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
|
System.Buffer.BlockCopy()
|
|
|
|
|
In my application I have hooked the keyboard.Global hooked and in one function im getting a error saying..
“Attempted to read or write protected memory. This is often an indication that other memory is corrupt.”
It comes from this code statement,
return CallNextHookEx(hookID, nCode, wParam, ref lParam);
[DllImport("user32.dll", CharSet = CharSet.Auto, SetLastError = true)]
private static extern IntPtr CallNextHookEx(IntPtr hhk, int nCode,
IntPtr wParam, ref KBDLLHOOKSTRUCT lParam);
This cause to carshed my application. And Can U explain to overcome this issue.
|
|
|
|
|
ASysSolvers wrote: This cause to carshed my application. And Can U explain to overcome this issue.
Yes, you are having a buffer overflow/overrun in your unmanaged code.
|
|
|
|
|
Yes it is true. I have a grabber control to play TV stream. it a .ocx control.
Can U explain how we design a apllication for that kind of issues..
Thankz
|
|
|
|
|
ASysSolvers wrote: Can U explain how we design a apllication for that kind of issues..
Attach an unmanaged debugger and look for the error. Your structs that you pass to the unmanaged function is probably incorrect/too small/misaligned etc. I cant help you on that.
|
|
|
|
|
hi,
I will generate HTML file at Run Time based on setting that end user entered ,
how to add refrence to css file at run time I using webBrowser control.
Thanks.
Wafy
|
|
|
|
|
Use the DOM exposed by the control. You will have to lookup where you need to change that yourself. It is beyond the scope of C#. Try the web forum.
|
|
|
|
|
In my application I have restricted to the 2nd instant of application giving below code,
s_Mutex = new Mutex(true, "MyApp");
if (s_Mutex.WaitOne(0, false))
{
Application.Run(new frmSocket());
}
else
{
MessageBox.Show("Another instance is running");
}
Also im using a Logoff button in my application and and have used below code,
System.Windows.Forms.Application.Exit(); System.Diagnostics.Process.Start(System.Windows.Forms.Application.ExecutablePath);
Problem when I press log off button it cause to 2nd instant ans show the message ("Another instance is running")
I want to run appication again beeing restricting 2nd instant.
How ovecome that issue.
|
|
|
|
|