19,728 Topics

Member Avatar for
Member Avatar for malik10

I have datagridview that is bounded with some data source.... I want that the Datagridview should keep all the rows with their data when i remove its Datasource... I remove its datasource by Mydatagridview.datasource = Nothing.... When i do that... the datagridview clear all rows... Please tell me how to …

Member Avatar for ashley.steenson
0
765
Member Avatar for santoshjaiswal

Getting "The specified string is not in the form required for an e-mail address." error while sending from from Vb.net. userid "abc-xyz.net" displayname "abc" If we send mail from gmail then mail is going proper but we have "-" in userid and becouse of that it is giving error. Please …

Member Avatar for cgeier
0
47
Member Avatar for hhm_pro992

Hi! i want ADD empty row in DataGridView............Like This![c9c3e54a6d28a6b686c9dcd1954b1f77](/attachments/large/3/c9c3e54a6d28a6b686c9dcd1954b1f77.png "c9c3e54a6d28a6b686c9dcd1954b1f77") ! When user enter Number in textbox and click button then Add empty rows(as per user input number in textbox) in DataGridView.......... for example :- if user entered "5" in textbox and click button then "5" empty rows will be …

Member Avatar for hhm_pro992
0
3K
Member Avatar for dimi231080

Hello everybody.I am amking a programm in vb net and mysql. My question is the following: i have one main form which it loads ,it loads all the database data in a datagridview.When i press the button"add customer" it opens anew form where i enter the person details.Then when i …

Member Avatar for cgeier
0
673
Member Avatar for Papa_Don

I need to dynamically group rows together in an EXCEL worksheet. The obvious choice to do this will be VBA. I hope you can help. My spreadsheet has 18 columns and (up to) 5,000 rows of data. I've written the following code which works "OK" however it fails to group …

Member Avatar for Papa_Don
0
5K
Member Avatar for Rabastan

After a lot of research I have figured out (sort of) How to get and then set then screen saver time out using VB.Net. What I have doesn't seem to be working. I have managed to figure out that what I have done is VB6 code and not VB.Net. I …

Member Avatar for cgeier
0
1K
Member Avatar for Kellypyz

hello everyone, i have a datagridview filled with a dataset and i want to store all the records it has to new table in database. i added a new column,("pos") to a dataset that fills the datagridview through a query so that it ranks records based on a field (total).my …

Member Avatar for cgeier
1
250
Member Avatar for kazekagerandy

i want to make a textbox suggest all possible inputs based on a certain column in my database. for example, i have a country column in the database and i want my textbox to display all countries from my database column that starts with P when i type it and …

Member Avatar for bikithalee
0
12K
Member Avatar for suria.kunanathan

hi i am a vb with datagrid view on it displays all the data from my database however i want to put a option to add where the user can select the date from when to when and it displays the data. at the monet i have use this code …

Member Avatar for cgeier
0
172
Member Avatar for Rabastan

I need my program To detect the resolution of multiple monitors on a system. I have figured out to get the resolution of one monitor. Public Function ScreenResolution() As String Dim resX As Integer = Screen.PrimaryScreen.Bounds.Width Dim rexY As Integer = Screen.PrimaryScreen.Bounds.Height Return resX & " X " & resY …

Member Avatar for Rabastan
0
151
Member Avatar for xuexue

Hi! I already established an iDB2Connection, now what I want to know, is how could I execute SQL Queries for INSERT, DELETE and UPDATE. I had tested the code already and it works. The code for count works; I get the total number of records. My question is that for …

Member Avatar for xuexue
0
929
Member Avatar for xuexue

Hi! My database is in AS/400 DB2 hence, I am using SQL. Here's my line of code for opening a connection. Dim str As String = "User ID=EDITH;Password=EDITH;Data Source=10.0.1.11;Initial Catalog=ictms;Integrated Security=True" Dim conn As SqlConnection = New SqlConnection(str) conn.Open() Now, I wanted to execute a delete query, however, I already …

Member Avatar for xuexue
0
2K
Member Avatar for eos.paks

Good Day, I would like to ask, i have already finished my project on VB.net and im now planning to deploy to. How can i deploy this with .exe and DLL files only? Your help is much appreciated. Thank you, EOS

Member Avatar for deceptikon
0
148
Member Avatar for PM312

There is no **"Microsoft Outlook 14.0 Object Library"** in my **visual studio 2008 reference COM** List how can i update it. Thanks

Member Avatar for PM312
0
1K
Member Avatar for mbowenitj

Hi guys, I've created a login form which works fine, i need assistance in comparing uppercase and lowercase input from a login form. Whenever the password is entered, the system has to compare uppercase and lowercase characters stored in the data..following is my code: 'Logic for login... Dim conn As …

Member Avatar for mbowenitj
0
2K
Member Avatar for 24minutes

