|
hi
i want using api functions like WriteProcessMemory .
how to use that with it's own parameters in c# ???
please give me an example ?
|
|
|
|
|
|
hi,
does any one knows how to get all the names of the tables in a access mdb file?
thanks.
|
|
|
|
|
SELECT name FROM MSysObjects WHERE type = 1
Greetings,
Ingo
------------------------------
A bug in a Microsoft Product? No! It's not a bug it's an undocumented feature!
|
|
|
|
|
hi to all,
does anyone knows how can change the backcolor of a statusbar control with c# winforms application
best regards and thanks in advance
fady
|
|
|
|
|
You have to overwrite the paint event and then draw the color onto the graphics object on your own.
Greetings,
Ingo
------------------------------
A bug in a Microsoft Product? No! It's not a bug it's an undocumented feature!
|
|
|
|
|
Thanks to your reply Ingo,
how can i fire the paint event ? the statut bar does not have the DrawMode
property to set it to 'Variable draw mode'.
also, i have no paint event for the statusbar !
best regards and thanks in advance
fady
|
|
|
|
|
fady_sayegh wrote: the statut bar does not have the DrawMode
property to set it to 'Variable draw mode'.
also, i have no paint event for the statusbar !
Damn, your right. Well this is a problem. I would derive a new control, but thats a little bit tricky. You have to decide from which class (component, control) and than you must do many things on your own.
You could use the handle to call unmanaged api-functions to do the redraw, but I don't know any C# Code.
Sorry, my fault.
Ingo
------------------------------
A bug in a Microsoft Product? No! It's not a bug it's an undocumented feature!
|
|
|
|
|
|
How can i build a Binary Tree in C#
Pls tell me
Thanks
|
|
|
|
|
There is no binary tree class. You have to implement it on your own or look for a class in the web.
Greetings,
Ingo
------------------------------
A bug in a Microsoft Product? No! It's not a bug it's an undocumented feature!
|
|
|
|
|
Hello!
Is there a way to get the desktop dpi in c# ?
I have searched the web, but got no significant informations.
Thanks,
Sovann
|
|
|
|
|
Every Graphics Object has the DpiX, DpiY properties. These allow you to get the dpi of the screen / desktop. Use the Forms Graphics Object to read them.
Greetings,
Ingo
------------------------------
A bug in a Microsoft Product? No! It's not a bug it's an undocumented feature!
|
|
|
|
|
Hi,
am new to C# and .NET environ.
Any info on how to create an array of objects in C# ?
Thanks!
|
|
|
|
|
object[] arr = new object[] { foo, new object(), "111", 1, 4.5 } ;
|
|
|
|
|
I am trying to use this code to call windows API from c#.net
using System;
[sysimport(dll="user32.dll")]
public static extern int MessageBoxA(int h, string m, string c, int type);
public static int Main()
{
return MessageBoxA(0, "Hello World!", "Caption", 0);
}
But i am getting an error,
The type or namespace name 'sysimport' could not be found (are you missing a using directive or an assembly reference?)
Am i missing something?
Thanks
Leela
|
|
|
|
|
|
[DllImport("user32.dll", CharSet=CharSet.Auto)]
public static extern uint MessageBox(IntPtr hWnd, String text, String caption, uint type);
|
|
|
|
|
Thank You somanova.
This command is working good
|
|
|
|
|
Hi.
I’ve searched for articles of how to implement my new .NET dll in my old MFC application. Firs of all – Is It possible. If I am really glad for tips on how to do it.
All tips are welcomed!
_____________________________
...and justice for all
APe
|
|
|
|
|
Hi all,
I have created setup program and C# program for conditionally creating shortcut in Desktop and Quick Launch. I could run many forms from that shorcut icon. I want to run a new application file from that icon. How is it possible? I have added that exe file in setup file's folder, but it is not run from that icon. How can i refer that exe? Pls help me to solve this.
Lisa
|
|
|
|
|
Check whether the shortcut points to the exact path of Your exe. Right click the shortcut - find target.
|
|
|
|
|
Thanks for your response Mr. Sathish.
Yes, i cheked the property of that shortcut. It shows the the C# program's exe's path.
1. I created Setup file for my application's exe.
2. I created C# application file for creating conditional shortcut for that setup file.
3. Now the shortcut is appeared in the desktop(if i select create destop in setup wizard during installation). But it doesnt run my application.
4. For running my application we need to know the path given by the user during installation. Because exe of the application and exe of the solution is stored in that path itself.
5. If i find that path by any C# method, i can run my application's exe.
Lisa
|
|
|
|
|
You could get the App installation path using these
Application.StartupPath or
Application.ExecutablePath
|
|
|
|
|
Hi all,
Is there any way to hide the Caption bar in a form?
I have seen a few applications who have removed the caption bar and or exchanged it with another bar, and was wondering on it can be done if at all?
cheers,
Mark
|
|
|
|