User Profile
Collapse
-
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. -
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...Leave a comment:
-
Microsoft has a pretty good explanation on the MSDN website.
http://msdn.microsoft.com/library/de...DirectCast.aspLeave a comment:
-
Ensure that the dependent DLL's are in the same directory as the DLL you're trying to load.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 2005Leave a comment:
-
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 SubLeave a comment:
-
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_DescriptionLeave a comment:
-
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...Leave a comment:
-
-
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...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 ...Leave a comment:
No activity results to display
Show More
Leave a comment: