|
Hi!
Dear fellow ... i m building an application in visual studio 2003 in C# asp .net web application ....
I had a tree view in one frame and i open new forms accoring to the clik of the tree view But i have to fill this form after capturing the click event of the tree view as i need the value of that particular clicked node so that i may retrive my data From my DB according to that cliked node ........i dont know how to capture the events too please send me code in C#.... instead of asp
Thanx
|
|
|
|
|
You can use the e.Node property in the treeView.MouseClick (or AfterSelect) events.
|
|
|
|
|
how can zoom in picture with very details
(I have Tehran map and I want when click on addressBotton in my interface ,
address found in map or I zoom in map and find address)
|
|
|
|
|
Sounds like you want to use the google maps API.
If you have a bitmap and you zoom in, you will never have details, google maps loads more and more detailed bitmaps, it doesn't just zoom in on the one.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Hi.
Yes you should have a lot of photo from up to down.if u cant take picture tha i thing so ; i seggest u should use another programing for your target like vrml.it just a txt file but do your work.inested of taking picture u should design a 3d enviorment with text command but i thing its so deficult for one.u should have many person to do this.
|
|
|
|
|
I added xml file to Visual C# 2005 Express project so it is embedded to a
dll file.
In code I need to assign this file contents to a string like:
string str= filetostr("myxml.xml")
How to implement this ?
Andrus
|
|
|
|
|
I've done something similar once with a XML Schema file.
Stream stream = this.GetType().Assembly.GetManifestResourceStream("Troschuetz.BirthdayManager.BirthdayManager.xsd");
XmlDocument xmlDocument = new XmlDocument();
xmlDocument.Load(stream);
This code was inside the main form of my windows application assembly to which the file "BirthdayManager.xsd" was added as resource. I had to prefix it with the default namespace of this project "Troschuetz.BirthdayManager".
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook www.troschuetz.de
|
|
|
|
|
thank you.
Stream stream = GetType().Assembly.
GetManifestResourceStream
("myprojnamespace.DefaultReport.xml");
works ok.
How to convert returned stream to string ?
I tried
string lcString = stream.ReadToEnd();
but got error
//Error 2 'System.IO.Stream' does not contain a definition for 'ReadToEnd'
Andrus
|
|
|
|
|
Try using ToString() method of XmlDocument object.
modified 17-Jul-19 21:02pm.
|
|
|
|
|
Create a StreamReader or StringReader object to raed the Xml. Both class should have a constructor taking a Stream instance.
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook www.troschuetz.de
|
|
|
|
|
How can connect to web from my interface (with c#)
for example I want connect to Google Map when I click on home picture
|
|
|
|
|
|
Hi every one. plz tell me
Whats the regular expression of a alphanumeric string with no special characters?
I'm a bit poor with this uknow. Can u plz give me a link or two to know how to write these regEx
Rocky
|
|
|
|
|
If you search CP, there's a program in an article, it's called Expresso. It's awesome for building Regex with.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Hello again,
I want to make an installation wizard to my project, I mean that if I run this installation file I'll see a nice installation wizard that will install my project on other computers.
How can I do that?
SnaidiS(Semion)
|
|
|
|
|
If you're using Visual Studio simply create a Setup project.
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook www.troschuetz.de
|
|
|
|
|
Where can I find the setup project option?
SnaidiS(Semion)
|
|
|
|
|
In the menu "File>New>Project.." so the "New Project" wizard appears. On the left side there should be a project type called "Other project types" with nested project type "Setup and deployment". Choose this one and you should be able to create a setup project.
Note: As I have a VS in german language the given names may not be 100% correct, but they should at least be similar to the actual ones.
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook www.troschuetz.de
|
|
|
|
|
But if I already have preapared project should I write him again now?
SnaidiS(Semion)
|
|
|
|
|
No you do not need to write the project again. Create the setup project in the same solution as the project you want to deploy. Easiest way would be clicking on the solution item in the project explorer and in the opening context menu choose "Add>New Project..". The rest of the procedure is the same as described in my previous post.
Also take a look at this link on MSDN to learn more about deploying your application with the help of VS: Deploying Applications[^]
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook www.troschuetz.de
|
|
|
|
|
Thanks you, it works fine
SnaidiS(Semion)
|
|
|
|
|
What if I have completed project and I want to make setup wizard-should I start again a new project and rewrite him there?
SnaidiS(Semion)
|
|
|
|
|
How do i disable the a toolstripmenuItem of menustrip in an MDI form from the child form.
or
can i access the toolstripmenuItem of MDI form from child form saying some thing like
this.MdiParent.MytoolstripmenuItem??
well i dont to pass the MDI form instance to every child form, just to disable some toolstripmenuItems
Any help is appreciated
red
yojimbo
|
|
|
|
|
Assuming your MDI form is named MdiForm and the ToolStripMenuItem is accessible via a public property named MytoolstripmenuItem the following should work:
((MdiForm) this.MdiParent).MytoolstripmenuItem
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook www.troschuetz.de
|
|
|
|
|
perfect answer . .
|
|
|
|