|
The problem is probably because you are using automatic versioning in your Class library project. Open the Assembly.vb file and change the Assembly Version attribute from "1.*.*" (auto-increment versioning) to "1.0.0.0" or whatever you want for a version number. Then, all your other projects that reference this assembly will reference the same version of the assembly.
In other words, your projects are referencing your Class assembly. When that reference is created, is it created with the version number of the last time you compiled the Class into an assembly. The '*'s in the Assembly version attribute of your Class project denote numbers where the compiler will automatically increment the version number. When your other projects that reference this assembly are run, they load the Class assembly with the same version that was used when the reference was created. If your app references your Class with the Class's version at 1.0.2039, then the app will always expect version 1.0.2039 to be there.
Now, if you set a reference to the Class assembly, you'll run into the problem that your having now. If you create the reference to the Class project, the versioning problem will go away, but you'll still have to change the Assembly version of your Class project to a static number. Otherwise, when you compile your Class assembly, you'll have to recompile all the projects that reference it to.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Thanks. I finally got it.
|
|
|
|
|
Hello,
I'm very new to VB so maybe the solution I'm looking for is easy to find but I just can't find it...
I have an access database with companies datas; this database is read by a VB application ( prev, next, search...usual stuff ).
The fields are:
Company
Address
City
Phone
Fax
Email
Comments
What I would like to add is:
a combo box which will autoupdate itself based on the database records, so when a user is selecting an item from the combo, the corresponding record become visible on the interface fields.
It is possible to have something like this? I did the thing in Access but it looks like there are many differences between VB code and Access code...
Thanks in advance.
Axel
|
|
|
|
|
Access code is VB code, just more limited. Visual Basic for Applications (VBA) is a subset of the full language. When coding Access apps quite a lot goes on 'behind the scenes' that you can't easily see. When manipulating a db with VB directly, you have to provide that functionality yourself. If I understand your question correctly, you are trying to populate a form with data that depends on a user selection from a combo box. You need to provide a function that intercepts the user selection event and executes a SELECT query on the database, then update the form controls with the resulting recordset.
"My kid was Inmate of the Month at Adobe Mountain Juvenile Corrections Center" - Bumper Sticker in Bullhead City
|
|
|
|
|
Thanks a lot, Roger. I got the idea.
|
|
|
|
|
Can anyone point me to a class for creating an Application Task Bar in vb.net? I have a CS class, but it is incomplete and I am not having much luck repurposing it.
Either source code, or even a control that I can purchase that would allow me to dock a bar to the screen, hide it, etc.
Thanks;
M. Rich
|
|
|
|
|
Have a look at this:
John O'Byrne's
taskbarnotifier, a skinnable MSN Messenger-like popup in C# and now in VB.NET too
http://www.codeproject.com/cs/miscctrl/taskbarnotifier.asp
|
|
|
|
|
Not exactly what I am looking for, but a cool control.
I'm looking for a class that implements the Application Task Bar functionality of Docking and Hiding, etc that you get with typical XP-style toolbars on the Windows XP desktop.
|
|
|
|
|
I'm getting the following error in my app.
OutOfMemoryException' occurred in system.drawing.dll
On my Main window, I have a Listview, that has a images for the checkboxes, a outlook style bar down the side, and a picturebox that is displaying a animated gif file.
When I minimize my app to the System Tray (I also have a Notification Icon)
Me.ShowInTaskbar = False
When I go to pull it back up, I get this error, from the debugger. Now if I run the program outside of the debugger,after minimizing and restoring the form my images aren't where my checkboxes were.
Now something else I tried, was just having my program minimize to the taskbar. There was no problem at all. My images on the listview are in place of the checkboxes.
I know of course it has something to do with the drawing related stuff, but I'd like to avoid this error, and keep my images on the listview. Dave you have any suggestions..
Thanks in advance.
Gerry
|
|
|
|
|
WIthout seeing any drawing code, it's hard to tell you what's going on. But, if your drawing anything yourself, make SURE your .Dispose() any Graphics objects and release any handles you're getting from Win32 API, using the Win32 API.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
The Thing is I'm not doing any drawing stuff my self. I've just got a picture box, a listview with images for the checkboxes, and a outlook side bar. I did some more playing around with it last night, When I minimize my form, i have 2 options for the user, to have it minimize to the system tray, or minimize to taskbar. If I have my progam minimize to the system tray, then restore the form,
Me.ShowInTaskbar = True
Then My images on my listview are no longer there, and all I've got is checkboxes.
Minimizing to taskbar, does everything just fine. I'm not understanding what I'm doing wrong
Thanks again for your help
|
|
|
|
|
Are your images store in an ImageList? Try to avoid it if you can.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
That's how I have my images, in a image list. I can avoid it if I can set the images at runtime, for when it's checked or not checked. You don't have a brief example on how to just set the image for a item in a listview - I have it on details view and checkboxes enabled.
Thanks for your help
|
|
|
|
|
Please any body who might give an opinion about my Save Data ..!
MsgBox("Is Data Correctly Right ?", MsgBoxStyle.YesNo, "Confirmation")<br />
If MsgBoxResult.Yes Then<br />
drcustoms = dtcustoms.NewRow<br />
drcustoms("cstcd") = txtcstcd.text<br />
drcustoms("cstnm") = txtcstnm.text<br />
drcustoms("cstadrs") = txtcstadrs.text<br />
drcustoms("cstphno") = txtcstphno.text<br />
conn.Open<br />
endif<br />
the procedure is after the message box appear and the answer is "Yes" the field should save in the database, if the answer is "No" abort the save.
I'am the new bies and interesting in VB.NET programming. Please give an opnion
if any body know the right and the simple code program.
Best Regards,
Ahmad Rifai Yusuf
|
|
|
|
|
Without seeing the rest of your code, like what's drcustoms , dtcustoms , and what the rest of that conn object looks like, it's very difficult to tell you what your doing wrong.
I can tell your that you set the values of a bunch of fields, then opened a connection to a database, but you DIDN'T execute any proecure to write that information to the database, nor did you close the connection to it.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
First of all, try something like "Is the data correct?".
secondly, you will need to add
drcustoms("cstphno") = txtcstphno.text
--> dtcustoms.rows.add(drcustoms)
finally, this will just be storing the data in a disconnected datatable. To send the data back to the database, you will need to
a)create a database command,
build a sql string (or preferably use a stored procedure)
execute the command
or b) use the Update method of a dataAdapter
Visit my .Net blog at http://hiltong.blogspot.com
|
|
|
|
|
Please anybody give me an opinion about my save data program ..!
Msgbox("Is data right ?", Msgboxstyle.YesNo, "Confirmation")
If MsgboxResult.Yes Then
drcustoms = dtcustoms.NewRow
Best Regards,
Ahmad Rifai Yusuf
|
|
|
|
|
im very confused on how and if you can make a app compatible with different OS
thanks,
foolish
|
|
|
|
|
What do you mean? An app that works on both Windows (.NET Framework) and Linux (Mono)?
The .NET Framework only works on Windows. It is Microsoft's implementation of the ECMA-335 standard, otherwise known as the Common Language Infrastructure. It describes a language independent runtime engine and a basic set of universal classes and uniform functionality that work under all implementations of the framework.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
so basicly no matter what OS(win95,98,me,2k, ect...) as long as u have the .net framework installed you can run any app right?
and also i posted this under the .net framework forum
is there a smaller version of the .net framework redistributable,
the one i saw was 23698 KB, witch is no big deal for someone with high speed internet, but a bare of a DL for a 56k user just to run a app in the framework..
|
|
|
|
|
Windows 95 isn't supported, so don't even bother.
Windows 98 is supported, but should really upgrade to XP Pro anyway.
Windows 2000 and XP is fully supported, but still requires that download.
Windows Server 2003 comes with the .NET Framework 1.1 already installed.
Windows Longhorn will have the .NET Framework as an integral part os the O/S.
There is no smaller version of the .NET Framework, you have to install the full version. The .NET Compact Framework is for Pocket PC's and Windows CE machines only.
There are people trying to package their apps with a stripped down, essentials only "version" of the framework. This means that only parts of the framework that are essential to running the app are "installed". This is not supported by Microsoft and noone really knows what the implications are to a future installation of the full framework and what implications are for the installation of service packs for a partial installation of the .NET Framework.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
thanks for the info, from what i understand if you install .net framework 1.0
and wanted 1.1 you have to uninstall 1.0 before installing 1.1. If i read that right on the microsoft site so i would say installing parts could cause prob's, but i could be wrong about this.
|
|
|
|
|
No, you can run both frameworks side-by-side. You can install 1.0 and 1.1 and 2.0 (when it comes out) without any problems.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Good afternoon...
Currently, we are using MDI(multiple document interface) in VB.Net. We have a parent form named frmMain and it has a main menu. Under the parent form's main menu, it has the following menu items like Data, Figures, Tools, Help, etc... Each of the children's forms have also a main menu under them. But when we run the application and open a child form, the child form's menu items appear in the parent form and no longer at the child's form. How can I make the children's menu items appear in their forms? Are there limitations in MDI? What are they? Can you give an advice?
Thank you in advance....
|
|
|
|
|
Using the MDI model built into Windows Form, you can't.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|