|
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
|
|
|
|
|
|
Hi.
In my project I have a web reference to a wsdl-file on a remote server, and I call a method returning an object (UserObj)-or rather a struct actually; it has a number of fields but no methods. What I would want to do is to transform the data returned to HTML using the Xml.Xsl.XslTransform Transform() method and a XSL file I have defined my self.
Now my problem is this: how can I transform my UserObj back to XML? It can't be necessary to 'manually' pick out every field and insert it into an XML structure, can it? I mean the communication with the remote server is done with soap and the data returned to my process is in XML when it gets there, right? Or is there a way I can stop the initial translation from XML to the UserObj form from happening?
I'm tearing my hair away over this so any help will be gratefully appreciated!
Regards
/EnkelIk
|
|
|
|
|
Move the UserObj to a dataset, then with the dataset do a xmlwrite
|
|
|
|
|
Thanks, that works, but is it possible to do it without knowing anything about the field names in the UserObj? I.e. can I isolate my code from any changes in the wsdl-file regarding the field names of UserObj?
I have tried to extract the fields as an enumerator, but since the object does not inherit from Systems.Collections it hasn't worked out for me.
Thanks
/EnkelIk
|
|
|
|
|
When I run a debug/release C# program the output window shows loaded ... gac/drawing, and then the programs form doesn't show.
Several iterations of stop /start clicks get it going.
Anyone know why ???????
Thanks
viva AMIGA
|
|
|
|
|
I'm guessing it is a bug in the IDE as I had the same thing last night. I haven't checked the Microsoft Knowledge base yet, but I will be doing later to see if it is a known problem.
Michael
Fat bottomed girls
You make the rockin' world go round -- Queen
|
|
|
|
|
I've got this problem too but when debuging MC++.
I think it's some kind of bug.
43 68 65 65 72 73 2c
4d 69 63 68 61 65 6c
|
|
|
|
|
I've seen it before as well, no idea what causes it though. For now you'll just have to stop/start until it works
James
- out of order -
|
|
|
|
|
Toss me some idearz.
I am intrested in how to actually store the data.
|
|
|
|