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
M

Manster

@Manster
About
Posts
57
Topics
23
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • TreeView control display bug?...?
    M Manster

    Hi, Can anyone tell me how to get the Microsoft.Web.UI.WebControls.TreeView web control to display properly in IE? It shows up fine in Firefox, but in IE it shows all the nodes on the same line. For example: Internet Explorer: Node1 Node2 Node3 Node4 Node5 Node6 FireFox: Node1 Node2 Node3 Node4 Node5 Node6 I haven't done anything special to the webform or changed any of the control properties. Thanks ;)

    ASP.NET tutorial design help question

  • Create a .pdf file programmatically?
    M Manster

    Hi, I've seen various postings on the code project about creating a pdf file programmatically, but none of them seem to work or they mention short comings in the process. Is their a way to do this? I have an xml file I'd like to create as a .pdf file. Can anyone point me to a free solution to do this? Thanks ;)

    C# xml question

  • Web services question...
    M Manster

    Thanks so much for your help, this is exactly what I needed. :)

    C# question wcf

  • Web services question...
    M Manster

    So all I need to do is add this code to my web service and this will get the calling programs ip address? string sHostName = Dns.GetHostName(); IPHostEntry ipEntry = Dns.GetHostByName( sHostName ); string sCallingAppName = ipEntry.HostName; Thanks

    C# question wcf

  • Web services question...
    M Manster

    Heath, I looked at the Dns class, but I didn't see anything obvious that would help me find out the calling computers ip address of my web service. Is their a way to do this? Thanks

    C# question wcf

  • Web services question...
    M Manster

    Hi, Can anyone tell me how a web service would get the calling computers IPAddress? I'm new to web services and I'm not sure where to look for this type of information. It's probably something really obvious that I'm unaware of. Thanks

    C# question wcf

  • Easy Arithmetic question
    M Manster

    I've run into problems with the same issue before. The only way I could fix the rounding error was: double c = a + b; c = Math.Round( c, 2 ); Hope this helps. :)

    C# question

  • How do you add intellisence text to an object or function?
    M Manster

    Hi, Can anyone tell me how to add intellisence descriptions to an object, function, and or property? I think it has something to do with adding text in [] above a object, function, or property but that's just a guess. Thanks :)

    C# tutorial question

  • Lock a file?
    M Manster

    I just figured this out: private bool LockFile( string sFilePathToLock ) { bool bFileLocked = false; if( File.Exists( sFilePathToLock ) && ( File.GetAttributes( sFilePathToLock ) != FileAttributes.ReadOnly ) ) { File.SetAttributes( sFilePathToLock, FileAttributes.ReadOnly ); // Use the FileAttributes.Archive to mark a file for deletion. bFileLocked = true; } return bFileLocked; } private bool UnLockFile( string sFilePathToUnLock ) { bool bFileUnLocked = false; if( File.Exists( sFilePathToUnLock ) && ( File.GetAttributes( sFilePathToUnLock ) == FileAttributes.ReadOnly ) ) { File.SetAttributes( sFilePathToUnLock, FileAttributes.Normal ); bFileUnLocked = true; } return bFileUnLocked; } Hope this helps. ;)

    C# csharp xml question

  • Passing a xml document to and from a web service...
    M Manster

    Hi, I'm trying to create a C# web service that takes a string (a file path) and returns the xml document. I'm having some trouble with this task so any help would be much appreciated. If you know of any examples that do this, please share them. My web service function looks like this: [WebMethod(Description = "Returns the xml file.")] public XmlDocument GetXmlFile( string sXmlFilePath ) { if( sXmlFilePath != "" || sXmlFilePath != null ) { m_XmlDocument.Load( sXmlFilePath ); m_XmlDocument.Save( @"C:\Documents and Settings\dsterling\Desktop\Golfers311.xml" ); } return m_XmlDocument; } m_XmlDocument is a global variable. Below is the code in my web service consumer app. private void button1_Click(object sender, System.EventArgs e) { XmlNode xNode = TWS.GetXmlFile( @"C:\Documents and Settings\bob\Desktop\Golfers.xml" ); xDoc.Load( @"C:\Documents and Settings\bob\Desktop\Golfers.xml" ); xDoc.Save( @"C:\Documents and Settings\bob\Desktop\Doug.xml" ); System.Diagnostics.Process.Start( "notepad.exe", @"C:\Documents and Settings\bob\Desktop\Doug.xml" ); } Thanks for your help!

    C# csharp xml help

  • Encrypting data not files...
    M Manster

    Hi, I'm trying to encrypt data in a large text control on a C# windows form. Can anyone tell me how to encrypt and decrypt the data that's in just the text control? I've seen instances on how to encrypt and decrypt files, but not strings of data. I don't need any particular algorithm, but lets just say DESCryptoServiceProvider as an example. Thanks ;)

    C# tutorial csharp algorithms question

  • wma to mp3 converter?
    M Manster

    Hi, Can anyone tell me a free application which will convert .wma files to .mp3 files? I've got windows media player 9 and music match and I haven't been able to figure it out. Thanks :)

    The Lounge regex question

  • Getting the selected tree node's text?
    M Manster

    Mazdak, Thanks for your help. I'm actually trying to get the child node from the code you listed above. So if I'm currently getting "Last Name" returned to me now, I'm trying to get "Wallace" instead. This is the tree structure. Last Name     Wallace A child node is selected and I need it's text. Is this possible? This is the tree structure. Thanks

    C# question csharp data-structures

  • Getting the selected tree node's text?
    M Manster

    Hi, I've got a question regarding the treeview control on a C# windows form. How can I get the text of the selected treeview node? I know I need the .Text property to get the string, I just can't seem to get the selected/active treenode. I want to take part of that text and put it in a tool tip. I've got the tooltip part working but I'm getting the parent tree nodes text. The tree structure looks like this. Last Name     Smith     Wallace First Name     John     William Thanks :)

    C# question csharp data-structures

  • Global fucntions where do they go?
    M Manster

    Yea I tihnk so. I think another namespace as well makes a lot of sense. Thanks for you help!

    ASP.NET csharp asp-net database security help

  • Global fucntions where do they go?
    M Manster

    Mazdak, Thanks for your help. I've got one question about the assembly. I'm not really sure what an assembly is or how I'd add something to it, and then access that function throughout the app? This is a really stupid question, pardon my lack of ASP.NET knowledge. Thanks for your help!

    ASP.NET csharp asp-net database security help

  • Global fucntions where do they go?
    M Manster

    Hi, I'm new to ASP.NET and I'm trying to create a C# database driven web app. With the help of some other code project readers, I'm now able to create global variables. Where do I create global functions? I'm trying to create a global function to open a record set for instance when I pass it the global connection string. Another example would be I'd like to create a global function to encrypt a string passed into it. Where would I put the encryption function and how would I access it? Thanks :)

    ASP.NET csharp asp-net database security help

  • Include File??
    M Manster

    Hi, I'm new to ASP.NET as well and I'm trying to figure out the same thing regarding include files. If you figure it out please let me know and I'll do the same. Thanks ;)

    ASP.NET csharp asp-net question

  • Global variables where do they go?
    M Manster

    Hi, I'm new to ASP.NET and I'm trying to create an (C#) application that uses global variables. I have a database connection string and I want to be able to use it in many of my pages. How can I do this? I created an object to do this, but I don't want to be forced to create that object on every page which uses the database. Thanks :)

    ASP.NET csharp question asp-net database

  • Creating an XML File
    M Manster

    Daljv, Here is an article I wrote which does all of the things you want to do programatically in C# in a windows application. http://codeproject.com/csharp/CSPersonalOrganizer1.asp Good Luck ;P

    C# csharp database winforms xml tutorial
  • Login

  • Don't have an account? Register

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