Load A Map And To Select (x,y)
Mar 18, 2010I want to load a map in vb.net and to select (x,y) on it but I don�t know how It is little bit similar to GPS
View 2 RepliesI want to load a map in vb.net and to select (x,y) on it but I don�t know how It is little bit similar to GPS
View 2 RepliesI need my form to automatically select the first entry in the datagrid view when it is loaded. I am having trouble finding the correct way to code it. Private Sub CustomersForm_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load[code]...
View 3 RepliesI would like to display my splash screen for a set amount of time (5 seconds). While the splash screen is displayed, I added code to the load function to determine which form to load next. I have the splash screen selected in the Application Properties settings. I also have to select a "Startup form:" in the Application Properties settings.
I'm having a couple of problems. First, the form selected in the "Startup form:" is loaded and displayed along with the splash screen.Next, the form I select in the splash screen load is not started. Only the "Startup form:" is loaded.
I wanted to select the row the user was last working on in the datagridview. So I created a setting to contain the row index. But then I had trouble using the form load event to select that row in my datagridview. It would always select the first row. I then moved the code into the DataBindingComplete event and it worked like a charm Example:
Private Sub dgvTaskList_DataBindingComplete(sender As Object, e As System.Windows.Forms.DataGridViewBindingCompleteEventArgs) Handles dgvTaskList.DataBindingComplete
[code]....
PS, if you want to select the full row, make sure the DataGridView Selection Mode property is set to FullRowSelect.
How can I load a datatable and have the system automatically select a specific row containing text that is already inputted int a textbox?
View 3 RepliesI have written a program that requires a particular image to appear in a picturebox. The image will be 1 out of 114 possibilites and the correct one is determined at runtime. I have all 114 images loaded into resources and I have the program correctley selecting the name of the jpg. I have the name of the jpg set to a variable (string) named gsSBdetail and I can make the name of the jpg file appear in a textbox. What code would I write to make the jpg in resources with the name assigned to gsSBdetail appear in a picturebox? NOTE: I have all of the names of the jpg's in a table in a SQL server database and use a multi parameter query to select the correct jpg file name, which in turn is assigend to the gsSBdetail variable. Is ther a way to load jpg's into the SQL server table and just select the jpg file itself for the picture box?
View 5 RepliesIt works like this: I select a surname from a listbox, this loads their address & eye test results. (Loads into text boxes). I then click order. (Loads a new form *orderform.vb*). Now I can enter information into 4 text boxes... I would like the surname, address & results to get sent to a letter, and then the new information from the text boxes to get sent to a letter... (.doc or .txt). But it has to get sent to a specific part of a pre-written letter...
View 5 RepliesI'm trying to programmatically select the first node loaded into a treeview.
There are 4 main branches - that each node is added to
'If ndeSelect Is Nothing Then ndeSelect = nde
Select Case cdr(1).ToString
Case "Translation"
[Code]....
I tried creating an NDESELECT object to "remember" the node - then tried the old boolean first/loop trick - but it's not remembering that SELECTEDNODE. Seems that the NDE object is just a node object - maybe not "smart" enough to know where it got loaded??
I have a VB2005 winforms application that will loads city data from my database table. This is to ensure that the user enters the correct city spelling, in order to receive an accurate quote. Currently, there are about 150K cities that are being loaded to the dropdown listbox on page load. It takes about 30-40 seconds for that page to load. My initial thought was to allow the user to select the state first. Then load the city values. But the user has the option of going back and requesting a quote for a different city / state.
View 2 Repliesi have four comboboxs that are dependant on each other selection.Its working fine but but what i want is to show "select an item" on zero selectedindex of each combobbox when form load.How can i do that???????what i have done is like as:
Private Sub Form2_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
con.Open()
Dim dt2 As New DataTable("class")
Dim sql2 As String
[code]....
the other combobxes are populating like same code ...
I have the following problem: I select a customer from a dropdownlist and then the gridview should load all items of all orders of that customer. I have the following query:
Dim allorders = From ord In db.Orders
Where ord.CustomerID = Convert.ToInt32(CustomerDropDownList.SelectedValue)
[CODE]..............
I also tried to modify the query as follows:
Dim orderitems = From oi In db.OrderItems
Where oi.OrderNumber = (From From ord In db.Orders
[CODE]...........
But this does not work. I just started using LINQ.
i hve create combobox & text box and add database source to my project...i know how to binding data or load data to combobox using SELECT query..but can i change SELECT to INSERT query cz i wont when i type data into textbox,data will be in database...second..can i binding without add database to project..i mean mydatabase in debug folder..i hve problem binding data if database is not in myproject..
View 7 RepliesIT STILL GIVES A MSGBOX IF I SELECT THE CHECKBOX BOX OR NOT ....My code below will redirect to Google in both conditions: If the user selects the checkbox, then it will redirect to www.google.com, but if a user forgets to check the checkbox then it shows the msg box with an ok button. When I click on ok it should redirect to www.google.com
I want When a user forgets to check any of the checkboxes to show a msgbox with an ok button and stay on the same page. Otherwise if user selects any of the checkboxes then redirect to google
[code]...
I want a rich text box to display public variables like (pizza toppings links etc that have been selected in other forms) these variables have declare in a module. But I want the rich text box to display these variables as soon as the screen loads ( a on form load event) if you know what I mean.
View 1 Repliesi am trying to auto select the email value from a 2nd cbobox when the user selects a name from the first cbobox using the first cbobox's index. (the values all line up with each other just fine)This is my current code:
Private Sub cmbAnalyst_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmbAnalyst.SelectedIndexChanged
theAName = cmbAnalyst.Text
[code].....
I have two drop down. SelCurrentManuf and selCurrentModel. I want the option in selCurrentModel to change depending on the option selected in selCurrentManuf. How do i do it?
<asp:DropDownList runat="server" ID="selCurrentManuf"></asp:DropDownList>
<asp:DropDownList runat="server" ID="selCurrentModel"></asp:DropDownList>
This is how i am currently populating selCurrentModel
Public Sub PopulateCurrentModel()
Dim mySelectQuery As String = "SELECT * FROM Model where ManufID = "+ selCurrentManuf.Text+";"
Dim myConnection As New MySqlConnection(Session("localConn"))
[Code]...
but it only populates the first selected manuf, and doesnt change after
Private Sub selCurrentManuf_SelectedIndexChanged(ByVal sender As System.Object, _
ByVal e As System.EventArgs) Handles selCurrentManuf.SelectedIndexChanged
PopulateCurrentModel()
End Sub
Unable to select multiple column in datatable
Code:
Dim Activitydtb As DataTable = DirectCast(ViewState("TalentcharacterActivty"), DataTable)
grdviewactivity.DataSource = Activitydtb.Select("SELECT
[Code].....
I need to set a select back to it's default value after it's been changed based on certain conditions.
View 2 Repliesam developing a project and i am trying to use this code with my table which is under microsoft access 2010
View 3 RepliesI got a SQL statement where am selecting from an access database in vb but I get this error; "syntax error in query expression select sum(brought_qtty)" when I run my program. I imagine am doing the right thing but seems am not. How can I adjust this select? The code is below:
"select distinct(brought_price) as [Price], select sum(brought_qtty) as [Ordinary] from brought_coffee where " & _"coffee_grade=O, select sum(brought_qtty) as [Premium] from brought_coffee where" & _"coffee_grade=P, sum(brought_qtty) as [Total Qtty]" & _", sum(brought_paid) as [paid], " & _"sum(brought_bal) as [Balance]" & _"from brought_coffee, farmer where brought_date=#" & dtc.Text.Trim & "# and farmer_centre='" & cc.Text.Trim & _"' and farmer.farmer_num=brought_coffee.farmer_num"
I am a beginer in vb.net. For a school project, i have chosen inventory control as the subject. WIth help from videos, i have developed some basic forms with adding/updating.
The product table design is like this:
Name
Type
Size
[Code]...
Now, i am designing the purchase/sales screens. I am showing the items name, qty, price in a datagrid. From the products table, I am able to select the 'ProductName' by giving it a combobox . I want the ProductSellingPrice also to appear in the next column of the grid.
I have a webbrowser control in VB 2010 Windows Form project that loads a webpage. This webpage contains select tags with a few options. I can select one option using:
Dim
cboTemp1 As
mshtml.HTMLSelectElement
[Code]....
But I need to be able to select more than one option (e.g. 1 and 6) in the select tag/element. Is that possible, the Select element has the multiple select option enabled..
I want to select to multiple sql tables using select query in vb.net..I have 2columns in sql table..I have tried this query.. But i'm getting error.
TextBox11.Text = Val(27)
cmd = New SqlCommand("SELECT outside,power FROM vijay21 INNER JOIN vijay22 ON vijay21.outside=vijay22.outside WHERE outside BETWEEN " & Val(TextBox11.Text) & " AND " &
[code].....
ive got a form containing treeview on the left docked, and two panels one over the other (just as for practice), so i am using treeview to select one from the other the code contains the Case select,
If
Not e.Node
Is
Nothing
[code]....
The problem is , both panels are not visible, when i select the first node the firstpanel is visible then i select the second node both panels are not visible, i return to the first node the first panel is visible.
I would like to load a default created image at start. But seems to not be working on form load any ideas.[code]
View 5 RepliesWhenever i start my form (window application) and link from one form to another, my data doesn't load but when i close the respective form and open it again , it appear. Can i know where is my problem ? Thx in advance. Here's the code snippet :
Private Sub AccessControl_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim sqlstring As String = "select * from depttable"
Dim connection As New SqlConnection(db.cs)
Dim dataadapter As New SqlDataAdapter(sqlstring, connection)
[code]....
I Want A Web-Browser (WebBrowser1.Navigate [url]) to navigate to a direct site witha .txt file so the text appears in the browser. ok that works.
When Form1 Loads I want To Use This But It Wont Work WebBrowser1.Navigate[url] but it will only work if form1 contains WebBrowser1.Navigate[url] and button1 = TextBox1.Text = WebBrowser1.Document.Body.InnerText.
Final Question How Can I Get Form1.Load To Do Both Operations
have a table with following fields
Emp_id varchar(50)
Emp_Name varchar(50)
Emp_surname varchar(50)
[code].....
I need to use a SELECT statement to select all data under a column name (like all employee names) and then to add the values to a listbox.
I usderstand that the select statement must be:
"SELECT * FROM EmployeeTable WHERE EmployeeNames LIKE *" (at least I think)
but then what? combobox1.fill ("EmployeesTable") ?
I have a couple of tables in a sql server database and i want to load the data from them in form load.
Here is the code i use to load the first table
connection string here
Con.Open()
Dim objCmd As New SqlCommand("SELECT * FROM Customers", Con)
Dim cust As SqlDataReader = objCmd.ExecuteReader()
[Code]...