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
W

Wayne Phipps

@Wayne Phipps
About
Posts
123
Topics
22
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • [Message Deleted]
    W Wayne Phipps

    You said you had one question but posted 3 times about the same subject. Please don't post multiple topics, if you need to change the post, there is an edit link which allows you to make necessary changes. May I suggest you edit or delete your previous posts.

    Regards Wayne Phipps ____________ Time is the greatest teacher... unfortunately, it kills all of its students View my Blog

    C#

  • MySQL Connection
    W Wayne Phipps

    I found this page which lists different connection strings dependant on the API (driver) you use: http://www.connectionstrings.com/?carrier=mysql I don't know if it helps?

    Regards Wayne Phipps ____________ Time is the greatest teacher... unfortunately, it kills all of its students View my Blog

    C# sysadmin mysql security help question

  • MySQL Connection
    W Wayne Phipps

    I don't use MySQL myself but just looking at your string there are three comments: 1) shouldn't "Network Address=ip:3306" be something like "Network Address=127.0.0.1:3306" 2) you use the ";" as a seperator but it's missing from the first aurument. 3) you've got quote marks "'" around most of the arguments except the first. This would give the first line the following format: ("Network Address='127.0.0.1:3306';" Just an idea..

    Regards Wayne Phipps ____________ Time is the greatest teacher... unfortunately, it kills all of its students View my Blog

    C# sysadmin mysql security help question

  • what is namespace in C#.net windows application?
    W Wayne Phipps

    Have you ever used Google? what is a namespace c# namespace (C# Reference)

    Regards Wayne Phipps ____________ Time is the greatest teacher... unfortunately, it kills all of its students View my Blog

    C# csharp question

  • how to correct this code of C#.net windows form?
    W Wayne Phipps

    Methods are case sensitive IE foo and Foo are not the same. The correct method is MessageBox.Show Please see the following link for further details: http://msdn2.microsoft.com/en-us/library/system.windows.forms.messagebox.show(VS.71).aspx Hope this helps

    Regards Wayne Phipps ____________ Time is the greatest teacher... unfortunately, it kills all of its students View my Blog

    C# csharp help tutorial question

  • SMS receiver using C#
    W Wayne Phipps

    You have the chioce of using a GSM modem or a SMS gateway service. A GSM modem will use an AT command set similar to a traditional modem which would allow you to 'query' the modem perhaps using a serial COM port. A SMS gateway is likely to impliment thier own API or Web Service which you would consume in your application. In both cases, the implimentation is likely to differ based on the service or hardware your use. You will therefor need to refer to the documentation provided by the manufacturer or service provider. The following links may help: SMS Gateway GSM Modem Introduction to SMS Messaging Hope this helps

    Regards Wayne Phipps ____________ Time is the greatest teacher... unfortunately, it kills all of its students View my Blog

    C# csharp tutorial question learning

  • How can I communicate to the USB port?
    W Wayne Phipps

    Ummm, I don't think "simple" describes what your trying to achieve. You will need some kind of develepment baord which will contain some kind of usb controller. Some of these use flash firmare which you can rebuild to your own requirements (perform your functions). The .net framework was not designed to perform low level usb communications so you'll probably end up using a third party library. A quick search on google pulled up these links: Basic USB - Using Microchip Stack and C#.Net - Hardware USB and C# The USB library for .NET

    Regards Wayne Phipps ____________ Time is the greatest teacher... unfortunately, it kills all of its students View my Blog

    C# csharp question visual-studio tutorial

  • how to convert unicode to int in C#?
    W Wayne Phipps

    How many characters in the string? Maybe thats the problem? Perhaps you need to ittereate through each character of the string in turn, something like:

    foreach( char character in unicodeString )
    {
         int charValue = Convert.ToInt32( character );
    }
    

    Just an idea. If your still stuck, you should post some of your code.

    Regards Wayne Phipps ____________ Time is the greatest teacher... unfortunately, it kills all of its students View my Blog

    C# tutorial csharp question

  • Adjusting size in a picturebox
    W Wayne Phipps

    You can set the SizeMode property:

    PictureBox1.SizeMode = PictureBoxSizeMode.StretchImage;
    

    See here for details: http://msdn2.microsoft.com/en-us/library/system.windows.forms.pictureboxsizemode.aspx Hope this helps

    Regards Wayne Phipps ____________ Time is the greatest teacher... unfortunately, it kills all of its students View my Blog

    C# question

  • Measuring total system memory
    W Wayne Phipps

    You can use WMI to obtain the amount of physical RAM by adding a reference to the System.Management namespace. You would query the Win32_PhysicalMemory provider. A quick search on CodeProject showed this article: http://www.codeproject.com/cs/system/GetHardwareInformation.asp I'm sure that forcing GC on all processes is impossible as not all applications are managed. I however look forward to reading any other comments.

    Regards Wayne Phipps ____________ Time is the greatest teacher... unfortunately, it kills all of its students View my Blog

    C# csharp dotnet performance question

  • need a simple solution
    W Wayne Phipps

    Number 9 on this link may help: http://www.codeproject.com/script/comments/forums.asp?msg=1278604&forumid=1649#xx1278604xx

    Regards Wayne Phipps ____________ Time is the greatest teacher... unfortunately, it kills all of its students View my Blog

    C#

  • this one is more understandable:D
    W Wayne Phipps

    Please don't start multiple threads on the same subject. There is a modify link on your original post if you need to change your post. Personally, I don't see that this post is any better than the last. Please read my relpy to your original message.

    Regards Wayne Phipps ____________ Time is the greatest teacher... unfortunately, it kills all of its students View my Blog

    C#

  • Saving from one txt file into another one problem?
    W Wayne Phipps

    I don't quite understand the problem/question. As I understand the situation: You save data in a temporary file which is deleted when the application exits. There is another permanent file where the data in the temporary file is written/moved as long at the data doesn't already exist in the permanent file. This would require your code to perform the following: Read a record from the temporary file. Read the contents of the permanent file searching for a matching record. If no record is found in the permanent file, append the permantent file with the new record. Depending on the size of the files and number of records, you may be able to read both files into memory when making comparisons and after any additions, simply write out a new permanent file from the records in memory.

    Regards Wayne Phipps ____________ Time is the greatest teacher... unfortunately, it kills all of its students View my Blog

    C# help question

  • How to find the Current Path, in Windows Application
    W Wayne Phipps

    A similar problem exists when using Environment.CurrentDirectory as the current directory is not necessarily the folder in which your application resides. You can test this yourself by creating a console application containing the following code:

    		public static void Main(string[] args)
    		{
    			Console.WriteLine("Current Directory: " + Environment.CurrentDirectory.ToString() );
    			Console.WriteLine("Press any key to continue...");
    			Console.ReadKey( true );
    		}
    

    Now if you run the code, it does as you would expect. But if you open your applications folder in explorer then right-click and 'create a shortcut', you can edit the properties of the shortcut and change the 'Start in' parameter to 'C:\'. When you then run the application using the shortcut, the current directory is set to 'C:\' and not that of your application. Please see my previous post for the correct method.

    Regards Wayne Phipps ____________ Time is the greatest teacher... unfortunately, it kills all of its students View my Blog

    C# xml help tutorial

  • How to find the Current Path, in Windows Application
    W Wayne Phipps

    Please be aware that Application.StartupPath returns the path of the application that started the executable. See: http://msdn2.microsoft.com/en-us/library/system.windows.forms.application.startuppath.aspx This path is not necessaraly YOUR application. If someone creates a laucncher for your application, if would return the path to their application not yours and also does not include the executable name. The better method would be:

    string path = System.IO.Path.GetDirectoryName( System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase );
    

    Hope this helps.

    Regards Wayne Phipps ____________ Time is the greatest teacher... unfortunately, it kills all of its students View my Blog

    C# xml help tutorial

  • access through Network with a gateway
    W Wayne Phipps

    It may help if you post a question in a support forum dedicated to the product. There is a forum here: https://sourceforge.net/forum/forum.php?forum_id=184705 Maybe you should try posting your question there?

    Regards Wayne Phipps ____________ Time is the greatest teacher... unfortunately, it kills all of its students View my Blog

    C# csharp help database sysadmin tutorial

  • GNU license question (version 2)
    W Wayne Phipps

    I beleive that under both GPL and GNU open source liceneces, you must make your source code freely available. Linksys found themselves having to publish the source code for thier router firmware: http://www.wi-fiplanet.com/tutorials/article.php/3562391 Hope this helps

    Regards Wayne Phipps ____________ Time is the greatest teacher... unfortunately, it kills all of its students View my Blog

    C# question announcement

  • please! I need code upload video
    W Wayne Phipps

    Please don't keep posting the same question. Also, your question doesn't make sense. Hopefully any code you produce will be easier to understand.

    Regards Wayne Phipps ____________ Time is the greatest teacher... unfortunately, it kills all of its students View my Blog

    C# com

  • How to get data from image
    W Wayne Phipps

    OMG, this thread has to be the funniest thing I've read for ages. It's brightend my day. Thanks guys!

    Regards Wayne Phipps ____________ Time is the greatest teacher... unfortunately, it kills all of its students View my Blog

    Visual Basic tutorial

  • How to get the count of lines in .txt file
    W Wayne Phipps

    I would personally prefer to use StreamReader, it certainly looks more elegant.

                int lineCount = 0;
                // Create an instance of StreamReader to read from a file.
                // The using statement also closes the StreamReader.
                using (System.IO.StreamReader sr = new System.IO.StreamReader("myFile.txt")) 
                {
                    // Read and display lines from the file until the end of the file is reached.
                    while ( sr.ReadLine() != null) lineCount++;
                }
                Console.WriteLine( "Line Count: " + lineCount.ToString() );
    

    Obviously you should add some error checking like making sure the file exists ETC but that should otherwise do the job. Hope it helps

    Regards Wayne Phipps ____________ Time is the greatest teacher... unfortunately, it kills all of its students View my Blog

    C# csharp help 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