|
|
Thank you! that worked.. before your response I found a few crazy methods of importing user32.dll etc. This is exactly what I was hoping for. I am a bit confused as to how it works..
what is Control ? the current control in focus? I was expecting using sender or e to find the data.
if (Control.ModifierKeys == Keys.Shift) <br />
{<br />
<br />
.........<br />
<br />
}
|
|
|
|
|
ModifierKeys is a static property - which just calls the Win32 API "GetKeyState".
This doesn't require any state information (like 'sender' or 'e') - and can basically be called from anywhere at any time.
|
|
|
|
|
i want to convert from RGB to LUV color space
how can i do that?
haitham
|
|
|
|
|
A great resource for colour conversions is easyRGB. You will have to convert the colour to XYZ first.
|
|
|
|
|
|
I'm trying to create a form that is full screen. I checked out the CodeProject article
http://www.codeproject.com/csharp/fullscreenmode.asp[^]
When run, the taskbar/Start menu is still viewable though. I want to cover the entire screen completely.
I tried using:
f.SetBounds(0, 0, Screen.PrimaryScreen.Width, <br />
Screen.PrimaryScreen.Height, BoundsSpecified.All);
No change. I tried using
f.Bounds = Screen.PrimaryScreen.Bounds;
No change. I tried getting the PrimaryScreen.Bounds, adding to its height, then setting that to my form, but still no change. When I set the bounds, then look at the forms actual Bounds property, I can see that it is 35 less than the screen height.
I've set the WindowState=Maximized and TopMost=true on the form. STILL the taskbar remains visible.
Anything else to try that I am missing?
Thanks,
|
|
|
|
|
not so obvious but this is the missing line
this.MaximizeBox = false;
|
|
|
|
|
Thanks for the reponse.
Hmm, well I just tried to set that; in the code AND in the properties of the form. I even set it for both forms in that example. No change at all. Still showing the Start menu.
|
|
|
|
|
This works for me:
<br />
private void Form1_Load(object sender, System.EventArgs e)<br />
{<br />
this.FormBorderStyle = FormBorderStyle.None;<br />
this.Bounds = Screen.AllScreens[0].Bounds;<br />
TopMost = true;<br />
}<br />
No taskbar or start menu visible at all
Hope this helps.
|
|
|
|
|
Thanks. I guess both of you guys were right; including the example here on CodeProject. It seems that the taskbar on one of the machines I am developing on, which has a dual-monitor and uses NVidia software to make it go across both screens, must be doing something to not let another window on top of it.
I ran the same code on another machine without that same software and it was fullscreen just like I wanted. Thanks!
|
|
|
|
|
hi everyone,
I would need to get access to third party snapins in MMC so I can read information from these MMC snapins and store this information somewhere else into a text file. I don't need to modify this information, I only need to retrieve it, so I don't need to work with MMC manually in GUI form but can create reports in text file form from these MMC snapins. Do you have any idea if there is a way how to get this information from 3rd party snapins programatically (if possible in a consistent way) ?
thanks & regards.
krompo
|
|
|
|
|
|
OK, sorry - won't happen again.
|
|
|
|
|
hi...
i want to call a sql function thro webservice is thier a way to do tht. i tried call it like a stored proc but it didnt work.
|
|
|
|
|
imsathy wrote: i want to call a sql function thro webservice is thier a way to do tht
Calling into a database is a function of ADO.NET. It doesn't matter whether it is a web forms application, a console application, and Win forms application, a windows service, a web service or what ever.
imsathy wrote: i tried call it like a stored proc but it didnt work
That's a little vague on detail. How exactly didn't it work?
ColinMackay.net
"Man who stand on hill with mouth open will wait long time for roast duck to drop in." -- Confucius
"If a man empties his purse into his head, no man can take it away from him, for an investment in knowledge pays the best interest." -- Joseph E. O'Donnell
|
|
|
|
|
would somebody plz let me know how i may be able to stop for
example SYN packets from reaching a certain IP address.
i m working on LAN and trying to build a firewall type
application which can block packets from the network.
would somebody plz let me know how i may be able to stop for
example SYN packets from reaching a certain IP address programatically
using C#.
i m working on LAN and trying to build a firewall type
application which can block packets from the network.
actually i got a Dll from codeproject, but it blocks all the
packets and i am interested only in blocking SYN packets.
m really hanged up somebody plz help me out.
m using C# (.net 1.1) on Windows 2000.
God Bless You..
|
|
|
|
|
SZKHAN wrote: would somebody plz let me know how i may be able to stop for
example SYN packets from reaching a certain IP address programatically
using C#.
You don't. You build something like an NDIS driver in C.
ColinMackay.net
"Man who stand on hill with mouth open will wait long time for roast duck to drop in." -- Confucius
"If a man empties his purse into his head, no man can take it away from him, for an investment in knowledge pays the best interest." -- Joseph E. O'Donnell
|
|
|
|
|
Can someone help me out with what seems to be a newbie question.
I've got a form containing a listview. I want to be able to drop files into the listview, and display them in the list. In C++ it's easy, but I can't get it to work in C#
I've set the AllowDrop property of the listview (and the form) to True, and added a DragDrop event handler, but when the program is running, the mouse pointer just changes to the "no entry" pointer when I try to drop a file onto the form.
Can somebody tell me what I'm doing wrong?
Thanks
--
Help me! I'm turning into a grapefruit!
Buzzwords!
|
|
|
|
|
|
|
I would recommend also looking at the other Drag... events to get a complete view on this.
|
|
|
|
|
Hello,
I am developping Windows application in C# that uses User Interface Process.
I want to display modal window in the application.
Does anybody knows how to achieve this?
Warm Regards
Abhijeet Ballal
|
|
|
|
|
Iam using Visual Studio .NET 2003 Academic version.I have a need to use Microsoft Flexgrid Activex Control in .NET.For that i installed Visual Basic 6.0 software.Then i import "vb6Controls.reg" from visual studio .NET disk2 for registry licenses.
i added the microsoft flex grid control to my toolbox items and then to my form also successfully.I didn't get any error upto this.
Then i want to place a textbox control to the grid to enter the data into the grid.Textbox will be move using the arrow controls.For that i want to change the microsoft flex grid proerties like cellHeight,cellLeft,cellTop, cellWidth in .NET.But these are in disabled state .but these proerties are enabled in visual basic 6.Finally the textbox moved incorrectly.
can you please provide any example of flexgrid control in .NET?
K.L.Sasanka
|
|
|
|
|
Iam using Visual Studio .NET 2003 Academic version.I have a need to use Microsoft Flexgrid Activex Control in .NET.For that i installed Visual Basic 6.0 software.Then i import "vb6Controls.reg" from visual studio .NET disk2 for registry licenses.
i added the microsoft flex grid control to my toolbox items and then to my form also successfully.I didn't get any error upto this.
Then i want to place a textbox control to the grid to enter the data into the grid.Textbox will be move using the arrow controls.For that i want to change the microsoft flex grid proerties like cellHeight,cellLeft,cellTop, cellWidth in .NET.But these are in disabled state .but these proerties are enabled in visual basic 6.Finally the textbox moved incorrectly.
can you please provide any example of flexgrid control in .NET?
K.L.Sasanka
|
|
|
|