Answer Questions
Fabián Imaz How to have Project2.Form inherit from Project1.Form
I'm trying to organize several projects. I would like to have some base classes (FormBase, etc.) from which my projects will inherit. That way, I can have some consistent behavior amongst the programs. (E.g., pressing "esc" closes the form, etc.) I tried adding a REFERENCE to Project1 from within Project2 and then BUILDING. I can then REFER to the classes in Project1, but when I try to use the IDE to create a new ...Show All
Biju S Melayil The type initializer threw an exception. - For no reason?
Hi, Im developing a timetable like program which was all working fine until i installed some security updates for windows xp. This might be p urely coincidental but i keep getting the exception, pasted below, when i try to call ModPublic.GetSett(). I even removed all code from inside the public modpublic.getSett() sub but i still get this error on each debug/F5 run. System.TypeInitializationException was unhandled Message="The ...Show All
mithusur Question on ClickOnce
I have finished designing my first VB app (VB2005) and I am going to deploy it to a network share using ClickOnce. I have read the documentation and several of the posts on it but I am still a little nervous have some questions. First, do I have to have a certificate or a key file in order to do updates My security person believes it isn't necessary since it is on our local network. Second, once I deploy with ClickOnce, if I find serious ...Show All
clees Visual Studio 2005 Professional showing "SQL Server 2005 Express Edition" prerequisite!
I developed my app using Visual Basic 2005 Express Edition, but, I just uninstalled the Express Edition and installed Visual Studio 2005 Professional Edition. Under Prerequisites in the Publish menu, it still shows "SQL Server 2005 Express Edition"! Shouldn't the prerequisite be "SQL Server 2005 Developer Edition" In the publish menu, I think it is correct that you would publish wi ...Show All
tyrone_dude Checking for a previous instance
To check for a previous instance of your apllication (App.PrevInstance in VB6) the help file for '05 suggests you check the "Make Single Instance Application" box in the project's properties and then add an event handler for "Me.StartupNextInstance." This is great if you're using the application framework and starting the project with a form (I don't think a "Sub Main" has a 'me' object does it ). Anyway, I'm not using the app ...Show All
Pirox Blocking Pop ups when auto-delegating tasks in Outlook
I've noticed at work that when a manager tries to delegate a task, a msg box pops up saying something like "someone is attempting to access your account...how long do you want to allow, etc." Well, I have a macro that managers will run that will automatically delegate a lot of tasks to a lot of individuals and I want to get it done with no extraneous user input. Meaning, if John is delegating a task to Mary, then Mary should not have to do an ...Show All
Ross Watson my global variables not working
hello thanks in advance i made a module declared public variables. when i login in one form and set a variable to user anem and want to display that user name on another form it never works. i try to write the variable to the label.text = strvariable kind of thing my module Module subMain 'Decleration of global variables Public strUserName As String Public strPassNumber As String Public strCurrentU ...Show All
Kuang Zhang Read a random Line From A File
I am attempting to write a BOFH excuse generator as a console app so I can run it's output into another program (an IRC client) but am having a problem figureing oput how to return a random line from the text file I am useing for the excuses. can anybody point me the right way thanks Wolf Hmmmm this is quite interesting had has several potential applications in a couple things I'm working on. I ...Show All
WALLACETL1 Make element accessible to selected assemblies?
Hello, i have a solution of more than 10 projects (or assemblies). There are properties in some assemblies that i would like to make accessible to selected other assemblies, but not to all other assemblies who have a reference. Friend means, accessible only within the current assembly. Is there a possibility to extend Friend meaning visible to the current assemblies and selected trusted assemblies The only other possibility i see is pub ...Show All
vlamak Cannot find KeycodeV2.dll, or invalid keycode
Hi, I made a VB.NET application using Visual Studio .NET 2003 Pro that connects to an Access Database on a main server. The development machine operates on Windows XP Pro. The client machine is Windows 2000. I've been to many sites regarding this. So, I've already added the 6 merge modules (including Crystal_regwiz2003.msm and I have the correct Key Code obtained from having registered Crystal Reports and have tried the Key Code f ...Show All
JPlenert disable DataGridViewCheckBoxColumn
Is there a way to disable a cell in a column of the datagridview control of type DataGridViewCheckBoxColumn Using the three state property and the indeterminated state I get a green rectangle. I want to have a disabled checkbox. Do I need to create my own images in the cell paint event You could override the paint method of the System.Windows.Forms.DataGridViewCheckBoxCell and use the System.Windows.Forms.CheckBoxRender ...Show All
Demiurg-HG Create and run select access SQL queries through VB
Im attempting to have a user select the table, fields and criteria to create a SQL statement query and run it immediately, from a form in MsAccess. Ive tried to build and store the SQL statement in a string, set it as a new querydef,open an existing query and set its sql to the string. I have been unable to get this to work however. I either get a "obj var/ with block var not set" error or invalid SQL statement . However the synt ...Show All
Firerx Dictionary trouble
I am trying to dynamically add keys to my dictionary with the following. Private dict As New Dictionary(Of String, Form) Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Load With dict For i As Integer = 0 To Category.Items.Count - 1 .Add(Category.Items.Item(i).ToString, CType(Category.Items.Item(i), Form)) Next End With End Sub Now, Category is a listbox. I want to add ...Show All
Iain Fraser Midi file to binary file
Good day How do I save the contents of a midi file to a property bag and then read the contents of the pb and save it to a midi file. No success with - Dim FF as long, vartemp as variant Dim ByteArr() as byte FF= freefile Open "c:\town.mid" For Binary As FF Get FF, , vartemp Close FF bytearr= vartemp -------------------------- vartemp shows empty. Appreciate any feed back Jdsouza Jdsouza, Since these fora  ...Show All
Bakersacres How to obtain WIFI access point information?
I was wondering if it's possible to access information from within Visual Basic about WIFI connections, such as their SSID, MAC address, ect. I don't know whether I have to add a reference, what commands to use, ect. Thanks for any help. Alright, thanks anyway. Sorry for all the questions, but I have 1 more: Public Class Form1 Private Sub Form1_Load( ByVal sender As System.Object, ByVal ...Show All
