|
Hi,
I created a project to teach myself C#/VS2003 and have now found that after a couple of months AND upgrading to VS2005 that I would like to clean it up and get rid of all the mistakes/junk/bad coding that I did during the early days .
What I want to do is create a new project in VS2005, get the basic display right and then copy most of the original code pages into the new project.
I know how to copy accross the "old" .cs code files and guess I can then do a replace of the references to the old namespace to integrate these into my new project.
Is this the best way to go about it or is there a better/easier way to do this. Are there any pitfalls/dangers to watch out for.
Comments on your past experiences/suggestions will be most welcome.
Thanks,
Glen Harvy
|
|
|
|
|
I'd say just to start over. Create your new project and write the code again using the lessons you have learned. If you just copy the files you'll still have all the mistakes/junk/bad code to deal with.
only two letters away from being an asset
|
|
|
|
|
Hi,
I have set SQL Express as pre-requisite of my C# Windows application. Now what happens is that whenever i install my app., it installs SQL Express even if SQL Server 2005 or SQL Server 2000 is installed on the target machine. If SQL Express in already installed, then it does not install it. I dont want SQL Express to be installed whenever any of SQL Server 2005 or SQL Server 2000 is installed on the target machine. Please guide me how can i do that?
Regards,
Wasif Ehsan.
|
|
|
|
|
You need to write a custom action in your installer to check for the presence of SQL Server then either install SQL Express or not.
only two letters away from being an asset
|
|
|
|
|
hi
who knows, what dll is better to use for an application wich needs to perform some ftp actions. i found BytesRoad.Net but it's too slow, and also ComponentSpace.Ftp, but it's 30 days trial...tahnks
|
|
|
|
|
There is a libraty Called LumiSoft.Net[^] (The library does A LOT more than the article shows.Lastest version Here[^] ) wich has both FTP Server & Client implementations on it.
Also, you can use "FtpWebRequest" (.Net 2.0) to manage FTP operations.
I'm on a Fuzzy State: Between 0 an 1
|
|
|
|
|
I use the Process.Start method to lauch a DOS utility from my application as as expected a BIG ugly black window appears. :-p How can i launch the process yet keep the window hidden. The DOS utilty requires no interaction.
|
|
|
|
|
ProcessStartInfo.WindowStyle[^]
A ProcessWindowStyle that indicates whether the process is started in a window that is maximized, minimized, normal (neither maximized nor minimized), or not visible. The default is normal.
|
|
|
|
|
Use ProcessStartInfo and set the WindowStyle property to Hidden;
only two letters away from being an asset
|
|
|
|
|
Hi,
I have a user control in the project. The user control when loaded in the design view gives an error and VS 2005 automatically shuts down.
But the same user control opens in all other systems.
Any idea of what the problem would be???
Thanks and Regards
Madhu
|
|
|
|
|
What a strange beahviour ... try after restarting ur machine..
|
|
|
|
|
Hi all.
First of all: Sorry for my bad english.
Does someone know (or have an app) how I can list the buttons, textboxes, etc of a window?
I want to make a robot that will automatize some tasks of an application (the robot will behave like a person).
So I need to find the window (browsing all apps running on computer) and then find the controls in that window.
Tks in advance.
Best Regards,
Marco Alves.
|
|
|
|
|
foreach(Control c in Controls)
only two letters away from being an asset
|
|
|
|
|
Hi.
Thx for your reply.
I'd missed to say that this will be done in another application. Understand? In fact, that application code was written in vb6. It's not my application and I don't have its source code, so, I will "force" the communication between them.
I think that I need to use windows api, but I don't know so.
Best Regards,
Marco Alves.
|
|
|
|
|
Hi,
I am new to c# , can any one help in finding a good logic for in
intersection of polygon .
Thank you
Regards
Praveen
|
|
|
|
|
Sounds like the sort of info that google is just bursting to provide.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
|
A good way to get people's help is to show that you've at least tried to help yourself first. What's the rationale behind 'I can type something into google and get my answer, but I want someone else to do it for me' ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
is there any property file concept in C# where i can use getXXX() or setXXX() method to retreive or assign value from the property file like we have in java
----------------------------------------------------------------
where there is a will there is a way
Nasim
|
|
|
|
|
Yes. You can use ApplicationSettings to bind properties, such as this.
string s = global::MyProject.Properties.Settings.Defualt.NameOfBinding;
global::MyProject.Properties.Settings.Defualt.NameOfBinding = s;
only two letters away from being an asset
|
|
|
|
|
Not really, but there is nothing to stop you implementing one in just the same way as the Java implemented one!
|
|
|
|
|
Hi can u please let me know wht the following format means
also please give me some examples for this....
Regex re=new Regex("^([0-9]+d )?([0-9]+h )?([0-9]+m )?([0-9]+s )?$");
regular expression in c#.
thanks in advance.....
|
|
|
|
|
chandler83 wrote: ([0-9]+d )?([
Any number of digits, followed by a lowercase d. The ? means this group doesn't have to exist for there to be a match
next group does the same for digits followed by h, then the same with m, then the same with s. I believe that ^ means the start of a line, and $ means the end. This will match an empty line, or a line that matches any one of those groups. If there's only ever one group, and it could contain d/h/m or s after the numbers, then the better way to write it would be
Regex re=new Regex("^([0-9]+[dhms])$");
This also won't match an empty string. The brackets control grouping, groups that matched can be retrieved after performing a regex.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Christian Graus wrote: Regex re=new Regex("^([0-9]+[dhms])$");
Wrong. What you probably meant was ^([0-9]+[dhms]){0,4}$
But that would still be wrong, because it wouldn't preserve the order of d,h,m,s.
The original Regex at least ensures the correct order of d, then h, then m, then s.
Christian Graus wrote: Any number of digits
Just to not confuse the thread opener:
it acutually meast at least one digit
+ = one or more
* = zero or more
? = optional character, group
regards
modified 12-Sep-18 21:01pm.
|
|
|
|
|
Greeeg wrote: Wrong. What you probably meant was ^([0-9]+[dhms]){0,4}$
No, you're wrong. I said if the regex is intending to find ONLY ONE group out of the four ( not any of the four groups, in that order ), then the regex I provided would be a substitute.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|