|
Not sure if you want this, but you can package them all into one .exe.
Regards.
-- modified at 3:08 Sunday 23rd October, 2005
modified 17-Jul-19 21:02pm.
|
|
|
|
|
Look for ILMerge on the Microsoft website.
xacc-ide 0.0.99-preview7 now with C#, C, C++, IL, XML, Nemerle, IronPython, Perl, Caml, SML, Ruby, Flex, Yacc, Java, Javascript, Lua, Prolog and Boo highlighting support!
|
|
|
|
|
when excuting "this.axWebBrowser1.ExecWB(SHDocVw.OLECMDID.OLECMDID_HIDETOOLBARS,SHDocVw.OLECMDEXECOPT.OLECMDEXECOPT_DONTPROMPTUSER,ref refmissing,ref refmissing);" will have a wrong message"no regedit control,how to deal with the question?
thanks!
|
|
|
|
|
Hello,
i didnt really know where to post this.
Soo hope it is okay that i have posted it here.
I hope that someone can help me with this regular expression which is giving me a lot of trouble.
It should match +-:._ "space" a-z A-Z 0-9 in any given order or combination.
There have to be at least one of the following characters a-z A-Z 0-9 though.
Spaces are accepted but not as the start or end character.
Also there can not be 2 spaces just after eachother.
Right now i have the following regular expression which does all of it except there can be more than 1 spaces in a row:
^(?! )[ \+\.\-:\w]*(?=[a-zA-Z0-9]+)[ \+\.\-:\w]*(?
|
|
|
|
|
Handle the spaces as a complement to the characters. Each character (except the first) can optionally be preceded by a single space.
^[0-9A-Za-z0-9]( [\w+\-:\.])*$
Less is more.
---
b { font-weight: normal; }
|
|
|
|
|
Hello,
less might be more
but your regular expression seems to be incorrect.
It only accepts if there is 1 space between each character, soo etc. "My Name" is not true, which it should be.
Also it requires the first character to be 0-9 A-Z or a-z even though any character should be accepted.
Spaces are allowed but not nessecary, as long as there is not 2 just after eachother or in the start or end.
Also i think it might be a typo that there is 0-9 2 times in the first block ?
and the + is not escaped ?
It should be used for defining Usernames
Anyway... any of the characters in any combination or order (At least one a-z A-Z 0-9 somewhere), as long as there is not 2 spaces directly after eachoter or spaces in the start or the end.
"-: Whatever :-" <- true
" wha e ver" <- false
"My name ' ' is" <- false
"My name is" <- true
"__- What ever -__" <- true
"A B C D E F G : + - _" <- true
"_-: :-_" <- false (Should be at least 1x a-z A-Z or 0-9)
"_-: T :-_" <- true
Thanks for trying
Martin
-- modified at 14:18 Sunday 23rd October, 2005
|
|
|
|
|
I can't blame Guffa; even after reading your original post and this reply, I still can't figure out exactly what you want. Maybe you should provide a list of user names that are acceptable and a separate list that are not.
By the way, if your requirements for names are pretty standard, you can just google for "regular expression cookbook" or "user name regular expression" or the something similar and you will probably find what you are looking for.
Matt Gerrans
|
|
|
|
|
Hmmm...
i cant really figure out how to describe it then.
Characters that are accepted are a-z A-Z 0-9 and +-:_ and spaces ...
The characters can be in any combination you can think of, as long as spaces are not the first or the last or 2 spaces just after eachother.
Also at least 1 letter or number (a-zA-Z0-9) should present.
Soo ...
"::: - - :::" <- false because there is no letter or number in it
"Hello # Hello" <- false because # is not allowed
" Hello" <- false because first character is a space
"Hello " <- false because last character is a space
"Hello space space Hello" <- false 2 spaces just after eachother (space is = " " just cannot write it here)
"My name is" <- true
"_.-My Name Is-._" <- true
"..... R ...." <- true
Martin
Characters: a-z A-Z 0-9 +-:_
Rules: A space " " cannot be the first or the last character. Also there cannot be a space directly after another space.
At least one letter (a-zA-Z) or a number (0-9) should be in the string
|
|
|
|
|
Yes, the regular expression I wrote is not correct. I forgot the ? after the space to make it optional, for one.
So, forget the regular expression and just read what I said.
---
b { font-weight: normal; }
|
|
|
|
|
|
Hello,
thanks for the reply.
It looks good. Ill try it out.
At the moment i am using - The Regex Coach
Martin
|
|
|
|
|
i have usercontrols contained in tabs and
these tabs are contained in a windows form.
Upon clicking the next button from the windows form, i set some validation of data against
entries in my user control.
How do I set the focus back to the user control and prevent the user from moving to the next tab page (next user control)?
Thank you. =)
|
|
|
|
|
CandyMe wrote: How do I set the focus back to the user control
You may add a public method to this usercontrol, which sets focus to the control that was given to it by parameters.
CandyMe wrote: prevent the user from moving to the next tab page
Disable it.
"Praying." Is this only what I can do for him ?
|
|
|
|
|
I researched but says tab pages cannot be disabled. I will only have to remove it.
How come myControl.Focus() doesn't work?
Thank you
|
|
|
|
|
CandyMe wrote: How come myControl.Focus()
Its a usercontrol, so Focus method will focus the control itself not the inners controls.
"Praying." Is this only what I can do for him ?
|
|
|
|
|
|
Hello, I'm looking to write a image slideshow program in C# that would take a folder and show you all the .bmp's .jpg's etc etc in a folder. I know there's plenty of programs out there that would do this but this seems like a good way to increase my knowledge of C# and the .NET framework in general so I am giving it a go.
My question is I was wondering if anyone could point me in the best direction on how I should display the images, I would like to have them display in a window or full screen. The Picture Box works fine for this type of thing but not so great for doing a full screen mode.
So I was just looking for suggestions on areas of the framework I should look at for attacking this problem or if you have any architecture suggestions that would be great too!
Thanks!
|
|
|
|
|
If you are using .NET 2.0, its methods and classes of GDI will help you, you may use an invisible panel which shows up only when its full screen and set it Dock property to Fill , and then show the image as a background for it, and when he clicks Esc key, hide it and show the regular PictureBox
"Praying." Is this only what I can do for him ?
|
|
|
|
|
Is there a known problem with the release version of the C# .NET 2003 compiler as regards exception catching? Can someone point me to where Microsoft lists all known bugs? I have been searching and haven't turned it up. I found a page which listed bugs fixed in a particular release, but haven't found anything about this.
I am trying, at the top level of an application, to catch any errors which have bubbled up from below. I have a try/catch around the Application.Run that brings up the main form of an application. This is in one project. The form is in a different project.
If I build in debug mode and an error occurs on the form, the error is caught by my application. If I build in release mode, the error is not caught by may application - a message box comes up showing the error was caught by the system.
I created a sample solution to simplify the environment and the problem still occurs.
My concern is not with the particular error which is getting by my catch, but with the fact that any error is. Is there something inherently wrong with the way I am doing it, and it just happens to work in Debug configuration, or is there a problem with the release compiler?
Here is the code I used to demonstrate the problem:
From the project 'starter':
<code>
using System;
using System.Windows.Forms;
using FormPart;
namespace starter
{
public class starter
{
[STAThread]
static void Main()
{
try
{
Application.Run(new FormFormPart());
}
catch (Exception e)
{
MessageBox.Show("Exception Caught", "starter Message");
}
}
}
}
</code>
From the project FormPart in the namespace FormPart which has a populated DataGrid object:
<code>
private void button1_Click(object sender, System.EventArgs e)
{
dataView2.RowFilter = "Distance Like 'a'";
}
</code>
The error occurs because Distance is defined as a System.Double column. Again, I'm not concerned about fixing this particular error - just about how any error is getting by the catch at the top level.
Thanks for any thoughts ...
|
|
|
|
|
|
Hi!
Yes, this is a known (although not too well-known) behaviour. Until now I couldn't get a plausible explanation why this behaviour occurrs, but at least there's a workaround. Take a look at
this discussion[^] on the same topic.
Regards,
mav
|
|
|
|
|
The reason is quite simple: Windows.Forms has it's own error dialog that allows to choose "continue" if an error occured inside an event handler. Then the form tries to continue execution.
But if you're running with a debugger attached, Windows.Forms does not use it's error dialog to give the debugger (or another try-catch statement) a chance to handle the exception.
To catch all exceptions in all cases, you have to:
- create a global try-catch in your Main method
- handle the Application.ThreadException event (for exceptions in Windows.Forms)
- handle the AppDomain.CurrentDomain.UnhandledException event (for exceptions in other threads)
|
|
|
|
|
Thanks - working now. All 3 responses were helpful.
|
|
|
|
|
Hello Everybody!!!!
I have once problem .
I had developed server and client application.
Server is running on specific ip address which the ip address i took from my dialup connection and specific port.
I gave friends of mine my client application through the internet Letting them try to connect to my pc and i gave them my current ip address which i took from my dialup connection.
Then my friends failed to connect to my pc and throws exception for them telling them "Can't connect to non-connected sockets".
Something like that.
But my client applications seems not to recognize my machine on the internet i don't know why.
By the way my application and server runs successfully on both local machine and through Large Lan of about 30 pcs connected to each other in cyber cafe of internet and it works really very good but i don't know why it doesn't work for the internet .
By the way,
My connection to websites on port 80 is successfully done but i don't know why the client application can't connect to my pc By knowing my ip address and the port to connect to.
Please any one with networking ideas please refer to me with any solution or suggestions or even any idea.
Thanks.
Your friend,
Snouto override.
Mess With The Best And Die Like The Rest
|
|
|
|
|
Hi,
I've got a C# class library compiled with VS 2005 Express. Is this likely to be the reason why a #using statement in my Managed C++ project in VS2003 fails to compile? The error:
fatal error C1192: #using failed on 'xxx.dll' Is there any difference between library formats? Is there any solution?
Joel Holdsworth
|
|
|
|