VS 2010 - Creating StartMenu And Adding Stuff
Jun 17, 2011
I am looking to create a startmenu like thing in my game, I have my 'desktop' all sorted out but struggling to create a startmenu that I can easily add stuff to via code. For instance when the form starts it will check a directory for DLLS, query each dll which will return a name. I then need to populate this menu with the 'installed' applications my game has. I have a start equivalent button then I just need to the actual menu.
View 1 Replies
ADVERTISEMENT
Mar 1, 2012
I want to create a variable that will hold bunch of stuff.
I will be using over 50 IF statements (it's a complicated number game) and the IF statements will be something like this.
If something = 1 then
' do this
' then do that
[Code]....
View 12 Replies
Jun 21, 2010
I'm creating a program for my workplace which stores hours worked, calculates pay and all that stuff.Problem being, the database will be accessed through the network and i want to be able to select the database from an openfile dialog on first use to locate the database. On every program start up it then would have the database location stored within the program itself.
View 1 Replies
Feb 27, 2011
I need to create multiple splitters, then getting that data and adding it into a DataGridView;
AAL1238:KSEA:KORD:1:1492.9:SEA;
AAL782:KSEA:KORD:1:1492.9;
AAL1848:KSEA:KORD:1:1492.9:;
AAL1360:KSEA:KORD:1:1492.9:;
AAL1804:KSEA:KORD:1:1492.9:;
AAL6796:KSEA:KLAX:13:830.785:;
The First Splitter will be a ':', then the next one will be a ;. Per each line up there, I need to add that content into a row into a datagridview, So if you were to look at the datagridview, It would look like that data above exactly, But separated into the correct columns.
View 2 Replies
Nov 8, 2009
How can I disable CTRL+ESC using VB.NET? I want to disable the Startmenu from showing up.
View 13 Replies
Jul 22, 2010
I am trying to disable windows start menu key and Control+Esc and Alt-Tab for a Quiz project.Where user cannot press Startmenu.I was successful in disabling Ctrl+Alt+Del and Ctrl+Shift+Esc.OS is XP.
View 2 Replies
Jun 7, 2012
Anyone use the framework binarysearch methods?Can they do lower and upper bound searches?
View 4 Replies
Aug 19, 2010
how to place stuff on forms and such but not much else so i was wondering if a book was better to use to learn or something from a website? if book which books should i check out or which website?
View 5 Replies
Jun 20, 2010
So ive Almost got Most of the Beggining Stuff done. but there's one thing. How do i get it to Save Its Data for the CheckedListBox?
View 4 Replies
Nov 30, 2010
I'm making a applet for my G19 keyboard, where i can show health etc from a game that i'm playing.I used the CE to find out what the memory address is, but i have no idea or experience on how to read stuff from the memory using VB.net.I've did lots of search, but sadly, didn't find any working codes.
View 1 Replies
Apr 26, 2009
How do i make my program appear in the startmenu? My idea was to have the program create a shortcut and copy it to the startmenu folder, but how do i have it create a shortcut of it's self?
View 1 Replies
Aug 8, 2010
In previous versions of VB Express, pressing F1 would get help related to specific highlighted terms,to Visual Basic. But in VB Express 2010 I'm finding it inevitably goes to some vague Visual Studio 2010 page.
Is there a setting I can change to get it to behave the useful way that previous versions did?Denise Moore ---- 2 HP a1730n Pavillion Desktops, AMD 64 X 2 5000+/5600+, 3072/2048 800MHz DDR2, 4 GB ReadyBoost, 320 GB HDD, Nvidia 6150LE, D-Link DGE-530T NIC, D-Link Green DGS-1005B router, VersaExpress ADSL, Win 7 Home Premium
View 4 Replies
Apr 20, 2010
I just upgraded a project from VB 2008 to VB 2010. Before, the project did not use LINQ. I have started implementing it. So, I have updated the target framework from 2.0 to 3.5, and added a reference to System.Core, and imported the namespace System.LINQ to the entire project and also imported System.Data.LINQ into the form I'm working with (because it was not available in the list for Imported Namespaces in the references tab).
It's not throwing any errors now, but my IntelliSense is not working for LINQ stuff.
For example... I write this:
[CODE]....................
Then, if I type S. on the next line, the IntelliSense doesn't grab what it should for S (Only get Equals, GetHashCode, GetType, ReferenceEquals, and ToString, instead of the options I should get like Count, First, FirstOrDefault, etc...). If I Type S.First. then its the same thing, no IntelliSense that lists the available fields for S, just the standard options (Equals, GetHashCode, GetType, ReferenceEquals, and ToString). I should be seeing my column names in my table when I type S.FirstOrDefault.
So any ideas what is going on? When I type the code, for example, MessageBox.Show(S.FirstOrDefault.FirstName), it works perfectly. But it doesn't change the casing of the text (so it would read s.firstordefault.firstname) and no intellisense while doing it. But no errors. BTW - Everything works perfectly when creating a NEW VS 2010 application, it's just my projects upgraded from Visual Basic 2008 that have this issue.
View 2 Replies
Jan 12, 2009
I would like to know in VB 2008 Express I have created a mini application, Nothing awesome and just copied as a test.I know how to make it into a executable and all, Though, Wen i do it relies on a folder and its belongings.What I want to know, Is there a way to pack all of that into th exe itself so it does not need to rely on the folders it needs to use the files from?
View 1 Replies
Apr 16, 2009
Now I have created this order form but when I click on the ADD button nothing happens. I expect when I click on the item automatically the data is added to my database. i am using SQL Server 2005
View 1 Replies
May 11, 2009
Now I have created this order form but when I click on the ADD button nothing happens. I expect when I click on the item automatically the data is added to my database. i am using SQL Server 2005
View 5 Replies
May 4, 2012
I'm adding labels at runtime to my form with a tag. Let's say I have 3 labels with the tags, "1", "2" and "3". I'm adding the tags by counting the labels + 1. When I remove a label with tag "2" from the form there are only 2 left. When I add a new label it will add a new tag "3", but that one already exist. So my "solution" isn't a very good one Although tag "2" is free, I want to give it "4". Any thoughts on how to code this properly?
View 2 Replies
Aug 8, 2011
How can I create a class so that I'll just call it to my form:This is the code of my Add Text box button that adds multiple text boxes.
Public Class Form3
[Code]...
View 4 Replies
Jun 14, 2010
I have written a text editor for an assignment but I am struggling on where to start on this bit. What I Want To Happen:- When the user saves there work I want the name of the file to be shown next to the name of the program at the top left hand side of the form. I am not sure If I just need to create a simple sub routine for adding the name of the file then calling the method in the save as routine.
View 7 Replies
Mar 19, 2012
I am dynamically creating and adding a ComboBox to a specified column in DGV. I also set a DataSource, DisplayMember and ValueMember for the created ComboBox. Somewhere else in my program, I select a number ( let's say 5 ) and based on that number I want to change the SelectedIndex of the current ComboBoxColumn ( I actually loop through the Columns collection ).I tried something like this in a event handler I created:
vb.net
Private Sub combobox_validated(ByVal sender As Object, ByVal e As System.EventArgs)
Dim combobox As System.Windows.Forms.ComboBox = sender
Dim colIndex As Integer = combobox.Tag
[code]....
You will notice here, that I'm not actually trying to change the .SelectedIndex property, but the Value of the current cell.How do I reference the actual ComboBox?
View 4 Replies
Mar 10, 2012
I have used this form to add new records on my database(ms access) in my database I have a column name 'ID' which is my primary key 'ID' is set as auto number. Now I am having a trouble on creating my update and delete button it's always saying "cannot be delete/update"
Here's my code on add, update and delete
Public Sub SaveRecord()
Try
Dim dbConn As OleDbConnection
Dim dbInsert As New OleDbCommand
Dim str1, str2, str3, str4, str5, str6, str7, str8, str9 As String
[Code] .....
Note my add is working perfectly fine. I just can find the error on my delete and update. Also I have used this to view it to my datagrid I don't know if its the right thing but it's working fine too.
'declared dbpath globally'
Dim dbPath As String = "Provider=Microsoft.Jet.Oledb.4.0; Data Source=../VG.mdb;Persist Security Info=False"
[Code] .....
Another thing is how to code each textbox and combobox to bind it to my records so that when I click on the datagridview each column will be distributed on each respective textbox.
View 1 Replies
Jul 14, 2010
I'm dynamically creating a button control, and I'd like to add a background image from my resources thing to the button.
Now, I'm pretty sure it would be:
CODE:
But I don't know how to refer to an image that is in my project resources.
I've tried:
CODE:
But that gives error:Value of type 'System.Drawing.Bitmap' cannot be converted to 'String'.
View 1 Replies
May 6, 2011
I am dynamically creating and adding dropdown controls to DevExpress XtraGrid.That works fine and I can add a dropdown control to any column I wish.My main problem is that I need to have the first element in the dropdown control displayed. But after I dynamically add 3 dropdown controls to the grid, only the last one has the element displayed. The previous two do not.Although, I add the elements
this is what the code looks like:
vb.net
Dim column as DevExpress.XtraGrid.RepositoryItem.GridLookupEdit
For i as Integer = 0 to dsSometing.Tables(0).Rows.Count - 1
column = New DevExpress.XtraGrid.RepositoryItem.GridLookUp
[code]....
The code will go tru and add lets say 3 dropdown controls, set their .DataSource to datasets I need, but it will only show .NullText of the last added control.
View 1 Replies
Apr 16, 2009
i'm making a small word processor program using vb 2008 and i need the codes for the following commands: creating table adding and removing rows and columns header and footer
View 4 Replies
Jul 31, 2011
I have two tables Products and Categories with a many to many relationship. I am trying to copy the categories linked to one product (OriginalProduct) to another product (newProduct). The problem is when I execute the SaveChanges() method, I not only get the records in my linking table, but it also creates another copy of the categories in the categories table. I've tried this in many ways but here are the last couple that I've attempted:
' Copy Product/Categories
For Each oneProdCategory In OriginalProduct.Categories
Dim relatedCategory = _productContext.GetObjectByKey(New EntityKey ("ProductInfoEntities.Categories", "RecordId", oneProdCategory.RecordId))
[code]....
View 1 Replies
Dec 4, 2011
Is there anything like STL in Visual Basic , e.g a binary tree , quick sort Do I have to implement those algorithms myself , does Microsoft provide any useful interface ?
View 1 Replies
Sep 23, 2008
i am making a program and the program runs too slow, so i would like to declare my functions at once.. not like this :
[Code]...
View 6 Replies
Jan 17, 2010
I've been looking for some programming languages, and I've read about the basics of Python and C++, but I'm more interested in Visual Basic But! Everywhere I look, I only find tutorials about how to use MS's Visual Basic Express and stuff, not how to code, not tutorials about the code syntax, how to declare variables and these essential things.Does anyone here has a good tip about learning the basics of VB? And not how to use VB Express/Full edition I can insert a new button but I have no idea on how to make it work, what's the point of it?
EDIT: Oh and another thing.I was playing around VB, creating a simple user interface with buttons, and I've noticed that the code doesn't change when I update the button's or other objects' Name property in the Designer window... shouldn't the code update itself with the new objects names?
View 6 Replies
Jul 25, 2009
i have a hashtables working with a simple dictionary, my problem is i put the stuff into the hashtables but i cant extract the key... i need the key so i can remove stuff from it using the code..
View 11 Replies
May 11, 2011
i am working on a project! the problem i am having is that i have two combo box first combo box takes stuff form the file and then add it to listfile it also removes that selected file from the combo box.suppose i have four carid in my combo box...when i select one car and then send it to dispatch it removes form tht combo box and add it to the lst file... this much i can do. is i need that carid that removes from the combo box should add in another combo box ... but i cant able to do it
Public Class MainForm
Private strCarID() As String
Private strTime As DateTime
Private strDate As DateTime
[code]....
View 27 Replies