|
Yes now you got it...but how to set registry keys and i don't know plz help me how to crack this problem i.e very important to my project......
can u plz give settings or solution for that...........
|
|
|
|
|
A registry would only work on one machine, the original, installing a registry would not prevent them from installing it on another machine because it would not be present on that machine, a better solution would be to make a custom serial key as was said earlier, for that comp and it only, mabe with its IP address if the computer is never moved or other computer info, talk with the client first, and get the info, or hard code it into the code for custom perchases. Thats just one idea, if you can get the server varification of a one-time-use serial number that would be best, if you MUST stick with registry keys this:
http://www.codeproject.com/KB/system/modifyregistry.aspx[^]
might help... best of luck!
|
|
|
|
|
Hi All,(Windows Application using C#.net in vs2008)
I am developed one small project on school,now I've a small problem is -how to get a window(small window like vs 2008,sqlserver2005 their own teplates) after deploying(install) the application.I mean that when we're try to open sql server it is give a small size window(like microsoft sqlserver 2005 for couple of seconds) b4 launching a sql server management studio,same like that i want to see my own school template b4 launching of my school project.I think you're cleared about my doubt.
-----Is there any chance to set in click once deployment.
|
|
|
|
|
What you are looking for is called splash screen. There are several implantations available here at codeproject so a simple search should be able to find them.
|
|
|
|
|
|
Glad to help you
|
|
|
|
|
|
and the question would be ......???
|
|
|
|
|
It was some kind of text histogram problem that is commonly encountered in a beginner programming class.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
I recognized the project, it's just that he never said what the problem was.
|
|
|
|
|
Now, that I think of it, there was no indication of what the problem was the OP was having. Sounds like it was here's some code I hacked up, can you clean it up for me, so I can turn it in kind of thing.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
Afternoon all !
I have an application that has a panel with a picturebox within it.
Can anyone enlighten me as to how i code to move the pictureBox from one panel to another.
Thanks in advance
Neil
|
|
|
|
|
You could try setting the Parent property of the PictureBox to the new Panel.
|
|
|
|
|
Hi all,
I am using C#.Net 2008.
I am using following code to varify proper format (udp ip:port i.e "225.1.1.1:3000") of input string.
But it is not working properly.
System.Text.RegularExpressions.Regex regStr = new System.Text.RegularExpressions.Regex(@"\d{1,3}.\d{1,3}.\d{1,3}.\d{1,3}:\d{1,5}");
bool b;
b = regStr.IsMatch("225.1.1.1:3000"); //return true
b = regStr.IsMatch("2225.1.1.1:3000"); //return true. should return false
Anybody knows proper regular expression for ip:port format?
Can anyone give me good links for using Regex , regular expression in C#.
Thanks in advance.
Regards,
Aniket A. Salunkhe
|
|
|
|
|
This behavior is correct, because the regexp you wrote checks for matches contained in the input string.
If you want to match the whole string only, you must add ^ at the begin and $ at the end of your regex.
For Example: "^\d{1,3}.\d{1,3}.\d{1,3}.\d{1,3}:\d{1,5}$"
|
|
|
|
|
Mirko1980 wrote: For Example: "^\d{1,3}.\d{1,3}.\d{1,3}.\d{1,3}:\d{1,5}$"
Wrong, try again.
xacc.ide - now with TabsToSpaces support IronScheme - 1.0 beta 1 - out now! ((lambda (x) `((lambda (x) ,x) ',x)) '`((lambda (x) ,x) ',x))
|
|
|
|
|
It wasn't that wrong. I have to be honest I missed the unescaped . and thought of the other half of the problem (^,$ to match beginning and end)
|
|
|
|
|
J4amieC wrote: It wasn't that wrong.
Yes, it was. Input 123a123b123c123, then it is completely wrong
xacc.ide - now with TabsToSpaces support IronScheme - 1.0 beta 1 - out now! ((lambda (x) `((lambda (x) ,x) ',x)) '`((lambda (x) ,x) ',x))
|
|
|
|
|
You need to escape the '.' else it will match anything.
xacc.ide - now with TabsToSpaces support IronScheme - 1.0 beta 1 - out now! ((lambda (x) `((lambda (x) ,x) ',x)) '`((lambda (x) ,x) ',x))
|
|
|
|
|
That is true, too. You must also replace all the . with \.
So, the regex is "^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}:\d{1,5}$"
Take in mind that also the above regex is not absolutely correct. For example, it matches also 999.999.999.999:3000.
|
|
|
|
|
Mirko1980 wrote: "^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}:\d{1,5}$"
Thanks. It's working to check proper format of string.
Still I am working to check proper formt of string with correct ip address & port.
Thanks & Regards,
Aniket A. Salunkhe
|
|
|
|
|
Try This :
System.Text.RegularExpressions.Regex regStr = new System.Text.RegularExpressions.Regex(@"^[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}:[0-9]{1,5}$");
Thanks!
Develop2Program & Program2Develop
|
|
|
|
|
Wrong! Same mistake as Mirko1980.
Try 123a123a123a123, your regex will match that too!
xacc.ide - now with TabsToSpaces support IronScheme - 1.0 beta 1 - out now! ((lambda (x) `((lambda (x) ,x) ',x)) '`((lambda (x) ,x) ',x))
|
|
|
|
|
But this work's fine.
MessageBox.Show(System.Text.RegularExpressions.Regex.IsMatch("123a123a123a123", @"^[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}:[0-9]{1,5}$", System.Text.RegularExpressions.RegexOptions.ExplicitCapture).ToString());
Thanks!
Develop2Program & Program2Develop
|
|
|
|
|
Hmmmm not working for
2221.1.1:3000
Sorry!
Develop2Program & Program2Develop
|
|
|
|
|