Greeting, I'm working on a VB.NET program. Currently I'm facing difficulty of filtering data of the parent and the child. I use GridControl from DevExpress through :)/> This is the code of how I populate my TreeView : Public Sub fillTreeView(ByVal Key As String, ByVal Txt As String, ByVal N …

0
110
Member Avatar for jj.dcruz

I have this simple problem but im still newb to vb.net where i should Reverse the "hello world" and the result "olleh" without the world without using any function like strReverse() its very hard for me any ideas would be helpful

Member Avatar for jj.dcruz
0
152
Member Avatar for GingerDontCare

I have a cart that shows product selected and the quantity and the price for each. What I am wondering is how to display the price for each as well as the total for all? Here is my code...Is there a way to do this in the public string Display()...what …

Member Avatar for GingerDontCare
0
339
Member Avatar for Madiya122

I am trying to insert records in a SQL table from Excel sheet with VBA code. Data contains of a range with all the rows to be inserted. I am using below code for the same. Insert INTO [odbc;Driver={SQL Server};Server=myserver;Database=mydb;Uid=abc;PWD=abc].DPR Select * FROM [TempRange] I am getting error as above. …

Member Avatar for Ancient Dragon
0
366
Member Avatar for Noorul Ariff

I'm doing a project in vb.net back-end is MSACCESS... I don't know how to store data from COMBO BOX and to RETRIVE data from database to COMBO BOX... Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Try cn = New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=E:\Ariff\Inventory\Inventory.mdb;Persist Security Info=False") cn.Open() str …

Member Avatar for cmanojkumar86
0
738
Member Avatar for LuisFS

Hello everyone I have a windows form application in Visual Studio 2012, with a datagridview. I need to save new data on this datagridview to a SQL database. Could anyone help me with the code or a procedure. The database name is PRISOON, and the table records to be added …

Member Avatar for OtepTheThird
0
162
Member Avatar for ammukarthi
Member Avatar for Paul_24
0
257
Member Avatar for eatyourgreens

Hello, I'm sorry if this is the wrong place to post this, I couldn't find a support section. Anyway, I'm new to VB.NET and honestly, I'm lost. I need to extract text from a HTML page, here's the line I want to extract from `<p><a href="/video7419001/0/CoD4">CoD4</a></p>` What I want to …

Member Avatar for Hiroshe
0
623
Member Avatar for Blueie

Hello I am using the following in one Web page form in ASP.NET (VS 2013) in order to 'set focus' on the username field: Protected Sub Page_Load(ByVal sender As Object, _ ByVal e As System.EventArgs) username.Focus() End Sub It works on that form, but not on this new one: BC30269: …

Member Avatar for Blueie
0
578
Member Avatar for Satyam_1

I have vb.net application with SQL server express. Here is my code to save data to database, but itn not working. Here ID is not the primary key. Imports System.Data.SqlClient Imports System.Data Private Sub btnSave_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSave.Click Dim cmd As New SqlCommand Dim …

Member Avatar for jared.geli
0
457
Member Avatar for jaejoong
Member Avatar for Nebil

Hi guys, I just got into a little problem.I just deployed an application with backend db access.It works fine on major OSs being used like win7 and XP. But some functionality related to the database doesn't work properly when deployed on win8. I used a code to delete temp table …

Member Avatar for Nebil
0
1K
Member Avatar for xuexue

Hi! This is my Gridview1 and I wanted to get the value of the recid column using the GridView1_RowEditing method <asp:GridView ID="GridView1" runat="server" AllowPaging="True" AutoGenerateColumns="False" DataSourceID="SqlDataSource1" DataKeyNames="RECID" AutoGenerateDeleteButton="True" AutoGenerateEditButton="True"> <Columns> <asp:CommandField ShowSelectButton="True" /> <asp:BoundField DataField="RECID" HeaderText="RECID" InsertVisible="False" SortExpression="RECID" /> <asp:BoundField DataField="DOCUMENT_NUMBER" HeaderText="DOCUMENT_NUMBER" SortExpression="DOCUMENT_NUMBER" /> </Columns> </asp:GridView> Please help me, I …

Member Avatar for Mr.M
0
332
Member Avatar for jared.geli

Hi guys I tried to to use inner join on 5 tables it worked but the problem is instead of getting the exact sum values it got doubled. Here's my code cmd = New OleDbCommand("SELECT om_list.invoice_no as invoice_no, om_list.internal_id as internal_id, om_list.customer_id as customer_id, om_list.account_name as account_name, om_list.seller_name as seller_name, …

Member Avatar for jared.geli
0
234
Member Avatar for Asskilled21

I'm trying to make a integer to string and also string to integer. Integer to string is what I want because if I finish integer to string I think I can reverse it. Here is I have a wrong output. I likely created a number system in string like how …

Member Avatar for Asskilled21
0
459

The End.