Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
T

tarasn

@tarasn
About
Posts
52
Topics
0
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • http posting data and reading data post
    T tarasn

    I know few classes, check out System.Net.WebClient ,System.Web.HttpRequest and System.Web.HttpResponse ...

    DevIntelligence.com - My blog for .Net Developers

    C# sysadmin question

  • VC# - Draw Image a GIF animation using code
    T tarasn

    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

    C# csharp help

  • Problem in setting icon to TreeView Control
    T tarasn

    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

    C# help

  • File in use?
    T tarasn

    Try to rename the file, and if an exception is throw , means that you cannot open it . DevIntelligence.com - My blog for .Net Developers

    C# csharp question

  • Determing My Programs Directory
    T tarasn

    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

    C#

  • copy file from server to localhost using ftp
    T tarasn

    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

    .NET (Core and Framework) question csharp sysadmin

  • Posting Data to a Blog
    T tarasn

    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

    C# csharp help question

  • Launch Mail Recipient programmatically
    T tarasn

    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

    C# csharp help learning workspace

  • Launch Mail Recipient programmatically
    T tarasn

    The following snippet launch the systems default email client System.Diagnostics.Process.Start("mailto:test@test.com"); DevIntelligence.com - My blog for .Net Developers

    C# csharp help learning workspace

  • Javascript variable from WebBrowser control
    T tarasn

    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

    C# help javascript html question

  • Required .NET Profiler
    T tarasn

    Here are ANTS Profiler[^] and my favorite tool dotTrace Profiler[^] DevIntelligence.com - My blog for .Net Developers

    .NET (Core and Framework) performance csharp

  • picturebox binding
    T tarasn

    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

    C# question database wpf wcf

  • How can I check if a mail exists or not?
    T tarasn

    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

    C# question csharp asp-net help

  • Tabpage and tabcontrol : changing font size
    T tarasn

    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

    C# question help

  • Delete Temporary Internet Files using c#
    T tarasn

    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

    C# csharp help workspace

  • Parsing MS Word text
    T tarasn

    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

    C# csharp json help

  • DataColumn type
    T tarasn

    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

    C# database csharp sql-server sysadmin question

  • How can I see if LeftShift or RightShift was pressed?
    T tarasn

    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

    C# question csharp help

  • Getting Selected text in webbrowser control
    T tarasn

    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

    C# csharp hardware help

  • Lock and Unlock
    T tarasn

    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

    C# help csharp
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups