|
|
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 . .
|
|
|
|
|
In my windows app I have a MDI parent form and a child form.
In my parent form i have Menustrip control with toolstripmenu items File and windows
File further has subItems open and exit
In child form i have a Menustrip with toolstipmenu item File.
This File item has a subItem save and fileItem has the following setting
fileItem.MergeAction = MergeAction.MatchOnly;
Now automatic merging of the child and parent forms is going rightly
after merging my Parent form menustrip has this
File with subitems ---open ,save and exit
But the problem is my child form is also showing a menustrip with File Item. However it doesnt show save subitem of the File, which is rightly merged to parent File item.
I dont understand why the File Item is being shown in the child form. The child form is not supposed to show any menustrip as everything from child form is automatically merged to the parent forms menustrip.
Any help is appreciated,
yojimbo
|
|
|
|
|
dont worry all i had to do was set the childs menustrip.visible = false
yojimbo
|
|
|
|
|
I have a program has a few things that it gets from online that i want to use. I'm not sure if it puts it together itself, or if it simply downloads one site, changed based on the search. Is there a program that could tell me eveything that my computer downloads?
|
|
|
|
|
hi
here is the scenario.. When the user selects a Title from the list box the related info for that title is shown in the browser control.. As I am searching with the expr="rss/channel/item/title" -> this will get all titles from the xml document and the condition in the loop will check for the selected title, To show the related info for the title...such as link and description..
How can I access these elements(link and description)? one method is Nodes.Item(i).NextSibling but with this method I can't gaurentee the next element will be link or description ! So I have to navigate all the elements in the selected Node Right? How can I do that...
[CODE]
string expr="rss/channel/item/title";
XmlDocument d= new XmlDocument();
d.Load(path);
XmlNodeList Nodes =d.SelectNodes(expr);
for(int i=0;i<nodes.count;i++)
{
="" if(nodes.item(i).innertext="=s)
" get="" other="" elements=""
="" }
="" }
[="" code]=""
<div="" class="ForumSig">Q@!$3r
|
|
|
|
|
You're using selectnodes to find your node set, you can use it again on the nodes you find, to find subnodes. Or, SelectSingleNode, if you know there is no more than one.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Rizawn wrote: How can I access these elements(link and description)?
It would be helpful to see your XML in order to tell you exactly how, but maybe you already figured this out with Christian's suggestions.
One annotation for the code you already got. Why don't you incorporate the title from the list box into the XPath expression? This way you would not need to check yourself and can simply iterate over the returned node collection. From the top of my head and should be:
string expr="rss/channel/item/title[text()=" + s + "]";
Note that I assume s contains the title selected in the listbox.
P.S: Use the "pre" and "code" formatting provided beneath the textbox to highlight code in your posting.
"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
|
|
|
|
|
hellow to all ..
i am trying to return a parameter from sql statment that i insert , how can i do it ?
for example i have a sql statment that inset into a table i wanna when i insert a value to Return the indx that i just inset or created ...
if anyone can please direct me or help me i will be thankfull ....
|
|
|
|
|
http://www.developerfusion.co.uk/show/4278/3/[^]
In a nutshell:
// add a new parameter, with any name we want - its for our own use only
SqlParameter sqlParam = com.Parameters.Add("@ReturnValue", SqlDbType.Int);
// set the direction flag so that it will be filled with the return value
myParm.Direction = ParameterDirection.ReturnValue;
Then, after the stored procedure has been executed,
int returnValue = (int)com.Parameters["@ReturnValue"].Value
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
i want to creat a class named school.this class can be used in foreach.I know that i should used IEnumeratore or IEnumerable but problem.my class have a collection of different object. i mean i wish i coud have a loop statment like here foreach(student s in school) or foreach(teacher t in school)
|
|
|
|
|
Your object needs to expose properties that represent the collection of students and teachers, so you can do
foreach(student s in mySchool.Students)
You can't vary your enumerator by return type, you can't do that for any method.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
You cant do that, but you could provide two properties, say Students and Teachers,
that return a collection of students and teachers respectively.
Then you can do foreach (Student s in school.Students) {...}
Alternatively you can have both Student and Teacher inherit from the same base class
(say Person) and do:
foreach (Person p in school) {
Teacher t=p as Teacher;
if (t!=null) { do teacher stuff }
}
and similar for students.
Luc Pattyn
|
|
|
|