User Profile

Collapse

Profile Sidebar

Collapse
krodman
krodman
Last Activity: Apr 10 '07, 12:14 PM
Joined: Aug 13 '06
Location: Ohio
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • krodman
    replied to how to setup project in vs.net 2005
    in .NET
    Go to File\Add\New Project When the dialog loads, on the left select Other Project Types, and then Setup and Deployment, and then on the right select Setup. Or, you can use ClickOnce Deployment by going to Build and then selecting Publish.
    See more | Go to post

    Leave a comment:


  • krodman
    replied to Create instance which depends on external dll
    in .NET
    Sorry about that, I guess I wasn't reading carefully enough.

    Have you recompiled any or all of the dependent DLL's since having compiled the DLL you are trying to load? I'm not 100% sure, but I think this a versioning issue.

    I've ran into a similar situation where I was trying to load a DLL that had been compiled with an older version of the referenced assemblies than what was is the current directory. Recompiling the...
    See more | Go to post

    Leave a comment:


  • krodman
    replied to Difference between directcast and ctype.
    in .NET
    Microsoft has a pretty good explanation on the MSDN website.

    http://msdn.microsoft.com/library/de...DirectCast.asp
    See more | Go to post

    Leave a comment:


  • krodman
    replied to Create instance which depends on external dll
    in .NET
    Ensure that the dependent DLL's are in the same directory as the DLL you're trying to load.
    See more | Go to post

    Leave a comment:


  • krodman
    replied to Difference between a sub and a function.
    in .NET
    A function returns a value, a sub does not
    See more | Go to post

    Leave a comment:


  • Absolutely! In fact you can load an instance of any class using this method.

    Code:
    Imports System.Reflection
    
    Private Function DynamicallyLoadedObject(ByVal objectName As String, Optional ByVal args() As Object = Nothing) As Object
        Dim returnObj As Object = Nothing
        Dim type As Type = Assembly.GetExecutingAssembly().GetType("ProjectName." & objectName)
    
        'VB 2005
    ...
    See more | Go to post

    Leave a comment:


  • krodman
    replied to Need urgent help on Vb.net hiding tab page!!!
    in .NET
    You can remove it with the following line of code

    TabControl.TabP ages.Remove(Tab Page)

    If you declare a form level variable you can also insert it back in at the correct index if you'll need it later.

    Example:
    Code:
    Private tabOne As TabPage
    
    Private Sub Form_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Load
        tabOne = TabPage1
    End Sub
    ...
    See more | Go to post

    Leave a comment:


  • krodman
    replied to VB .net Associate file with Program
    in .NET
    I've used this in the past, I can't remember where I got it from, but it works great.

    Code:
    Public Class Example
    
        Public Sub RegisterType()
            Dim fileReg As New FileTypeRegistrar
    
            With fileReg
                .FullPath = Path_To_Executable
                .FileExtension = Extension_To_Register
                .ContentType = "application/" & Your_Description
    ...
    See more | Go to post

    Leave a comment:


  • krodman
    replied to Progress Bar Implementation
    in .NET
    If the total number of files will always be the same you can set the Maximum property of the ProgressBar at design time. Otherwise you'll need to set the Maximum property once you know how many files the user is downloading. To increase the progress do something similar to what's below.

    int cnt = 1;

    foreach (string file in files_being_dow nloaded)
    {
    //Code to download files
    ProgressBar.Val ue...
    See more | Go to post

    Leave a comment:


  • krodman
    replied to Checking for existing File in Directory...
    in .NET
    IO.File.GetCrea tionDate(filePa th)
    See more | Go to post

    Leave a comment:


  • krodman
    replied to Loading Text File Into A List Box...
    in .NET
    I'm assuming that D:\test.txt has all the files you need on separate lines. If this is incorrect let me know, and I'll try again


    Private Sub Form1_Load(ByVa l sender As Object, ByVal e As System.EventArg s) Handles MyBase.Load
    Randomize(Date. Now.Millisecond )

    Dim reader As New StreamReader("D :\test.txt")

    Do While reader.Peek <> -1
    Dim fileName...
    See more | Go to post

    Leave a comment:


  • In .NET a ComboBox can be used similarly as an HTML DropDownList in that it has a SelectedValue and a SelectedText property. This only applies when you're binding the ComboBox to a DataSource, and have the DisplayMember & ValueMember properties set. To know when the user changes their selection use the SelectedIndexCh anged event of the ComboBox, and get the value from the property having the data that you need.

    Bound ComboBox ...
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...