|
pinvoke SendMessage
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
try to download and install API-Guide
this software will help u lot.
|
|
|
|
|
Hello, please can anyone here show me how to design a program which will capture infrared signals from a remote control so that they can either be analysed or retransmitted. can this be done with c#?
Emotu
|
|
|
|
|
Try this [^] link.
There are 10 kinds of people: those who understand binary and those who don't
|
|
|
|
|
thanks a lot, I'll take a look at it. looks like it may help me out.
|
|
|
|
|
Check out the Lirc and/or WinLirc projects; they should give you some inspiration.
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook www.troschuetz.de
|
|
|
|
|
I want to design a program which can change wallpaper dynamic,but I do not know how to place the wallpaper on the center of desktop.
Thanks for your help!
|
|
|
|
|
Why don't you use Google. It's that difficult? A simple search and I already found 2 articles:
1. blogs.msdn.com
2. CodeProject
3. Google
First search on the Internet and then come here when you have problems.
There are 10 kinds of people: those who understand binary and those who don't
|
|
|
|
|
|
Does anyone know any code that will bring up the start menu, for say, if a button is pressed? Thanks.
The most knowledge doesn't mean the most wise...
|
|
|
|
|
On button click Generate the "Win" key event of Keyboard.
|
|
|
|
|
I want to update webconfig file in a system or in winform using c#.
I have a web application and system application but i want the system application updates the databasename, username and password.
I tried this one:
Configuration config = WebConfigurationManager.OpenWebConfiguration("~\\DataMaintenance\\Web.Config");
but its not work
******************************
I just want to
know everything
|
|
|
|
|
In windows application config file named as App.Config.
You can try following procedure to update data in App.config.
Create a Place Holder for your DataBaseName.
read App.config from Application.StartupPath as a text File
Replace the Place Holder and save the file
|
|
|
|
|
no. no. no.
what i mean is is it possible to write web.config from a windows form.
******************************
I just want to
know everything
|
|
|
|
|
again i am confused. I got two impression from your statements
1.You want to make an application which produces WebConfig Files
2.You Want to Update an webConfig from a windows Application
Ans:
1. Yes you can. Just follow the formatting and tags given in webconfig file and write is as normal text File and save it as desired name.
2. Yes you can. Create a web service that does the desired changes i.e. upadting your webconfig and call it from your windows application
|
|
|
|
|
Hai,
I have a DLL that created using Delphi.
My question is :
1. Can I use that DLL in my C# application?
2. If I can use that DLL, how can I determine the function inside the DLL and th parameters needed for the callback?
P.S : no techincal information or documentation available about the DLL.
thankz
Newbie..
Newbie..
Newbie..
Newbie..
Newbie..
|
|
|
|
|
Hi!
Probably you can use functions from the DLL in your C# app using p/invoke, but in order to give the correct function prototypes, you have to know which functions are in there and which parameters they expect.
Some of this information (at least which functions exist) can be retrieved by looking at the DLL using Dependency Walker (part of the platform SDK IIRC).
Regards,
mav
--
Black holes are the places where God divided by 0...
|
|
|
|
|
Hello,
I am using web browser control in C#2.0. I need to insert the Javascript dynamically in the head section of the page and invoke that script dynamically. Can please anyone tell me how to do that?
p.s. Script doesn't return any values as it is a very simple script.
Thanks.
|
|
|
|
|
See this[^] article.
/ravi
|
|
|
|
|
Hi
Recently I needed to hide an application window so I used the ShowWindow of the API and could hide it from taskbar But this application has a tray icon too, How can I hide tray icon?
And also is there a way to make the application to stay at background completely what I mean is that when I use ShowWindow function This application is show for a second an then is hidden so it is visibile for half of a second. Is there any better way to make it invisible completely?
Michael Lopez
|
|
|
|
|
Hi, you can send Windows commands to the tray icons, making them invisible, or even
removing them alltogether. Although its purpose is slightly different, you may find
a lot of details about it in my TrayIconBuster article.
Luc Pattyn [Forum Guidelines] [My Articles]
this months tips:
- use PRE tags to preserve formatting when showing multi-line code snippets
- before you ask a question here, search CodeProject, then Google
|
|
|
|
|
Hi
Thanks I could hide the tray icon. So I wanted to make it Permanent I mean My applicaiton should always check and hide this application If it has become visible again (Remove both taskbar and trayicon again) So I used code below (most of your code) But Application's main windows only becomes hidden one time and not for other times.
if (filename != null)
{
filename = filename.ToLower();
if (filename.Contains("application.exe"))
{
//To get the Application Main handle (hide from taskbar)
p = Process.GetProcessesByName("Application");
hWnd1 = (int)p[0].MainWindowHandle;
ShowWindow((int)hWnd1, SW_HIDE);
//This one works fine and always hides app's tray icon
SOK = (uint)SendMessage(hWnd, TB_DELETEBUTTON,
new IntPtr(item2), IntPtr.Zero);
if (SOK != 1) throw new ApplicationException("TB_DELETEBUTTON failed");
removedCount++;
}
|
|
|
|
|
Is there any need of Win Form in your application ?
You can Create windows Services.
You can Create Two Applications one will call another.
and you can use windows Handles to Hide your Window
|
|
|
|
|
What I need to make is a stealth interface to another application.
My application should run and always check to be sure that the second application is always hidden (Fron both Taskbar and TrayIcon)
|
|
|
|
|
hi.
can you get me a reference about first C# release date and it's good properties about other language?
tanks.
|
|
|
|