How to make a form simulate a desktop [closed] - c#

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
Right, this "might" be a tough one, as I do not even know where to start with this.
Ok, I am working on a program, which can load visual studio solutions and display them within a form when debugging.
Actually, the program does a whole lot more, but what it does, is strictly classified, so I can not go into that.
Anyway, whatever it does, does not matter in this case.
Here is the plot:
You create a project in visual studio, but when you debug it, it does so on your desktop.
What I need it to do, is debug it within a form, effectively acting as a desktop with a different resolution.
So if the specific program for example, uses Screen.PrimaryScreen.Bounds.Width - 30, as a this.left property, it needs to think that the boundaries of the form it is displayed in, is in fact the Screen.PrimaryScreen.Bounds.
I am having difficulties, trying to find out how to handle this.
Should I perhaps catch this type of code and then covert it, to work within the form?
Is there perhaps another way, to make windows simulate a different PrimaryScreen size, based on the size of the form?
EDIT: Perhaps a little more simplified.
I want the from to act as if it was my windows desktop, so any solution i load into the program, get's debugged and viewed in that form.
Handy for if you need to check how your application will look on a phone or simply in another resolution.
Point is that the program itself is going to be an IDE, but rather an online one, in which a group of people can work together on the same application/file, at the same time.

People tend to use virtual machines for these kinds of 'challenges'. It's surprising how efficient this method is! :-)

Related

Make my Asp.Net application support all browser [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I have an asp.net application which was initially designed for support only in IE(Internet Explorer). Now i want to convert that application which will support all the latest browser,
Basically it was developed Asp.net, CSS and Javascript(Specific for IE).Is there any easy way to convert because I have only 1 week time to Submit if i failed then i need to report whether it is possible or not?
Here's the quick answer - it will probably take you longer than a week :)
The best thing to do is view your website in different browsers and see what the problems are. You have been a bit vague in your question, but you could be looking at having to fix UI issues and possbily JavaScript problems.
Which version of IE are you supporting? You need to take this into account since developing for cross browser support means not only fixing problems for modern browsers, but making sure that older browsers are not broken.
This is a very open-ended question, and the best suggestion I have is the above. There is no way to convert an application to magically be cross-browser compatible. It's going to be a manual job unfortunately.
Most importantly, you need to to measure how bad things are in other browsers before you can get a plan together of what it will take to fix.

Creating an extra desktop in C# [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I've seen some applications that create virtual desktops. I want to create one.
However, I do not know how you would do this, or even it it is possible.
How do I create a virtual desktop/monitor in C#?
You need to use CreateDesktop function in order to create full functional dekstop on windows os:
Creates a new desktop, associates it with the current window station
of the calling process, and assigns it to the calling thread. The
calling process must have an associated window station, either
assigned by the system at process creation time or set by the
SetProcessWindowStation function.
Would invite your attention also on interesting article from CodeProject:
Desktop Switching
In general multidektop environment already exists in Windows Os for many years, but never has been "visible" via any multi-dektop application implemented by MS itself.
For some reason MS never, as much as I'm aware of, implemented multidesktop app.
If I'm not mistaken, beginning even from WindowsNT familly OSes, you already have a second desktop. When you press Ctrl+Alt+Del the screen that appears, in reality, is on another, fully functional, windows desktop.

Issues related with Wpf [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I am new to wpf and i am working on first application i have some issues related with this
1.)Control allignment : My controls when set on the page is seem ok but when i run my application controls slightly change their position.
2.)Resolution Issue : When i try to run application on the machine with different resolutions some controls become invisible.
3.)Bind combobox :When i try to bind combobox with static or dynamic combobox items i am not able to get first item on page load for eg if i have a city combobox then i want to show "Select City" on page load.
Thanks in advance
WPF has its own alignment system that differs from those in WinForms and HTML. Be sure to study the issue before doing any markup - trust me, you will just lose time.
WPF is resolution independent - it's one of the most essential of its features. The problem should be related to the 1st one.
Could you provide additional info so that I can figure out what exactly are you trying to accomplish?
There are lots of resources on WPF. I would recommend visiting Wpf Tutorial. And for more serious reading Pro WPF in C# 2010 (by Matthew MacDonald) is great.
1 & 2) As EvAlex says, WPF has it's own alignment system using various Panel types. These grow and shrink content to take advantage of the available space and resolution.
You appear to be dragging controls onto the form in DevStudio, which is adding all those Margin="323,182,0,0" properties to you markup. This is effectively hardcoding an absolute position for your controls which is generally a bad idea.
3) You cannot set text in a WPF combo unless it is in the list of items or you have set IsEditable="True".
Read some of the tutorials that EvAlex posted. You need to get a good grasp of the basic ideas before jumping in. WPF does have a fairly steep learning curve.

Finding a hidden Button [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
I played in the past on partypoker and worte my own window arranger. it arranged the windows based on a visible button, but today i switched to a different room.
the problem is that i cant find the button with spy++. spy++ doesnt recognize that there is a button. some buttons are findable with spy++, but not the one i need
any ideas how i can find this hidden button ?
If the button is not an actual button (i.e., if it's drawn through code rather than using the standard Win32 button control) you're not going to be able to find it with Spy++. It won't be an actual window, so it won't have a window handle. Thus, you're also not going to be able to click it through the normal mechanisms, like sending it a BM_CLICK message.
It's possible that they're doing this as a security feature, but it's also quite likely that this is part of the growing trend away from using the native UI controls, one that I very strongly disagree with and whose motivations I seriously question.
Your only hope is probably UI automation, which is very tricky to get right. Make sure to test the program in a virtual machine so the world doesn't end when you inevitably click the wrong thing accidentally.

Improve the design of GUI/website [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 12 years ago.
So i am using visual studio 2008, asp.net 3.5, with the basic toolkit provided.
Now i have made the gui which a lot of functionality but the design is very basic.
and looks too old.
I need to give it a new look, a new feeling new designs....
like the gridview, the buttons the textboxes, the menus look basic...
this is not working for me.
Please let me how should i go about doing this.??
1) i have herd about tool kits but dont kno which ones are good..(dont want the really expensive ones) but if it is really good my company is ready to spend.
2) will the new VS 2010 or asp.net 4.0 make a difference.
3) The ajax toolkit or silverlight toolkit is any good?
4) i also need to show Charts and graphs now, currently using MS charts.. but now i need
which is good.
Your best bet is to ask very specific questions at a more appropriate forum.
For ideas on designs, look for examples online and do something similar to what you like.
http://www.thecssawards.com/
http://www.csselite.com/
For questions on how to implement a specific design in html/asp.net/whatever, post a very specific question here.
For UI guidance on how to make something specific look better, post a question on http://ui.stackexchange.com. Include a SMALL screen shot of the applicable controls (not the whole page, just the part you're asking about, or at least highlight the part you're asking about).
.NET 3.5 vs .NET 4 will have no real effect on the design of your site. Whether your choose HTML or Silverlight will have a huge effect, but neither is generally better for all sites and switching between them basically means rewriting everything, so you wouldn't do it just for design reasons.
I assume you are referring to UI control libraries.
Some of the commercial libraries that I know off and widely used include:
Telerik RAD Controls
Infragistics
DevExpress
They all have a good range of controls from Menu to Charting.

Categories