-
- Problem with cast importing a class from a .dll
by Junior561671
- 13 Replies
- Last post
by Junior
- This, the problem: I have wrote an determinated class in an dll and I need import this class so:
Code Snippet
Dim asm As Assembly Dim ServerEngine As Object asm = Assembly.LoadFrom(foundFile) ServerEngine = asm.CreateInstance("ServerEngine.PT.ServerEnginePlugin") Well, it works, but I want to use the members of the class. The class was made using this Interface:
-
- create key/value pair for filename/path_filename to use in combobox.
by hazz
- 6 Replies
- Last post
by hazz
- What is the best way to create a key value pair for a filename and filepath with filename.
1. Obtain files within a directory for a known suffix (eg. html) 2. Set variable to filename only using GetFileName() 3 Add filename to Listbox, ComboBox, etc. 4. When user selects FileName, use value (path and filename c:/xxx/xxx/filename to use as argument for Process.Start(PathFileName)
Private Sub
-
- Error binding to target method. I can see a missing EndIf .... if it matters?
by Benjamin Coats
- 10 Replies
- Last post
by Benjamin Coats
- This is a change-of-direction from my previous post ( http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1095934&SiteID=1 ). I didn't get an answer yet on that one, so I'm trying something different.
For this code, assume myInstalledModules is a Dictionary(of string, string) that maps a module name key to the assembly path of that component. So I'm trying to eliminate dependencies in my
-
- Recent Files Again
by Zeldacat
- 7 Replies
- Last post
by Tall Dude
- I am doing a recent files menuitem. I am using a zero based array of 4 items, which i have displayed everytime you load the form. The problem i have now is, how do i limit the datafile to 4 entries i can append the data file, but thats it. Any suggestions would be most welcome.
Regards
Zeldacat
-
- Error starting process as another user
by pidom
- 2 Replies
- Last post
by pidom
- Every thing work fine when I am not starting process as another user.
When I am starting process as another user, the authentication is working (I can see it in my workstation security log), but I always got the error: System.ComponentModel.Win32Exception "invalid descriptor" at line 20
any idea
--------------------------------------------------------------------------------
-
- How do you disable the alt key?????
by kandaras0
- 7 Replies
- Last post
by James A. Gayhart
- Hi, i'm new at this, how would you stop someone using the alt key, like alt+F4, alt+ctrl+delete OR alt+tab
-
- Array question. Going to try in this forum.
by FooFighter560415
- 5 Replies
- Last post
by DigBoy2000
- Hello folks. I've asked this question in the Express forum, but I keep getting very complicated answers that I don't understand. Hoping someone will help me out here in simple terms. I'm a beginner with visual basic.
What I'm trying to do is pick 5 random numbers from an array of 10 integers. I know how to get a random number.
Here's an example.
My random generator gives me th
-
- Should be a better way to handle multiple pages of graphics.
by Tailor
- 3 Replies
- Last post
by Tailor
- Hi,
I need to view and print multiple pages of graphics, and am stuck on the multiple part. Where am I at now.
1. Drawings are saved as .bmp files
2. Files are retrieved and added to a List(Of Bitmap)
3. Loop through list and add each image to a specific place on a form
4. After 6 drawings, add page headings
5. Show the form
6. Print the form to a pdf file
I'm not real happ
-
- Logging in to SQL Server database using ID and password from the Login form
by Larry Wilson
- 4 Replies
- Last post
by Larry Wilson
- I am using VS2005 and have created a login form using the VS template. The below comments were added to the form class, however, the link to LinkID 35339 seems to be no longer valid.
' TODO: Insert code to perform custom authentication using the provided username and password
' (See http://go.microsoft.com/fwlink/ LinkId=35339).
' The custom principal can then be attached to the c
-
- WebBrowser Control VB.Net
by ihles
- 7 Replies
- Last post
by Stanley1271
- I have a simple app where I am trying to test a bunch of ID's and Passwords for a website.
So, I am trying to use the webbrowser control.
I added my OWN button to start the method:
In the method, I bring up the LOGON page using navigate, I CAN find the element objects for ID and PASSWORD and the LOGON button, so I can enter in the UserID and the Password, and I can Invoke the
-
- itterate through VB6 class properties at runtime
by vermeeren
- 4 Replies
- Last post
by DMan1
- I am wondering if it's possible to itterate through all class properties at runtime At the moment i am devoloping a class that i want to use to create an xml file, based on classes properties.
Is for example something like this possible
for each property in class
create xmlnode where xmlelement=property.name and xmlelementvalue=property.value
next
-
- put numbers into separate textbox or similar
by Thmul_1
- 1 Replies
- Last post
by Karl Davies-Barrett - MCT
- Hi guys,
Did you guys know how to put numbers into separate textbox for example I had report form with total amount of $123456789 and like to put number 1 in textbox1,number2 in textbox2 and so on till number 9 in textbox9.
Thanks guys
Thomas
-
- PrintPreview awkward to use?
by Grahamrounce
- 14 Replies
- Last post
by Grahamrounce
- It might be just me, but doesn't PrintPreview work rather backwards
I'm used to constructing a report from the top down: Whenever the line count goes over say 60, I do a formfeed which prints the page, set the line count back to 0, and carry on like that.
That seems very natural.
But with PrintPreview, I must have a single routine for handling the printing of any page.
What if I don't
-
- Debugging nightma cannot drill down into object collections in QuickWatch window
by Yibbler
- 3 Replies
- Last post
by Matthew Gertz MS
- My colleague and I have recently upgraded our projects from .NET Framework 1.0 and VS2002 to .NET Framework 2.0 and VS2005. We also applied the latest VS2005 service pack.
Our problem: normally when debugging we use the QuickWatch window to drill down into and view collections of objects belonging to the parent object we are "watching". THIS NO LONGER WORKS...instead, we get a message
-
- How to print the contents of a Richtextbox and a normal textbox on one page?
by Kamikazov
- 5 Replies
- Last post
by element109
- Hi all,
I know how to print the contents of a Richtextbox (see the RichTextBoxPrintCtrl control, http://support.microsoft.com/kb/811401 ), but on this way the contents of the Richtextbox is treated as
one completed document, in other words, after the contents has been printed, the page is ejected from
the printer. Even if the Richtextbox contains only one line of text or only one
-
- Open MDI form, return a Focus on next field
by Joao Pinto
- 5 Replies
- Last post
by Riquel Dong ¨C MSFT
- Hello,
I'm trying to something like this:
In a text box, when I enter a value greater than 1, I open a new form to input the ID's of the products;
After I enter the ID's of the products on that second form, I want to return to the original form and focus on the next field;
How can I do that
Thanks,
Joao Pinto www.caraibas.info/dominicana
-
- converting c# workaround for splitcontainer bug into vb.net?
by hazz
- 4 Replies
- Last post
by jo0ls
- This is a serious bug that has not been fixed with VS2005 service packs. someone claimed this is a solution. Can anyone do a quick conversion of this into vb.net Thanks! -Greg
using System; using System.Windows.Forms; using System.Drawing; using System.ComponentModel; /// <summary> /// This class is a workaround for a known VS2005 SplitContainer bug. /// The designer will set
-
- functions : does return end code path?
by Mitch Wardrop
- 2 Replies
- Last post
by Dick Donny
- Simple little question, just curious if calling return inside a function will end the code path for example function test (byval testvar as string) if testvar = "a" then return("you selected 'a'") ElseIf testvar ="b" return("you selected 'b'") End If 'some more code Return("some stuff") End Function So if I pass this function "a" will the
-
- Modify Datasource Connection String at Runtime
by Nathan Sheppard
- 2 Replies
- Last post
by Nathan Sheppard
- Hi All,
My question is how can I modify the application settings at runtime so I can have my application alter the connection string so it attaches itself to another database, or database location
For example, i wish to somehow modify My.Settings.ConnectionString to read something different.
Any help would be greatly appreciated,
Best Regards,
Nathan.
-
- Updating Active Directory programmatically
by ClaytonM
- 2 Replies
- Last post
by Bruno Yu - MSFT
- Hi!
I'm trying to write an application that updates Active Directory from a
database. I have Visual Studio .NET 2002 installed with the .NET
Framework 1.0 on a Windows Server 2003 test machine.
I read some articles available in the MSDN library regarding
interacting with Active Directory and proceeded to write a simple
program to add a user:
Dim deEntry as new DirectoryEntry("&l
-
- How to check for read and write access to the registry???
by Tim Windsor
- 7 Replies
- Last post
by nobugz
- Hi There,
I have an application in which I keep a few settings in the registry (db_name and db_server). These settings are stored in the HKEY_LOCAL_MACHINE hive as I want them to be the same forr all users and I'm happy that only administrators can write to the keys. Though I need to do there following, :-
1. Check to see if the windows user has auhority to write to the key as I want
-
- need info?
by Wira Santos
- 2 Replies
- Last post
by Wira Santos
- Dear Friends,
I got an error message of :
" Object Reference Not Set To An Instance Of An Object ".
From :
Dim Pfl_GetATR, lngrep as integer Dim bufrep(255) as Byte
Pfl_GetATR = SCM_GetATR(lngComPort, lngrep, bufrep(0))
'Declaration
Public Declare Function SCM_GetATR Lib "SCM_ScReader.dll" (ByVal ui_comport As Long, ByVal lngrep As Integer, ByVal bufrep As
-
- Can I Create an enum on Runtime, or change Enum values or member Names ?
by ZadehDyn
- 3 Replies
- Last post
by cybertaz69
- I need to fill my enum values from datatable. Is there any way to do it with VB.Net.
-
- Is Encryption even effective?
by ShadowRayz
- 4 Replies
- Last post
by rkimble
- A thought crossed my mind today.
.NET is an Unofficial Open Source language right , we can view all the codes of any file that was made in any .NET language ( C#,VB.NET,J#,C++.NET )
so, if i build an encryption will it even be effective , i can view the formula and i just reverse it and BAM....
Thx ahead
ShadowRayz
-
- Using .DLL files
by dakota367
- 4 Replies
- Last post
by spotty
- I have looked for a while on the internet but I cant figr it out, how do I call and use functions in a VB app from a dll file.