|
Not really. This explains it [^]
Bob
Ashfield Consultants Ltd
Proud to be a Code Project MVP
|
|
|
|
|
I have 10 workstation on Vista and XP all connected to a windows server with SQL Server 2008 Express install on the server. Is there any way to use the server date and time on my application instead of using the date and time on the workstation? so even if the workstation date and tiome is wrong it will use the correct date and time from the server?
|
|
|
|
|
Get the server date using a query. Then, use this date across your client application.
There are only 10 types of people in this world — those who understand binary, and those who don't. |
|
|
|
|
|
Hi all,
i use, to move a circle in a panel (in a form), a code line such as this:
Grapichs e;
for(...)
{
panel.Invalidate(new Rect(list[i-1].x,list[i-1].y,list[i-1].widht,list[i-1].height));
e.DrawEllipse(list[i].x,list[i].y,list[i].widht,list[i].height);
}
can you help me with a solution that resolve a flicker problem? Is possible to create a doublebuffer in a panel object?
Thanks.
Alex
|
|
|
|
|
AlexB47 wrote: Is possible to create a doublebuffer in a panel object?
Yes. Create a class that inherits from Panel and in the constructor you can set this.DoubleBuffered to true .
|
|
|
|
|
Can you help me with example? I use a panel object with "drag and drop" from toolbar into form (I'm novice programmer in C#).
Thanks a lot!
Alex
|
|
|
|
|
Well, I was about to reply with an example but as usual, Luc already has one handy
|
|
|
|
|
Hi,
this[^] has all you need.
|
|
|
|
|
Good ... I test this solution!
Many Thanks!
Alex
|
|
|
|
|
you're welcome.
|
|
|
|
|
Dear All,
Im trying to read data from excel through Oledb.
OleDbConnection connCura = new OleDbConnection(@"Provider=Microsoft.Jet.OLEDB.4.0;
Data Source=" + path + ";Extended Properties=Excel 8.0");
OleDbDataAdapter da = new OleDbDataAdapter("SELECT * FROM [Sheet1$]", conn);
The problem is that if the 'Sheet1' in the excel file had a another name instead of 'Sheet1', then im getting this error:
System.Data.OleDb.OleDbException: External table is not in the expected format. at ConfigQeKMS.ReadImportFile.ReadTheFile(String path, String extension, String scheiTeken) in C:\Documents and Settings\KaneshkaB\Desktop\30 DEC 2009\QeKms\ConfigQeKMS\ReadImportFile.cs:line 61
Can anyone tell me how to fix this?
Thanks.
|
|
|
|
|
|
Thanks Aman, it worked
|
|
|
|
|
Hi Experts
I am Working Win Form in .NET 2005(C#).
i am making user control that have only one progress bar and label show the %age of progress bar.Now i am creating a window Form on that i use This user
control.when suppose i start for loop from 1 to 1000 then progress bar also running according to my for loop in user control.
main problem is that when loop is running in the form that i have used this control then how to send the value to progress so that it increase the progress bar value.
Dinesh Sharma.
|
|
|
|
|
A similar question has already been answered before. Try here[^].
There are only 10 types of people in this world — those who understand binary, and those who don't. |
|
|
|
|
|
Hi,
Im using textbox in C# and i use this as C# dll in VC++.
But i cannot enter any value in that textbox.
Do i want to use any events for entering data..Pls help me?
Anu
|
|
|
|
|
You have asked a similar question twice already. Please post your question once only.
|
|
|
|
|
is the textbox not readonly? or enabled= false ?
|
|
|
|
|
Hi All,
I am using Report Sharp-Shooter of PerpetuumSoft for reporting in my project.
I want to insert graph/chart in my reports.
Can anybody tell me or provide some link to me on how to add graph/charts in Report Sharp-Shooter.
I have searched on google but i am mostly getting the links of purchase or free download of software.
Thanks,
Nagendra.
|
|
|
|
|
Your best bet is to contact the vendor, they are more likely to know
Bob
Ashfield Consultants Ltd
Proud to be a Code Project MVP
|
|
|
|
|
I'm trying to get the module handle of the loaded dll in order to pass it to SetWindowsHookEx() function. [Bascially I'm using the windows hook approach to inject the dll in another process]. However, GetModuleHandle always returns 0. What could be the issue? Here is the code:
[DllImport("kernel32.dll", CharSet = CharSet.Auto)]
public static extern IntPtr GetModuleHandle(string lpModuleName);
[DllImport("user32.dll", SetLastError = true)]
static extern IntPtr SetWindowsHookEx(HookType hookType, HookProc lpfn, IntPtr hMod, uint dwThreadId);
IntPtr moduleHandle = GetModuleHandle("HookInjectDll");
// I tried giving full dll path, the .dll file extension, but nothing works. ModuleHandle returned is always zero. I also verified Assembly.GetExecutingAssembly() that the current dll path is correct.
int lastError = Marshal.GetLastWin32Error(); // This returns 0 i.e. success.
hookPtr = SetWindowsHookEx(HookType.WH_CALLWNDPROC, (HookProc)MyHookProc,
moduleHandle,
GetWindowThreadProcessId(targetProcessHandle, IntPtr.Zero));
Any help on this issue?
Thanks
|
|
|
|
|
tapas1979 wrote: This returns 0 i.e. success.
Nope. Your GetModuleHandle prototype is missing SetLastError = true
|
|
|
|
|
Marshal.GetHINSTANCE(typeof(MyClass).Module)
|
|
|
|
|
I have a crystal report that displays records from a database.Each record has a number field "QTY". I want to display sum of each record in a page
suppose i purchase product 3 times in different dates
product qty
monitor 30
monitor 40
monitor 30
i want to display like this
product qty
moniter 100
thanks in advance.
|
|
|
|
|
You can do this using the designer in your crystal report file.
|
|
|
|