I am getting this error, Not sure why it is happening "Error The SqlParameterCollection only accepts non-null SqlParameter type objects, not Int32 objects."I have tried with all sorts of possibilties, now try to enter default data as dummy data,
Using connection As New SqlConnection connection.ConnectionString = ConfigurationManager.ConnectionStrings("DentalDeviceConnectionString").ConnectionString connection.Open()[code].....
I want to let the user input objects to a richtextbox 1 object on each line, and somehow use Random.Next to select pseudorandomly a few objects, the number 'few' inputted in a textbox.
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Using conn As New SqlConnection("Database=Clinic_Management_System;Data Source=.SQLExpress;Integrated Security=True;AttachDBFilename=|DataDirectory|Clinic Management System.mdf") Dim cmdRecord As SqlCommand
I have a user control that inherits the FW ListView and I need to dispose of two objects when the form's disposing of it's objects. Here's what I've concluded already, am I on the right track?
long story short, I have created a ListView type control, using UserControls for the parent control and the ListViewItems. Most the of the control is written and works fine, right up to the point where I tried to replicate the 'Control.SelectedItems(0).Index' property and the 'SelectedIndexChanged' event.
Each child object knows its index value, and could pass this value via the SelectedIndexChanged event (assuming this is how it works in a normal ListView control -- user clicks on an item, and that item fires an event updating the selected index value in the parent object).
How does the child object raise an event in the parent object? I have a feeling this could be done with Delegates, but I'm still learning about their usage.
I want to compare two objects to check if all the properites of both the object have same value or not. for this i need to use the reflection to enumarate through all the properties of an object and check the value of the property. To try the code just i have written a Employee Class having Two Properties EmployeeNo and EmployeeName. I am creating an object of the Employee class and need to write a function that can list the values of all the properties in the class.
I have a nested class, let's call it class1 and it has class2 inside it; VB.Net eg:[code]
1) How can I define X number of Class2 objects[let's call it: Node(x) array]** with NEW() subroutine called?' this raises error: dim cls2(n) as new class2 end sub.
2) How can I return actual number of Node() array? [code]Outside my class in main project I define cls1 object:[code]Now an array of class2 is created inside cls1.
3) Now,How can I access All of them[node(x) array which is created inside cls1] with all properties and methods available?
I remember I wrote a ProcessManager class with this functionality in .net 2003, nearly 4 years age, I don't have the code now.
I need two seperate lists, which every item is Integer, String, Bitmap - and one which every item is Integer, String String. However I don't know how to do this, or even where to look - I've googled for custom objects and custom object lists. What I'm trying to do is this.Custom Object1 is Integer, String, Bitmap Custom Object2 is Integer, String, String
In one thread I'll be adding items to List1(Of Object1), and processing them, and adding the results to List2(Of Object2), however I need to be able from other threads to look at the list and say only give me the items where Integer = (my thread ID), is this possible? Any help, or even links to information that would be relevant to this request would be helpful?
[Code] I want that once I put something in the BigCollection it stays there, I don't want it to be changeable from outside. I want to be able to clear the SmallCollection but it should not be cleared in the BigCollection. Any Ideas?
I finished my first FPS demo level that I created with Visual Basic .net. The source for this game is open source. I went as far as to make a 12 step tutorial on how I did it.
i am creating a web browser to make something i do at work a bit easyier to manageits a form with a few tabsi need each tab on form1 load, to start individual .exe's that i have already created.these .exe's are simple web browsers that are automatically navigated to a website with a asp query for loginthe website for each tab is identical only the login asp querychanges.the reason for this is i cant use a single .exe otherwise it retains the login and i get identical logins on each.
so i follow this tut Sockets in PHP and it would be nice if i can connect my vb.net app to it or isn't that possible..if that's possible will it run always (when the site is online)
I have a table (applicants) and using a GridView various individuals will be making changes to the values in this GridView. I've created another table (history) which I would like to use to log these changes. Right now I have this to capture the changes:
I have to make an application that make pc-phone and pc - pc call with asp.net. However examples I see on the web are generally made as windows application. Can anyone give me refference, examples, documents about voip and asp.net?
I had been programming in Visual Basic 6 as an Intermediate programmer. I realized that it is far too old and is comparatively less powerful. So, I've upgraded to VB.NET. I'm using Visual Studio 2010. My query is before beginning programming with it, what things should I consider over VB6?
Working with detailed forms that is displaying a row form a table adapter, is it possible to detect that a change has been made to a database field when the form is closed?
I.e. if a change has been made I need to ensure that an update is performed before the form actually closes.
I have a dataset that is filled by a tableadapter and what I'm trying to do is to figure out how to loop through all of the rows in my dataset and determine when someone hasedited/changed the row and then
I have made a program where you are a circle and the enemies are squares coming at you. You press Space to shoot and you gain points every time you hit, using arrow keys to move, there are pickups, etc, etc.However, I no longer want to use placeholder circles which are drawn like this:[code]However, the result is very very slow moving aliens. Its not a slow timer or anything(I have about 2 in there working simultaneously) but poor FPS. It might be my system but when I checked it only took ~10MB of memory. I understand that VB.NET isn't quite the choice for game making since its not as fast as some of the other languages(C++, C#) but is there any way I can draw these without sacrificing FPS?[code]
Okay, once again, explaining everything from the top. CollisionDetect() contains logic for evaluating what has hit what in the entire game. This includes Player and Pickup, Player and Object, Object and Projectile, Object and Advanced Projectile, Object and Player. Next, it evaluates whether or not if a pickup has been used or not. When the player hits a pickup, a boolean is set to true. This means that every iteration of this timer, one is added to variable ResetInt. When this hits 80, or 4 seconds(50ms timer) the pickup's effects are reset. Additionally, the boolean is false, so it won't do that same again.Next, it moves all of the objects on the form. These include the the objects, projectiles and pickups. It also checks if they have reached the end of their 'path' (ie If the projectile goes far enough to the right, it is removed from the game).
I have made a VB.NET program on my laptop. It works just fine on the laptop. But when I install it on another computer it wont open (when I click on program it wont open form). I think I had this problem once before, but cant remember what I did to make it work. Its Win XP on the machine that wont open program and Win Vista on the one that it works on.