|
deanpugh wrote: My problem is that my program changes the resolution of the screen
You should NEVER do this. Your application is running on a shared system and you've written your app to NOT work and play nice with others. When the user hit's Alt-Tab to switch to another application, you've just limited them to the screen size your app imposed on the entire system. Do that on any of my machines and I'll uninstall your app and burn the install CD.
deanpugh wrote: How can I restore them to their original place
You can't. At least, I've never found a way to do it.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
I wouldnt change the screen resolution on any normal app, but this is for a game I am attempting to write. Most games I have seen on my PC change the resolution and take up the whole screen.
If you have another sugestion how my app can take up the whole screen and remain the same visually then please let me know.
Thanks
Deano
|
|
|
|
|
That's because they use DirectX to do so. DirectX doesn't use the normal screen you see with your Desktop. In a Full Screen mode, it creates an entirely seperate drawing surface, kind of like an entirely new Desktop, complete with it's own video card parameters.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Ohhhhh Ok. Thanks. I didnt know that. I guess I need to learn how to use directx then.
Thanks
Deano
|
|
|
|
|
deanpugh wrote: How can I restore them to their original place.
This link[^] might get you going in the right direction.
Marc
Thyme In The CountryPeople are just notoriously impossible. --DavidCrow There's NO excuse for not commenting your code. -- John Simmons / outlaw programmer People who say that they will refactor their code later to make it "good" don't understand refactoring, nor the art and craft of programming. -- Josh Smith
|
|
|
|
|
Thanks Marc,
I saw that program earlier but after downloading it I was a little confused. Couldnt really work out how I can do this in c#.
Deano
|
|
|
|
|
deanpugh wrote: I saw that program earlier but after downloading it I was a little confused. Couldnt really work out how I can do this in c#.
Basically, he's getting a handle to the desktop's listview control then using low level API messages to query the listview into a memory mapped area. Similarly, he's using messaging to the listview control to set the positions. Pretty tricky. Pretty scary.
There's several third party apps out there that save/restore icon positions. I'd see if one of those can be executed directly from your app, or contact the author of one of them for help.
Marc
Thyme In The CountryPeople are just notoriously impossible. --DavidCrow There's NO excuse for not commenting your code. -- John Simmons / outlaw programmer People who say that they will refactor their code later to make it "good" don't understand refactoring, nor the art and craft of programming. -- Josh Smith
|
|
|
|
|
in windows forms, the parent mdi container is having some forms as the child. then clicking the menu in the mdi container we can access the child forms.. but when we again click the same menu the sme form will come duplicating.. how can we avoid this ? please help me. thanks in advance..
|
|
|
|
|
baluts wrote: but when we again click the same menu the sme form will come duplicating.. how can we avoid this ?
The point of MDI is to be able to open multiple documents. You either want SDI (single document interface) or you need to test if the form is already open. Sort of defeats the purpose of MDI though.
Marc
Thyme In The CountryPeople are just notoriously impossible. --DavidCrow There's NO excuse for not commenting your code. -- John Simmons / outlaw programmer People who say that they will refactor their code later to make it "good" don't understand refactoring, nor the art and craft of programming. -- Josh Smith
|
|
|
|
|
Hi there,
I have a farely simple question that I can't seem to find the answer
to.
I've got a C# Winforms application that after building results in an
executable. This executable is then renamed to an .scr file and used as
a Screen Saver.
How can I get this file to come up with a different name than the
filename in the dropdown list in Display Properties/Screen Saver? My
screensaver's filename is "screensaver.scr" and the dropdown shows
"screensaver", instead of a more friendly name "My Beautiful Screen
Saver".
I've searched everywhere but all I get is things that refer to a
StringTable, where you have to add a row with ID 1 and name "title" and
value "screensaver title". This should result in a different Title
being used in the dropdown mentioned before. However, I don't know how
to add this StringTable to my C# project.
When I open existing .scr files (that come with windows) in VS.Net
using the Resource Editor I see a StringTable that indeed contains this
ID 1 row, but when I open my own executable, I don't even have a
StringTable.
I hope someone can advise me on what to do.
Thanks in advance,
Mark
|
|
|
|
|
Hi All
I am working with a C#.NET Application Which Required to Cover All the Avilable Space in Desktop including Taskbar and Should not Respond to any Key events including Windows<start> Button means that user should not Access the Desktop Items by any way.
i set my Form Properties Like this
FormBoarderStyle=None;
ShowInTaskbar=False;
TopMost=true;
by this i am able to ristrict to some extend,but i failed when Windows<start> Key Pressed where i can easily terminate the running Process from Taskmanager.Help me in this Isue.
Thanks in Adavance.
|
|
|
|
|
Are you writing some kind of malware?
|
|
|
|
|
i am sorry,but client need that way, when ever they need they can give access the computer.if you need in full detail i can mail you all the project details.
Thnaks for Reply..
|
|
|
|
|
I have not a tested idea to point so I'll write two idea that i have based on similar situations. maybe they can help. Sorry if it is rubbish
1)You can prevent your application from loosing focus. So when win key is pressed your app must loose focus. If you deny that maybe it is a solution. I believe it is a wrong solution though
2)In previous years i had wirtten an app that hooked on every key and mouse move. Maybe if you create a hook handler and when win key is recognized, you can just consume the event so it wan't be passed to the explorer. But I believe this must be already the case for the exlorer so you is going to handle the message first I don't know.
Aain sorry. Just some ideas.
|
|
|
|
|
|
|
In my asp.net web applications multiple reports are generated and saved on server. I want to zip these reports and place a link on my webpage so that user can download it. But I am not able to figure out the way to ZIP the files programatically...Please help me in solving this...Thanks in Advance
sdfasdfsdfsfd
|
|
|
|
|
Uday_k_jadhav wrote: I want to zip these reports and place a link on my webpage so that user can download it.
You can use SharpZipLib[^]
Marc
Thyme In The CountryPeople are just notoriously impossible. --DavidCrow There's NO excuse for not commenting your code. -- John Simmons / outlaw programmer People who say that they will refactor their code later to make it "good" don't understand refactoring, nor the art and craft of programming. -- Josh Smith
|
|
|
|
|
Hi there.
Does anyone know how to create a secure database(accessible only to registered users) programatically? The user names and passwords MUST be created programatically just after or at the time of the creation of the database. I need to do this for both MySql and MS Sql Server databases.
Any hints or code snippets would be greatly appreciated.
Thanks in advance.
|
|
|
|
|
Try the following:
<br />
string connectionString = @"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + Application.StartupPath + "\\collection.mdb; User ID = sa; Pwd = sa";<br />
CatalogClass dbCatalog = new ADOX.CatalogClass (); <br />
dbCatalog.Create (connectionString); <br />
It might work but i didn't test it. Give me feedback.
|
|
|
|
|
How could we read the string written on messenger service dialog occurs after "NET SEND" command.
through C# or VB.NET
|
|
|
|
|
Hello ALL,
I am working on VB 6.0 on COM. I used to create DLLS and Register and use it. Now how could that be replaced by C# . I am very new to .Net any help will be appriciated. Thanks in Advance.
bharath.s
|
|
|
|
|
i am trying to print from a text box. the problem is that the text from the text box is divided into few very long lines and when i print them i get maybe half a line printed. What is the code that will a start a new line if the string witdh reaches the limit of the paper?
rzvme
|
|
|
|
|
Hi Guys,
Could somebody help me in the issue.
I need to color the rows of a datagrid based on the value of a colum in the table which is bound to the datagrid.
Thanks in advance
|
|
|
|
|
Which Datagrid you are talking about? windows or web?
Regards,
Prakash Kalakoti
|
|
|
|