I know few classes, check out System.Net.WebClient ,System.Web.HttpRequest and System.Web.HttpResponse ...
DevIntelligence.com - My blog for .Net Developers
I know few classes, check out System.Net.WebClient ,System.Web.HttpRequest and System.Web.HttpResponse ...
DevIntelligence.com - My blog for .Net Developers
Check out this article Strip Images From Animated Gif[^].The article shows how to access a specific frame in gif image. So what you need split the source into frames ,and show them separately using timer ...
DevIntelligence.com - My blog for .Net Developers
I checked your code .You must fix the line number 4 from n.SelectedImageIndex = 4;
to n.SelectedImageIndex = 1;
because your image list has only two images and the treeview can't display image for selected node DevIntelligence.com - My blog for .Net Developers
Try to rename the file, and if an exception is throw , means that you cannot open it . DevIntelligence.com - My blog for .Net Developers
Use Application.StartupPath
Property - the property returns the path for the executable file that started the application, not including the executable name. DevIntelligence.com - My blog for .Net Developers
Here is fast and dirty solution using System.Net; ... ... WebClient webClient = new WebClient(); webClient.DownloadFile( "http://remotyeserver/myfile.txt", @"d:\myfile.txt" );
Do the same using ftp is more complicated - but this ftp library[^] can help DevIntelligence.com - My blog for .Net Developers
Usually blog platform contains "MetaBlog API" .You can interact with blog (post,retrive data) by sending/recieving XML.I guess xml-rpc.net library[^] may help you. DevIntelligence.com - My blog for .Net Developers
I don't know, but you can use third party component like DotNetOpenMail[^] .Using "mailto:" you can specify subject ,body - but not file . DevIntelligence.com - My blog for .Net Developers
The following snippet launch the systems default email client System.Diagnostics.Process.Start("mailto:test@test.com");
DevIntelligence.com - My blog for .Net Developers
You may get variable in this way : IHTMLDocument2 document2 = (IHTMLDocument2)axWebBrowser1.Document; object variable= document2.parentWindow.GetType().InvokeMember ("variableName", BindingFlags.GetProperty, null, document2.parentWindow, new Object [] {});
The snippet below shows how to set the variable document2.parentWindow.GetType().InvokeMember ("variableName", BindingFlags.SetProperty, null, document2.parentWindow, new Object [] {"New value"});
DevIntelligence.com - My blog for .Net Developers
Here are ANTS Profiler[^] and my favorite tool dotTrace Profiler[^] DevIntelligence.com - My blog for .Net Developers
You can bind picturebox using Format event ... // your code goes here ... Binding binding = new Binding("Image", dsStudent, "Students.Photo"); binding.Format+=new ConvertEventHandler(binding_Format); pictureBox.DataBindings.Add(binding);
And in Format event you must convert byte [] array to Image private void binding_Format(object sender, ConvertEventArgs e) { using(MemoryStream stream = new MemoryStream((byte [])e.Value)) { e.Value = Image.FromStream(stream); } }
DevIntelligence.com - My blog for .Net Developers
Check out MailChecker [^]. MailChecker is a DLL that lets you check the validity of an Email address by querying the mail server responsible for the email address and asking it via SMTP if the email is valid. DevIntelligence.com - My blog for .Net Developers
You can put panel with normal font on tabpage - so you will get big font in tabs and normal font for the rest of the controls. DevIntelligence.com - My blog for .Net Developers
I found few articles that solves your problem : http://www.codeproject.com/csharp/ponta.asp[^] Another one can be found here http://www.codeguru.com/cpp/i-n/ieprogram/article.php/c1245/[^] but you must port this solution to C# DevIntelligence.com - My blog for .Net Developers
Check out wvWare library .wv is a library which allows access to Microsoft Word files. It can load and parse Word 2000, 97, 95 and 6 file formats. Use wvText - to convert word document to plain text. http://wvware.sourceforge.net[^] DevIntelligence.com - My blog for .Net Developers
You can use SQLDMO to access specific DB Schema .Add reference to SQLDMO object - can be found under COM tab - add entry named "Microsoft SQLDMO Object Library". The snippet shows how to get column details for table "Customers" in "Northwind" DB. SQLDMO.SQLServerClass sqlServer = new SQLServerClass(); //login sqlServer.Connect("MYSERVER", "username", "password"); // go through databases list foreach (SQLDMO.Database db in sqlServer.Databases) { if (! db.SystemObject) { if(db.Name=="Northwind") { // Northwind found // go through tables list foreach( SQLDMO.Table table in db.Tables ) { if(table.Name=="Customers") { // table "Customers" found // go through columns list foreach(SQLDMO.Column column in table.Columns ) { // print out column name Console.WriteLine( column.Name ); // print out column length Console.WriteLine( column.Length ); // print out column datatype Console.WriteLine( column.Datatype ); } } } } } }
DevIntelligence.com - My blog for .Net Developers
Declare the function somewhere inside your class: [DllImport("user32")] public static extern short GetKeyState (Keys VirtKey);
On your KeyDown event, you can check which shift key is pressed in this way: bool lshiftpressed = ((GetKeyState(Keys.LShiftKey) & 256)==256); bool rshiftpressed = ((GetKeyState(Keys.RShiftKey) & 256)==256);
DevIntelligence.com - My blog for .Net Developers
Hi Emran. 1) Yo can easy find microsoft.mshtml . Select "Add Reference" in "Solution Explorer" .Add component named "Microsoft Html Object Library" from "COM" tab. The DLL(COM) comes with IE and should be on your computer . 2)Yes, but with small changes and you still need microsoft.mshtml IHTMLDocument2 HtmlDoc = (IHTMLDocument2)webBrowser1.Document.DomDocument; IHTMLSelectionObject selection = HtmlDoc.selection; IHTMLTxtRange range = (IHTMLTxtRange)selection.createRange(); MessageBox.Show(range.text);
DevIntelligence.com - My blog for .Net Developers
This code snippet reads image file, show it in PictureBox then delete image file from the disk. try { MemoryStream ms = null; FileInfo fi = new FileInfo(textBoxFilePathName.Text); byte [] buffer = new byte[fi.Length]; // read image file into stream using( FileStream stream = File.Open(fi.FullName, FileMode.Open) ) { stream.Read( buffer, 0, (int)fi.Length ); ms = new MemoryStream(buffer); } Image img = Image.FromStream(ms); // display image pictureBox1.Image = img; // delete image file File.Delete( textBoxFilePathName.Text ); //close stream ms.Close(); } catch (Exception e1) { MessageBox.Show( e1.Message ); }
DevIntelligence.com - My blog for .Net Developers