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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  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...
  16. computerjin

    Determining The Right file Type

    xaedro, Excellent reference! Have another star.
  17. computerjin

    Collection Return string

    What is the use of Collections if one has to iterate a collection to find an item's value! Iterative approach is only good for finding items in Arrays and not in collections. If you are using .NET 1.0, 1.1 or 2.0 and if you always want to send the string to get the integer than you can use this...
  18. computerjin

    Which Provider must i choose?

    You can use the following Connection String for Microsoft Access 2007 in ADO.NET or using Sysem.Data.OleDb namespace. When Access 2007 database is without security: Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\MyDataFiles\MyDatabaseFile.accdb;Persist Security Info=False When Access 2007...
  19. computerjin

    Getting access to bitmap in an ActiveX ImageList

    Fred48, Is your ActiveX ImageList in VB 6 project?
  20. computerjin

    Proper use of "namespace"

    Zathras, What exactly is a namespace? Everybody knows that the fundamental unit of OOP is a “class”. To develop an application, you are free to declare and define any number of classes. When you are dealing with too many classes, sometimes, it may be necessary for you to categorize them in a...

Part and Inventory Search

Back
Top