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.
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].....
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.
what i need to do is open a txt file, read line by line, decode each line into an array and display. Now all works ok apart from one line.
sTextLine = objReader.ReadLine() <-- Value of string cannot be converted.
full code here ------------- Dim objReader As New System.IO.StreamReader(sOpenFile.Text) Dim sTextLine As New ArrayList() Dim sText As String = "" Dim i As Integer = 0
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.
How would i go about reading a file Line by Line that within that line The values are delimited by " Example of the data:
"bob" "cat" "1243" "steve" dog" "6789"
I've started this with this code but not sure how to go about the next stage:
Using MyReader As New _ Microsoft.VisualBasic.FileIO.TextFieldParser(My.Application.Info.DirectoryPath & "Records28112011.jd") MyReader.TextFieldType = FileIO.FieldType.Delimited
I am trying to read in a TextBox line by line and take the first 7 characters of each line and output everything in another TextBox.This is what I have so far.
Dim line, lines() As String lines = TextBox1.Text.Split(Environment.NewLine) Dim i As Integer = 0
In one of our application the parameters passed to a stored procedure in this way
Dim parm As New SqlParameter("searchText", SqlDbType.VarChar) parm.Direction = ParameterDirection.Input parm.Size = 50 parm.Value="test" cmd.Parameters.Add(parm)
and the procedure contains a parameter as @searchText
ie the parameter name passed from the code is searchText and that in the stored procedure is @searchText .
But it is working properly, i am always getting the required results.
So my question is like so there is no need to specify @ before the parameter? Whether it will append @
I created a database in Access 2010. I am thinking of creating a front end in Visual Basic and was wondering if anyone had any experience with this. Is it doable? Or should I save my time and use access's front edn?
i need the app to preview the line in textbox in timeintervalof 1 s (can be change)nd when it will reach to the end it close the text file and andreread it after let say 1 m ..
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click Dim myStream As Stream = Nothing
Basically, I have an Access database with Primary keys that are structured with this format ("02"000).When I try to paste the number, it ignores the "02" and goes straight to 000.For example, here is the code;
What PeriodRoomID.Name should be is R02001.What PeriodRoomID.Name comes up as is R1.It ignores the "02" and ignores the 0s. This makes sense mathematically but it is not what I want. I need a way to get the exact output and not some simplified version.
The query;
SELECT SpecialSoftware.SpecSoftID, SpecialSoftware.RoomID, SpecialSoftwareNames.Description, Rooms.Capacity FROM SpecialSoftware, SpecialSoftwareNames, Rooms
I have a value that shows a integer value between 0-100. For a little math, I need to be able to add a decimal in front of the value. So if the value was 50%, I need it really to be .50%.
The current project i am working on runs in the system tray most of the time, but at certain events it shows up some MsgBox's, but unforunately these are always in the background and i sometimes miss them due to this.Is there any way to make the MsgBox come to the front when it pops up?Using VB08 and am fairly inexperienced.
i have searched quite a bit around several places and anything i tried just didnt do what i needed,i need to bring an Application to the front of the desktop, or any other open application and enter text,for an example i have notepad up, i want it to bring it to the front and have it type something,
Edits: its a Windows Application, Not a Console Writeline
I have created a website service (see code below) that gets information from the database.However i am now stuck on creating the Client side. I have included code after the web service of what ive done so far for the client side.Webservice code......
I've selected two rows of data from one of the tables in my database and pivoted it, making two columns. What I would like to do is add a column in front of the two, and use that like a rowheader, I'm unable to use the actual rowheaders at the moment because I'm exporting the datagridview to word and I'm unsure how to get the rowheaders in, so I thought to just add in another column for the time being.
So, how am I able to add in a new column in front of the others? Or even better, how can I include rowheaders when I export a datagridview?
I have created a program that forms in a panel will be shown (control add). But how can I run-time form an over all other forms when I bring the number of the control panel in the know?
This is the Private Sub OptionsToolStripMenuItem_Click_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Options.Show() Options.BringToFront() End Sub What I am trying to do is when you click on "options" In toolstripMenu. Then the "Options" form comes up in front of the Form1. Where Form1 is the Webbrowser Window Itself. This code doesn't work...
I am calling the SavefileDialog with in my code. I can't figure out how to bring it to the front. Every thing works acoordinly I just have to minimize every thing to find it.