|
you could skip regex and use FileInfo.
FileInfo fi = new FileInfo(filename);
string ext = fi.Extension();
Just an idea. Not sure what would be faster tho.
|
|
|
|
|
I did not notice the "Extension" property of the FileInfo object. That is definitely a better solution. Well, at least i got some RegEx practice from all this. I will be using RegEx extensively in my next project.
|
|
|
|
|
|
How Can I take backup of all table(with data) and store in XML file
Its Urgent plz?
|
|
|
|
|
I dont know if it's possible!
Maybe you should use a serializable file to save the objects..
VentoEngine corp.
Program your life ^^
|
|
|
|
|
You can pull the data you want to back up into a DataSet and then use the GetXml method to convert the Data into Xml.
|
|
|
|
|
Is this possible for entire database.
|
|
|
|
|
Technically yes it is possible. I don't know if its the most efficient solution though. Basically you would have to create a DataTable for each table in your database by quering the records you want to backup and then add the DataTable to the DataSet before you call the GetXml() method.
|
|
|
|
|
But, How to bind the whole database table in dataset, Can u give me any idea or any link...
|
|
|
|
|
Can can we take backup(programatic)of database as well as data of tables and store in XML file
|
|
|
|
|
|
The solution to this problem ( what I understand is):
Go to lable’s property box, then find (DataBindings) tree on the top, open its tree, there you will se (Advanced) property. Select it and click the button on right. It will open a dialog box for “Formatting and Advanced Settings”. Here you will get a combobox naming “Binding”. So from here you can databind your label control.
Sheel Gohe
|
|
|
|
|
im using visual studio 2005 and im writing aspnet
in label properties databindings never been
|
|
|
|
|
Sorry buddy, i thought you were building windows application.
Sheel Gohe
|
|
|
|
|
Hi all,
I am designing an app which has its FrameBorderStyle set to none. As a result, it is not possible to get the System menu by right clicking on the application icon in the taskbar.
Can anyone tell me how to get around this problem.
Thanks in advance.
*** Who said nothing is impossible? I have been doing it for a long time ***
|
|
|
|
|
Printing is sent from an application ( notepad,wordpard,pdf file etc) .Before print the data I want to add the purpose of print to the print job through my application in C#.
Can I fire an event in C# before printing, sent by any application?
If possible give me some idea ,or what book /site to follow to fire event and add data to the printing job.
|
|
|
|
|
I am using C# for an application project. I am looking for the best grid tool.
Anyone can give me suggestion. Lisenced or free tool is OK for me.
Thank you.
Could you please email to me: tubaphuoc@yahoo.com.
Phuoc Tu
|
|
|
|
|
Hi there,
just googling and then find out which one is the best fit for you...
<< >>
|
|
|
|
|
Take a look at the DataGridView deliverd with VS2005.
Live is to short to be angered about lost chances!
|
|
|
|
|
|
For Better Implementation with .NET Farpoint Grid is better & easier also, it is availble from
http://www.fpoint.com/[^]
regards
GV Ramana
-- modified at 6:43 Friday 23rd December, 2005
|
|
|
|
|
Try the XCeed Grid. I have been using it for couple of months for my C# apps, and It has got many features. You can download it free (trial version) and hack is available in the net.
- Rohitha
|
|
|
|
|
I am trying to resolve the name then ping the IP adress as follows:
BUTTON CODE
//resolve name to IP
IP test = new IP ();
//string input = "AnyHostName";
test.resolve (input);
test.show_address ();
//THE CLASS
class IP
{
IPAddress [] address;
public void resolve (string host )
{
IPHostEntry entry = Dns.GetHostByName (host);
address = entry.AddressList;
}
public void show_address()
{
for( int i = 0; i < address.Length; i++)
Console.WriteLine (address [i]);
}
}
How to display the result in a textBox not console?
|
|
|
|
|
just simply assign the value to the Text property of the textbox control...
<< >>
-- modified at 3:24 Friday 23rd December, 2005
|
|
|
|
|
I tried this
textBox1.Text=(address [i]); -->No good
textBox1.Text=address; -->No good either
any ideas?
|
|
|
|