|
Yee haw!! Updated Video Driver worked like a charm!!
Thanks for the nudge in the right direction..
Mike Stanbrook
mstanbrook@yahoo.com
|
|
|
|
|
Hi All
I have a bitmap loaded as the background in a user control. The control was placed in a form and sized to cover the form's entire client area. All of this was done with designer, not dynamically. When viewed on a different computer, the bitmap image is smaller than the client area. Is this because different devices have different x-y pixel ratios?
Can someone show me how to dynamically size the form so that the client area matches the picture size? I think it would be easier to size the image, but I do not want to distort the image size or quality.
Thank you in advance for any guidance.
Paul
|
|
|
|
|
oops I can't believe I stumbled on the answer soon after posting my question.
This is what I came up with ....
this.SetClientSizeCore(View.Size.Width, View.Size.Height);
|
|
|
|
|
Any recommendations on articles, sites or books on Image manipulation in C# and .NET (no direct Windows API).
thanks
Stupidity dies.
The end of future offspring.
Evolution wins.
- A Darwin Awards Haiku
|
|
|
|
|
Some clown wrote a series of articles on this site, I forget his name, but I wouldn't trust him. Still, might be better than nothing.
Christian
No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002
Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002
Again, you can screw up a C/C++ program just as easily as a VB program. OK, maybe not as easily, but it's certainly doable. - Jamie Nordmeyer - 15-Nov-2002
|
|
|
|
|
Another clown wrote this:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dncscol/html/csharp11152001.asp
|
|
|
|
|
LOL - actually your article was very helpful to me when I was figuring out how to do this stuff in C#. So my articles are sort of the stunted, half baked, in bred children of your article.....
Christian
No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002
Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002
Again, you can screw up a C/C++ program just as easily as a VB program. OK, maybe not as easily, but it's certainly doable. - Jamie Nordmeyer - 15-Nov-2002
|
|
|
|
|
What do I have to do to get Debug.* statements in a seperately compiled dll to work?
The dll was made as a Class Library project and the Debug.WriteLine code is output when run from that assembly but not from a new assembly.
It looks like the when the dll is loaded from the seperate assembly it says no symbols loaded. The symbol file for the dll is in the referenced directory however.
|
|
|
|
|
I want to add some buttons on the toolbar which is on the Visual studio .net environment.Is it possible to do it.If so how to proceed.
|
|
|
|
|
I have an dataentry application.User enter some information in Text box or richedit control,then I will add it to database.
Now the problem is that if user do not press ENTER key during this operation the whole text will add to database as an single line,and I don't want this because I want to use the information in Web aplication and it must be well formatted,but if they go to new line whith pressing ENTER it will go to new line for the text that is stored in database too.I think I have to seprate each line and add "\n" to it.So is this the write way or is there any suggestion about it?
Clear what I say?
Mazy
"And the carpet needs a haircut, and the spotlight looks like a prison break
And the telephone's out of cigarettes, and the balcony is on the make
And the piano has been drinking, the piano has been drinking...not me...not me-Tom Waits
|
|
|
|
|
In the .NET world, we use Environment.NewLine rather than '\n'. It will always work.
Christian
No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002
Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002
Again, you can screw up a C/C++ program just as easily as a VB program. OK, maybe not as easily, but it's certainly doable. - Jamie Nordmeyer - 15-Nov-2002
|
|
|
|
|
Christian,After some test I find that if I use Lines property of textbox it will give me each line in textbox,but this will give me only newlines that I press Enter for them. So this way is not good one too.
Mazy
"And the carpet needs a haircut, and the spotlight looks like a prison break
And the telephone's out of cigarettes, and the balcony is on the make
And the piano has been drinking, the piano has been drinking...not me...not me-Tom Waits
|
|
|
|
|
I still don't get your problem. Why can't you add a newline if you want to ?
Christian
No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002
Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002
Again, you can screw up a C/C++ program just as easily as a VB program. OK, maybe not as easily, but it's certainly doable. - Jamie Nordmeyer - 15-Nov-2002
|
|
|
|
|
Christian Graus wrote:
I still don't get your problem
Yes,you don't. But Thanks I got the point.
Mazy
"And the carpet needs a haircut, and the spotlight looks like a prison break
And the telephone's out of cigarettes, and the balcony is on the make
And the piano has been drinking, the piano has been drinking...not me...not me-Tom Waits
|
|
|
|
|
Textbox1.MultiLine =true;<br />
Textbox1.AcceptsReturn=true;
|
|
|
|
|
Hi,
I'm trying to do a search (on Google for example) from a forms app using HttpWebRequest.
If I do:
WebProxy proxy = new WebProxy("http://myproxy",true);
HttpWebRequest req=(HttpWebRequest) WebRequest.Create("http://www.google.com");
req.Proxy=proxy;
HttpWebResponse resp = (HttpWebResponse)req.GetResponse();
it works.
But if I try a search string, it doesn't:
WebRequest.Create("http://www.google.com/search?hl=en&ie=UTF-8&oe=UTF-8&q=Shakespeare&btnG=Google+Search");
I get a WebException error when calling GetResponse.
What am I doing wrong?
Thanks
|
|
|
|
|
You should be using the Google WebService...
http://www.google.com/apis/[^]
I don't know whether it's just the light but I swear the database server gives me dirty looks everytime I wander past.
-Chris Maunder
Microsoft has reinvented the wheel, this time they made it round.
-Peterchen on VS.NET
|
|
|
|
|
Just stared playing with WinForms - previously build all apps in MFC. I never liked the Windows Print Preview function so I decided to write my own.
All works as desired, pages scroll as desired whether there is one or 30. My question... PrintPreview seems to use printer resolution - is there any way to use screen resolution to conserve memory? Any help appreciated.
Thanks for any suggestions.
|
|
|
|
|
In the old IDE, when working on a control inside a form, you could pull up the control and view all events associated with that control. Selecting one would put that event handler into your code.
In VSS 7 I can only point at the form with only existing events and methods showing on the right-side dropdown box.
So how do I get to initiate uncoded events such as LostFocus without doing everything by hand and without the risk of misspelling the event name???
Thanks,
Michael
_____________________________________________
The world is a dangerous place. Not because of those that do evil, but because of those who look on and do nothing.
|
|
|
|
|
At the top of the property pane is are two buttons that switch you between viewing properties or events for the selected control. Once you've switched to the event list, you should see what you're looking for.
You can also use the class browser, to go up the inheritance chain to the function you want, and override it -- if that's the sort of functionality you need.
John :D
|
|
|
|
|
|
Well it looks easy but I'm having problems with the following: I have a combobox with a number of items, but if I select an item in the dropdown, I first want to show a confirmation dialog with yes and no buttons. If 'yes' is selected, the item is selected in the combobox, if no is selected, the item is not selected and the original selected item remains selected.
For this to work, I was looking for a SelectedIndexChanging event or something like that, but that doesn't exist.
Any ideas?
|
|
|
|
|
Maybe you have a good reason, but that sounds like a UI I would hate to use. Can you move the confirmation to some other point (like clicking OK)?
At worst, you could record the current setting when the drop-down list first gets displayed. Then, after they've made a selection, compare the two and take the appropriate actions.
John :D
|
|
|
|
|
Is there a C# form control that can handle HTML views?
i.e. something like a RichTextBox that takes & parses html, so for example if I set the control text to be something like :
{b}hello world{/b}
It would render as follows at runtime (For the sake of clarity, I have replaced < with {) :
Hello World
|
|
|
|
|