Hi,
If I defined a ENUM in a base object with serveral default values. When I inherit from the base object I want to add more options the the ENUM list which are specific to the inheriting object.
For example my base could have a ENUM called Direction with values:
None
ALL
Stop
Start
I create a new class call Compass which inherits ...
Hello,
i have a strange problem with a VB.Net Windows Application.
On my computer(the development PC) it executes the newest version of the exe and dll's but on the computer of my fellow(he is not a developer and cant debug it) an older version is executed. He has overwritten all files with the new version:
I dont know where to start...
I'm trying to code a section for my website in VB but VB can't seem to find a button. Is there a way for the code to find it?
I know where it is. Loginview > Login > LoginTemplate. How do I get VB.NET to point to that location?
...
I am trying to create a desktop shortcut from vb.net code on a Windows 7 box (64 bit). The following code works on XP, but when run on Win7 I just get a message stating the App has stopped working:
Imports IWshRuntimeLibrary
Dim WshShell As WshShellClass = New WshShellClass
Dim MyShortcut As IWshRuntimeLibrary.IWshShortcu...
I'm writing a COM Interop DLL in VB.NET with VS2008.
How to set the version number of the DLL generated by VS?
...
I have a VB.NET application and I need it to be able to display rows from a MySQL database. How would I do this?
Update: Another thing that I could do is have the app get a PHP page from the site that shows the DB, and gets the page every 10 seconds or so.
...
When I press enter in my loginform, my search form at the top of the website runs instead. I'm trying to handle the enter key but I keep getting a missingmemberexception.
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs)
Dim getButton As New findbuttonControl
Dim vButton As Object
Dim ...
I recently reimaged my PC and regrabbed one of our projects from Source Safe. In our solution we have a web service that normally runs on a server, however we can build the webservice on our localhost for debugging as well. However, now whenever I grab the project from source safe it is building the webservice as a website instead of a d...
Is there a way to turn off all visual updates to a .NET form while I am manipulating it? When my program first loads, for example, I set the tab control to the tab that was last open. The user can see the program switching tabs.
I have looked into SuspendLayout and ResumeLayout, but either I don't understand what they are doing, or I ...
How do I display Items that are Checked from a treeView in a listBox using VB?
...
UPDATE: See the bottom of this question for what I did to solve the problem.
I'm trying to understand how the ItemsSource and DataContext properties work in a Silverlight Toolkit DataGrid. I'm currently working with dummy data and trying to get the data in the DataGrid to update when the value of a combo box changes.
My MainPage.xaml....
Is it possible to list all triggers in all tables on a database?
I can list all user stored procedures with:
Private Sub StoredPro()
Dim theServer As Server = New Server(serverName)
Dim myDB As Database = theServer.Databases("mydatabase")
Dim dt As DataTable = myDB.EnumObjects(DatabaseObjectTypes.StoredProcedure)
End Sub
B...
I'd like a free library for .NET to get attachments from an account (such as gMail, or others) via imap4 (not necessarely), and save them in a folder.
Ideally it would allow me to get a list of them, and download only some given ones (filtering by extension, name, and/or size) and be free.
I've already done this with a trial version of...
I would like to get the Type of item that a BindingSource is hooked up to or configured for. The BindingSource.DataSource property can be set to an object, list, or type. If it is a Type, it obviously does not have a bound item yet, but I would still like to get the Type. For a List, I need the item Type, not the list type.
I current...
can we have a single global variable which can be manipulated by multiple forms
...
My current project is to write a program that basically is a cash register for a pizza company.
The user enters the pizza, along with toppings, drinks, and sides.
I want to add a "Review Order Form" for when the user decides to check out. The form will pop up and inform the user of everything he/she has ordered. From there the user ma...
As I understand it, C# passes parameters into methods by reference. In vb.net, you can specify this with ByVal and ByRef. The default is ByVal.
Is this for compatibility with vb6, or is it just random? Also, how can I specify what to use in C#? I kind of like the idea of passing parameters by value.
...
I have a strong amount of pictures, which i would like to "protect" by adding watermark on them. Is there any way of adding watermark by using vb.net or C# ?
...
Having problems with this code and cant figure out why. It works fine the first time through but crashes with a Parameter is not Valid error the 2nd time on this line.
Dim tbx As TextBox = New Windows.Forms.TextBox
Any help is appreciated.
Dim tbx As TextBox = New Windows.Forms.TextBox
tbx.Name = tbxName
tbx.Size = New System.Drawin...
I have an ASP pg with a formview list control on it that hooks up to a sql database customer table
I want to access the customer name outside the form.
How do I:
A) access the bound text box in the form view template? Something like Text1.text=formview1.customername.text (that doesn't work but that's the kinda thing)
B) access the d...