|
In this case, it's a video jukebox program, and the second window is playing the video on a second monitor, so a modeless dialog that does not get the keyboard focus is precisely what I need. Also, I will eventually be using the parallel and serial ports for input from custom devices, so the keyboard focus is an issue mainly so the app is useable without those devices attached, although they usually will be.
Indeed, if you can tell me how to avoid my modeless window aquiring the keyboard focus, my problem will be solved
Christian
I have drunk the cool-aid and found it wan and bitter. - Chris Maunder
|
|
|
|
|
I'm not sure how you would yet, but i'll kick it around,
in the mean time, I came across this.
A thread cannot use DestroyWindow to destroy a window created by a different thread.
Would running it in a seperate thread work for you.
Progload
|
|
|
|
|
progload wrote:
Would running it in a seperate thread work for you.
No, doesn't stop it getting the input focus. Thanks tho.
Christian
I have drunk the cool-aid and found it wan and bitter. - Chris Maunder
|
|
|
|
|
Christian,
I'll take another try at this, and it's just a theory at the moment, and I could be wrong, but if you get both window handles (your window handle, and the desktop handle), you could set your window's parent to the desktop.
Problem is I'm not exactly sure where the focus is going to go, as I haven't tested the idea.
[DllImport("USER32.DLL")]
private static extern IntPtr SetParent(
IntPtr hWndChild, // handle to window
IntPtr hWndNewParent // new parent window
);
Progload
|
|
|
|
|
Hey, that's a pretty cool idea, I might give that a go.
Christian
I have drunk the cool-aid and found it wan and bitter. - Chris Maunder
|
|
|
|
|
I can read variables with my C# asp.net app from the url, by going like this...
string temp=Response.QueryString[userid];
Now, how can I add vairables to the url?
I though it would be in the Request, but I couln't find anything...
/\ |_ E X E GG
|
|
|
|
|
You need to build a new URL and then redirect to it.
Christian
I have drunk the cool-aid and found it wan and bitter. - Chris Maunder
|
|
|
|
|
Does anyone know if its possible to hyperlink a ListView column in windows forms, not ASP???
I've found many articles on ASP, however I cannot find anything on Windows forms........
I would like to click on an IP in datacolumn that opens a web page (whois) at arin.net like:
http://ws.arin.net/cgi-bin/whois.pl?queryinput=120.210.120.100
I tried this code in the Listview click event handler
System.Diagnostics.Process.Start( "http://ws.arin.net/cgi-bin/whois.pl?queryinput= " & ListView1.SelectedItems(0).Text)
However, I receive the following error message when compiling in VS.NET C# and 'SelectedItems' is underlined...........
'System.Windows.Forms.ListView.SelectedItems' denotes a 'property' where a 'method' was expected
Helpppppppppppppppppppppp
|
|
|
|
|
|
That corrected the error and the hyperlink to the web site 'lookup' works great, thanks........
Q. How do I get an 'Underline' to appear in a listView colum??
As it is, any value in the column will hyperlink accordingly, however a user doesn't have a visual indicator that the values are actual hyperlinks....
|
|
|
|
|
kvnsdr wrote:
How do I get an 'Underline' to appear in a listView colum??
I think the hottrack property mite help, or HoverSelect (there is not much consistancy in SWF controls..., just look at MSDN)
top secret xacc-ide 0.0.1
|
|
|
|
|
kvnsdr wrote:
As it is, any value in the column will hyperlink accordingly, however a user doesn't have a visual indicator that the values are actual hyperlinks....
You can override the OnPaint method and use the Graphics object to draw the line.
- Nick Parker My Blog | My Articles
|
|
|
|
|
C# Disassembly 19:57 18 Aug '04
Could someone please provide a step by step protocol to view the C# disassembly code for c# "Hello World"?
Can I see the code w/ out fooling w/ the environment variables? No idea how add one anyway..Tried the "Inside C#" instructions several times, same error...
I'm using .NET 2003 and WindowsXP Pro.
thanks for your help- this thing is really ticking me off....
[Reply][Email][View Thread][Get Link] [Modify|Delete]
SkunkedWorks
|
|
|
|
|
|
Okay thanks...
But how do you "just run" ILDASM? What are the steps? Just run w/ what? How?
thanks....
|
|
|
|
|
ILDASM is a disassembler that comes with the .NET SDK. It is located in the Bin directory of your SDK install. If you have your environment variables set up correctly you could simply launch it from a command prompt.
- Nick Parker My Blog | My Articles
|
|
|
|
|
|
Hi,
Are there any Ganttchart control for .net CF, either
free or commercial component ? Or any articles on how to program
one in C#. Net CF ?
Thanks
Patrick
|
|
|
|
|
hi,
i created one gant chart control using C#. If you want i can sell it for you. you can directly contact through my official id. sreejith@neosoft-tec.com.
See the power
**************************
S r e e j i t h N a i r
**************************
|
|
|
|
|
Hi,
Are there any multi-column tree control for .net CF, either
free or commercial component ? Or any articles on how to program
one in C#. Net CF ?
Thanks
Patrick
|
|
|
|
|
|
I have a user control made up of a label and a bitmap. If someone clicks anywhere on the user control I want to invoke the 'click' event of the label. How can I do that?
thanks,
Deanna
|
|
|
|
|
Let me add that I did try the obvious:
label1.OnClick(e); (my user control is type GFLocIconButton mentioned in the error below.)
C:\dld\Projects\GoFigureControlLibrary\GoFigureControlLibrary\LocalizedControls\GFLocIconButton.cs(189): Cannot access protected member 'System.Windows.Forms.Control.OnClick(System.EventArgs)' via a qualifier of type 'Label'; the qualifier must be of type 'GFLocIconButton' (or derived from it)
|
|
|
|
|
I am writing an unmanaged C++ MFC extension DLL for an application. In this DLL I need to access a .NET component. The .NET component exposes itself to COM so I can access it from the unmanaged code.
Initially when I set everything up my application was working correctly. I used regasm to register the .NET DLL and used gacutil to make it a shared assembly.
My C++ client code is very simple. Something like this:
HRESULT hr = pMyComponent.CreateInstance(__uuidof(MyComponent)));
HRESULT hr = pMyComponent->Open(_bstr_t("file.txt"));
The problem I am having is that sometimes, for a reason I can't determine, CreateInstance will fail. Then when CreateInstance does succeeded, sometimes the call to Open fails return an E_NOINTERFACE. But sometimes it works with no problems????
I think it must be some sort of registration thing? I cannot find a consistent way to get it to work, though. Sometimes after a rebuild all it will work, but sometimes it does not.
Thanks for the help.
|
|
|
|
|
it sounds to me like a problem with the garbge collector in C#.
|
|
|
|