Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by computerjin

  1. computerjin

    Change user profile in VS

    wendas, Follow the menu Tools -> Import and Export Settings from Visual Studio 2005 IDE. Import and Export Settings wizard will open; choose Import selected environment settings option from the wizard and click Next button. On the next wizard step you will see your required settings. Select any...
  2. computerjin

    Remove Hard return from Word Doc

    hexOffender, Try using the Selection object of Word Document e.g. With Selection.Find .Text = vbCrLf .Replacement.Text = String.Empty .Forward = True .Wrap = wdFindContinue .Format = False .MatchCase = False .MatchWholeWord = False...
  3. computerjin

    how to get information from the object event

    :-) nice work solo1234. But do not ever use objects of type System.Object without casting to proper type. If you follow this tip, there are far less chances that you will get unexpected program behaviours. Invalid casting or no casting raises nasty problems.
  4. computerjin

    UserName from Registry Converting from VB6

    UncleCake, Try the following code block. Imports System Imports System.Security Public Module WindowUser Sub Main() Console.WriteLine("Current username: " & Principal.WindowsIdentity.GetCurrent.Name) End Sub End Module Hope it helps.
  5. computerjin

    working with "Shell command"

    Try rephrasing following line of code from your code to the one given below. Dim pID As Process = System.Diagnostics.Process.Start("perl C:\\stwich_profile_copy.pl" & param1_folderLoc) to Dim pID As Process = System.Diagnostics.Process.Start("perl", "C:\\stwich_profile_copy.pl " &...
  6. computerjin

    Imlements statement

    aspvbnetnerd, Thank you for the appraisal. Nice to know that my solution helped you. ComputerJin.
  7. computerjin

    Multiple Processors / Cores

    Try looking at Win32_Processor and WIn32_ComputerSystem classes in WMI. System.Management namespace is used in .NET to access WMI functions. Using WMI, you can get much more information about software, hardware, environemnt, networking etc easily and efficiently. Hope it helps.
  8. computerjin

    How to get ptr in VB.Net

    Curtis360it, Try looking at System.IntPtr structure in .NET documentation. It is a platform-specific type that is used to represent a pointer or a handle in .NET. The IntPtr type is designed to be an integer whose size is platform-specific. That is, an instance of this type is expected to be...
  9. computerjin

    Equivalent to EXTPROCESS

    Try using System.Environment.ExitCode property, System.Environment.Exit() method and System.Diagnostics.Process class to accomplish your task. Hope it helps.
  10. computerjin

    working with "Shell command"

    rafiu, Search MSDN on Internet for System.Diagnostics.Process class. You can use Process.Start() to start an external process and Process.WaitForExit() method to accomplish your task. Hope it helps.
  11. computerjin

    Imlements statement

    aspvbnetnerd, If you are sure that you want to have same implementation for both methods then you can use the following code block. It will solve your problem. Public Interface IDataInsert Sub Init() End Interface Public Interface IDataUpdate Sub Init() End Interface Public Class...
  12. computerjin

    How to configure .NET Security for app

    You can find Microsoft .NET Framework 1.1 Configuration Microsoft .NET Framework 2.0 Configuration in Control Panel -> Administrative Tools and not directly in Control Panel (for Windows 2000 and higher). If you could not find there, try installing/reinstalling Microsoft .NET Framework. Here...
  13. computerjin

    Creating picturebox via a class

    solo1234, I'm sorry, I forgot to mention that I assumed you have a picturebox named PictureBox1 on Form3 when using above mentioned 2nd code of block.
  14. computerjin

    Visual Studio 2005 only see VB

    grnzbra, To change your Visual Studio IDE settings, do the following: Click themenu: Tools -> Import and Export Settings Choose Import selected environment settings option from the currently ope wizard window. Press Next button. Here you may choose to save or not to save your current...
  15. computerjin

    Creating picturebox via a class

    solo1234, You need something like this code block to accomplish your task perfectly. Public Class CustomPictureBox Private Shared m_PictureBox As PictureBox Private Shared m_PictureBoxNumber As Integer = 0 Public Shared Sub PaintPictureBox(ByVal containerFormArg As Form, ByVal...

Part and Inventory Search

Back
Top