|
well i am assuming you know how to use the regex class and loop matches so ill attempt at a regex string for you...
"^<.*>.*<.*>$"
then with you match you could do a subtring...
string text = match.Substring(match.IndexOf('>') + 1, match.LastIndexOf('<'));
...maybe that will do it for you
Life goes very fast. Tomorrow, today is already yesterday.
|
|
|
|
|
|
hi
i had a problem while using toolstrip, in C# application
i have a form named 'master', which is mdi child form.
i access it from menu click event of mdiparent form.
i have another form 'example'. it contains toolstrip.
one of the toolstrip buttons is 'master' in 'example' form.
now i m clicking that master toolstrip button again n again,it opens the 'master' form multiple times.
how can i avoid this problem( multiple forms opening)?
hope u help me in this issue.
thanx in advance,
nagendra kumar.
|
|
|
|
|
you could try keeping a reference to the master form somewhere, then you can check that to see if the form is already open or not.
perhaps a static instance of the master form, then when you click button check if is null and create new one if it is
Life goes very fast. Tomorrow, today is already yesterday.
|
|
|
|
|
thanx musefan but i got a prob with that one
is there any other way to solve it?
|
|
|
|
|
Is there a reason for suggesting static? I don't see how that would help, it would be better for the caller to hold a reference that is created when null.
Panic, Chaos, Destruction.
My work here is done.
|
|
|
|
|
that way if there is more than one form that can open master form it will still only open one
Life goes very fast. Tomorrow, today is already yesterday.
|
|
|
|
|
You can always use the MdiChildren property on your MDI Parent to identify whether or not the relevant form was open. There's no need to create a new property when MS has provided one for you.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
Hi Experts,
I have developed a c#.Net 3.5 windows Application,
i created a setup project and everything fine.
when am going to install that setup engine in a machine where there is no .net framework 3.5 it is asking to install .net framework 3.5.
without .net framework 3.5 how can i install my setup project?
please reply me.
Thanks In Advance
--Naren
|
|
|
|
|
You can't. You need to install the framework.
|
|
|
|
|
oh really?
i want to install my .msi file in my client machine where there is no .net framework
hoe can i?
|
|
|
|
|
Why?? Since you can't even run your project, let alone install it, without .NET 3.5 installed, what's the point of getting the installer to work without it??
|
|
|
|
|
You might be able to install it, I'm not sure, but it certainly won't run without the appropriate framework.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
i want to install my .msi file in my client machine where there is no .net framework
how can i?
|
|
|
|
|
How are you expecting to run the application without the framework?
You need to install the framework.
|
|
|
|
|
An .msi file is just a file. You can copy it onto pretty much any computer. However, the Application will not be able to run without the framework.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
why do you try talking sense? are you saying you have created an application using .Net Framework that installs another application?
And please tell me why on earth you would want to install a program that you never intend to work?
Life goes very fast. Tomorrow, today is already yesterday.
|
|
|
|
|
oh no yaar,
i created a setup (.msi) file to my application
and i want to install that in a client machine where there is no .net framework 3.5.
i hope am clear.
|
|
|
|
|
well as far as i know the .msi will run as long as the machine has the right windows installer on it. So your application should install. But it wont work as you will need to install the .Net Framework. What you should do is include the re distributable with your setup as it is a requirement of the application.
If by some how you are trying to ask if you can 'embed' the framework in your application or something like that then the answer is no.
Basically if your don't want to use the .Net Framework on client machine then don't develop with it in the first place.
Life goes very fast. Tomorrow, today is already yesterday.
|
|
|
|
|
|
1. Don't Cross Post
2. Open the installer project, go to [View -> Editor -> Launch Conditions]
3. You've gotten the same answer about 10 times now and responded the same way to all of them but whether you like it or not you need to install .Net for a .Net app to run. What you want to do makes no sense.
|
|
|
|
|
If you are in position what you will do?
|
|
|
|
|
Personally? I would install the .net framework, or next time if a requirement is no .net framework, then guess what...
I wouldn't use a .net language!
DING DING DING, fail.
|
|
|
|
|
Narendra Reddy Vajrala wrote: If you are in position what you will do?
Standing beside you. I would take aim at your stupid and bitch slap you until your eyes pop out.
Asking the same question. I would read what other people have written in response and realise I am being an outstanding feckwit thinking that I can run a program that uses a specific runtime library without having the library installed.
You cannot run a .NET x.x program without installing .NET x.x runtime. That is it. There is no room for a three-year-old-tantrum here. You want the program, then you install the runtime.
Do you understand?
Answer YES or NO.
Panic, Chaos, Destruction.
My work here is done.
|
|
|
|
|
just compare the answers from experts
no two answers were same, at least something new
|
|
|
|