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
J

John_Adams

@John_Adams
About
Posts
194
Topics
0
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Get value into 3 form
    J John_Adams

    Hi, The one of the ways to do this could be create a class (say class1) and declare a Public Static (Shared in VB.net) variable and store the text of TextBox on form three in that Public Shared variable. This will enable you to access the variable any where in your project. Hope this helps :)

    Regards, John Adams ComponentOne LLC

    Visual Basic help tutorial question

  • how to read the conents of word file on web page [modified]
    J John_Adams

    Hi, Please know that Word .doc files are in a proprietary Microsoft binary format. They can only be interpreted correctly by the Office Word engine or a third party control suited for this purpose. You may consider using the Office PIA (Primary Interop Assemblies), automate Word and open the document in it, and extract the relevant portions from the same, preserving the formatting. Hope this helps.

    Regards, John Adams ComponentOne LLC

    ASP.NET sysadmin tutorial question

  • Unit Testing in VSTS 2008
    J John_Adams

    Hi, You may take a look at the following links: Link1[^] Link2[^] Link3[^] Link4[^] Hope this helps :)

    Regards, John Adams ComponentOne LLC

    .NET (Core and Framework) csharp testing learning visual-studio collaboration

  • how to run flash
    J John_Adams

    Hi You may try the followign steps: First you want to add the "Flash" control to the Toolbox: 1) Right-click on the Toolbox, choose "Add/Remove items..." 2) Select the "COM Components" tab 3) Scroll down to "Shockwave Flash Object" and make sure it's ticked 4) Click OK 5) Drag the "Shockwave Flash Object" from the toolbox onto the Form (just like any other control) 6) Righ-click on the new object and select "Properties" to show the custom properties panel. Please note: You may not want to hard-code the URL for the moview or file in the properties dialog, so try setting the "Movie" property to something like Application.StartupPath + "\\MyMovie.swf" If you want to talk to the Flash movie from C# then you need to use the "SetVariable" method If you want to talk to the host Windows Forms app from Flash, use FSCommand... you'll need to add an event handler in your Windows Forms. Hope this helps :).

    Regards, John Adams ComponentOne LLC

    C# csharp adobe tutorial

  • Synchronization concepts.. [modified]
    J John_Adams

    Hi, Go through the following article, that will give you some idea about Multithreading programming using Visual Basic. Article1[^] Artcle2[^] Article3[^] Hope this helps :).

    Regards, John Adams ComponentOne LLC

    COM c++ help learning

  • Function Delegate
    J John_Adams

    Hi Nathan, Following is a demo of Funtion Delegates in VB.Net BEGIN CODE Imports System Public Class MainClass Dim emp As New Employee("First Name", "Last Name") Private Delegate Function NumEmployeesDelegate() As Integer Shared Sub Main(ByVal args As String()) Dim show_num As NumEmployeesDelegate show_num = AddressOf Employee.GetNumEmployees Console.WriteLine(show_num().ToString) End Sub End Class Public Class Employee Private m_FirstName As String Private m_LastName As String Private Shared m_NumEmployees As Integer = 0 Public Shared Function GetNumEmployees() As Integer Return m_NumEmployees End Function Public Sub New(ByVal first_name As String, ByVal last_name As String) m_FirstName = first_name m_LastName = last_name m_NumEmployees += 1 End Sub Public Overrides Function ToString() As String Return m_FirstName & " " & m_LastName End Function Private disposedValue As Boolean = False ' To detect redundant calls End Class END CODE Hope thhis helps :)

    Regards, John Adams ComponentOne LLC

    Visual Basic question tutorial

  • Get DataField HeaderText ,Gridview
    J John_Adams

    Hi, You get the header text this way protected void datagrid_ItemCreated(object sender, DataGridItemEventArgs e) { if (e.Item.ItemType == ListItemType.Header) { string var = e.Item.Cells[0].Text.ToString(); } } Hope this helps :).

    Regards, John Adams ComponentOne LLC

    ASP.NET help tutorial

  • Load report failed.
    J John_Adams

    Hello, You might have tried these suggestions already but here is what I would check for the error "Load Report Failed". 1. If you are loading the report from a file be positive the filepath is correct. 2. ASPNET account needs access to the TEMP directory on the server. 3. Make sure to set the reportviewer's reportsource in page_init. Also, you can handle the reportviewers error event and see if a different exception is available there. Hope this helps :).

    Regards, John Adams ComponentOne LLC

    C# help

  • Page Expire in Asp.net1.1
    J John_Adams

    Hi, Please go through the following link: Link1[^] Hope this helps :).

    Regards, John Adams ComponentOne LLC

    ASP.NET csharp asp-net

  • mysql and Ado.net
    J John_Adams

    Hi, MYSQL is a open source database management system. For more details please visit the following link: What is MySQL[^] ADO.NET stands for ActiveX Data Objects for .NET. It refers to the suite of data access technologies used to manipulate databases. ADO.NET is part of the .NET Framework. For more details please visit the following link: What is ADO.Net[^] Hope this helps :).

    Regards, John Adams ComponentOne LLC

    Database csharp mysql question

  • how to set and get value of Variable in sql server 2005 Integration Tasks
    J John_Adams

    Hi, Please take a look at the following article: ARTICLE2[^] ARTICLE1[^] Hope this helps :).

    Regards, John Adams ComponentOne LLC

    Database database sql-server sysadmin help tutorial

  • Error- HTTP Error 500.19 on Win Server 2008
    J John_Adams

    Hi Amit, Please see the below mentioned forum posting which deals the similar issues. Forum_Link1[^] Forum_Link2[^] Hope this helps :).

    Regards, John Adams ComponentOne LLC

    .NET (Core and Framework) help csharp asp-net com sysadmin

  • create family tree with C# visual basic 2005
    J John_Adams

    Hi, This seems to be a 2D drawing related project, therefore, the best thing I could suggest you to is to use Drawing classes of .Net framework. Please take a look at the following article which shows how to drawing classes of .Net framework. ARTICLE[^] Hope this helps :).

    Regards, John Adams ComponentOne LLC

    C# csharp visual-studio data-structures help

  • create family tree with C# visual basic 2005 pls help me
    J John_Adams

    Hi, This seems to be a 2D drawing project. The best thing I can suggest you to go throuhg the Drawing Classes of .Net framework (i.e, their methods, properties etc.) which can help you to draw the drawing ojects on the canvas. Take a look at the following article, this might help you in understaing the capabilities of drawing classes of .Net. ARTICLE1[^] Hope this helps :).

    Regards, John Adams ComponentOne LLC

    C# csharp visual-studio data-structures help

  • mouse hover image
    J John_Adams

    Hi, Try the following code snippet: BEGIN CODE Public Class Form1 Dim image1 As String = Application.StartupPath + "\Water lilies.jpg" Dim image2 As String = Application.StartupPath + "\Winter.jpg" Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Me.PictureBox1.BackgroundImage = Image.FromFile(image1) End Sub Private Sub PictureBox1_MouseHover(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles PictureBox1.MouseHover Me.PictureBox1.BackgroundImage = Image.FromFile(image2) End Sub Private Sub PictureBox1_MouseLeave(ByVal sender As Object, ByVal e As System.EventArgs) Handles PictureBox1.MouseLeave Me.PictureBox1.BackgroundImage = Image.FromFile(image1) End Sub End Class END CODE Hope this helps :).

    Regards, John Adams ComponentOne LLC

    C# csharp visual-studio question

  • DataGridView Header
    J John_Adams

    Hi, Unfortunately DataGridView does not support cell merging. You can custom paint content across cells, but it will require a lot of work and custom coding to produce merged editable cells. You may take a look at the following forum postings: http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=260387&SiteID=1[^] http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=783151&SiteID=1[^] Hope this helps :).

    Regards, John Adams ComponentOne LLC

    Windows Forms question

  • Visual Source safe
    J John_Adams

    Hi, To resolve this problem, build a new Um.dat file. Note that when you build a new Um.dat file, you must add all of the users again. 1. To build a new Um.dat file, follow these steps: 1. Create a temporary folder named C:\Sstemp. 2. Click Start, click Run, type cmd, and then click OK. 3. Go to the VSS\Win32 folder in the command prompt window, and then type the following command: mkss c:\sstemp 4. In the VSS\Win32 folder at the command prompt, type the following command: ddconv c:\sstemp 5. In the VSS\Win32 folder at the command prompt, type the following command: ddupd c:\sstemp 6. Copy the Um.dat file from the C:\SStemp\Data folder to the Visual SourceSafe data directory. 7. Rename the Rights.dat file in the Visual SourceSafe data directory as Rights2.dat. 8. At a command prompt, run the analyze -f command against the database. 9. Add all of the Visual SourceSafe users again. 10. Reassign rights to the Visual SourceSafe users. Hope this would fix the issue: ).

    Regards, John Adams ComponentOne LLC

    Visual Basic help database sysadmin

  • Product Id
    J John_Adams

    Hi, You can get the CLSID of your program using VB.Net in the following manner: BEGIN CODE ' Use Server 'localhost'. It can be a remote host! Dim theServer As String = "localhost" ' Use programID 'HKEY_CLASSES_ROOT\DirectoryControl.DirectoryList.1'. Dim myProgID As String = "DirectoryControl.DirectoryList.1" ' Make a call to the method to get the Type information of ' the given ProgID. Dim myType1 As Type = Type.GetTypeFromProgID(myProgID, theServer, True) Console.WriteLine(("GUID for ProgramID " + myProgID + " is: " + myType1.GUID.ToString())) END CODE However, if you are using VB 6.0 then you may use the following code snippet: BEGIN CODE In a VB6.0 project I had the following codes to get CLSID string from a ProgID: ' define some API functions and a structure data type for GUID Function CLSIDFromProgID(ByRef szProgID As String) As String ' First, an API Win32CLSIDFromProgID Call Win32CLSIDFromProgID(StrPtr(szProgID), udtCLSID) ' then, convert CLSID structure type to a long pointer to CLSID ' finally use API CopyMemory to get CLSID string End Function Hope this helps :). END CODE

    Regards, John Adams ComponentOne LLC

    Visual Basic sysadmin tutorial question

  • 'Error in Visual SourceSafe
    J John_Adams

    Hi, To resolve this problem, build a new Um.dat file. Note that when you build a new Um.dat file, you must add all of the users again. 1. To build a new Um.dat file, follow these steps: 1. Create a temporary folder named C:\Sstemp. 2. Click Start, click Run, type cmd, and then click OK. 3. Go to the VSS\Win32 folder in the command prompt window, and then type the following command: mkss c:\sstemp 4. In the VSS\Win32 folder at the command prompt, type the following command: ddconv c:\sstemp 5. In the VSS\Win32 folder at the command prompt, type the following command: ddupd c:\sstemp 6. Copy the Um.dat file from the C:\SStemp\Data folder to the Visual SourceSafe data directory. 7. Rename the Rights.dat file in the Visual SourceSafe data directory as Rights2.dat. 8. At a command prompt, run the analyze -f command against the database. 9. Add all of the Visual SourceSafe users again. 10. Reassign rights to the Visual SourceSafe users. This should fix the issue : ).

    Regards, John Adams ComponentOne LLC

    Visual Basic help

  • Installation of VisualStudio 2008
    J John_Adams

    Hi, Please check out the following post which deals with comman VS 2008 installation issues. http://blogs.msdn.com/astebner/archive/2007/07/30/4135155.aspx[^] Hope this helps.

    Regards, John Adams ComponentOne LLC

    .NET (Core and Framework) csharp dotnet 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