15,917,177 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by mrukr (Top 22 by date)
mrukr
19-Jan-15 17:42pm
View
well i use other msi created from old vs etc vs 2008 etc my remote application install locally .however whatever msi package i build on vs2012 wont install remote getting 1603 as msi failed.
yeah so after msi is ready to install
Wix is free?
mrukr
19-Jan-15 17:02pm
View
i use this to run remote install old msi and it works
but my msi from vs 2012 dont work using below:
psexec \\remotecomputer -u Domain\Username -p Password msiexec.exe /i "\\networkservername\sharename\my.msi" /quiet /norestart
so this got me to think that error messages while deploying should be fix .
any ideas guys?
mrukr
26-Nov-14 12:23pm
View
For Each col As DataColumn In item.Columns
If col.ColumnName.EndsWith("Upd") Then >>>>>THIS WORKS
>>>then if I want to use that first column with UPD and get its data???how do I do this If item.Rows(0).Item(4) = True Then
mrukr
26-Nov-14 12:19pm
View
test1Upd
test2Upd
exam3Upd
(all of these columns are check box)
If each box are check then its yes or true,..
So how do I get it to read the fields that have UPD and also if its check or not?
mrukr
21-Nov-14 12:12pm
View
How can I remotely install and uninstall msi file on different pc on a network using PsExec etc in vb.net
mrukr
1-Apr-14 15:55pm
View
Hello Sohail
How could I display row number to a textbox when is row is selected on the datagrid OR how can I display row number if datagrid itself?
Thank you for helping me bud
mrukr
25-Mar-14 9:44am
View
It allows null and also type NULL in there ,I believe its taking integer only....
mrukr
25-Mar-14 9:42am
View
It allows null and also type NULL in there ,I believe its taking integer only....
mrukr
24-Mar-14 9:35am
View
its adding zero in everyfield that in integer if I insert nothing
that's when I do insert a new row..
How can I avoid it adding 0 instead leave it blank.
Thanks
mrukr
24-Mar-14 9:21am
View
Hello Sohail hope you are doing okay.
For my update button, Some fields are empty (for INT column) but its returning 0 in the Database tables and fields for integers,how can I just leave them blank instead of 0???
Please help thanks buddy.
mrukr
8-Mar-14 14:28pm
View
Dim str As String = textbox1.text
If str.Contains("FROM"C) Then
Dim index As Integer = str.IndexOf("FROM"C)
Dim result As String = str.Substring(0, index)
Console.WriteLine("result: " & result)
End If
im not sure if this is not working for the result
mrukr
7-Mar-14 10:23am
View
I need now update delete update save after this query has been executed from codes below..Can you help plz.thanks
mrukr
7-Mar-14 10:22am
View
If TextBox1.Text <> "" Then
Dim con As New SqlConnection(DBsPath)
Try
con.Open()
Dim sqlCmd As New SqlCommand()
sqlCmd.Connection = con
sqlCmd.CommandType = CommandType.Text
sqlCmd.CommandText = TextBox1.Text
Dim sqlDataAdap As New SqlDataAdapter(sqlCmd)
Dim dtRecord As New DataTable()
sqlDataAdap.Fill(dtRecord)
DataGridView1.AutoGenerateColumns = True
DataGridView1.DataSource = dtRecord
DataGridView1.AutoResizeColumns(DataGridViewAutoSizeColumnsMode.AllCells)
con.Close()
Catch ex As Exception
MessageBox.Show(ex.Message)
End Try
Else
MessageBox.Show("Please type correct SQL Query")
End If
End Sub
mrukr
7-Mar-14 10:18am
View
sohail thanks buddy
below are my codes :so I need to add delete and update button to work within the datagrid view..
Sohail thanks so much on this project..
may be you can assist me on this one too.
Now I have another button that can execute any query from a text box.Below find my codes for that button.
but now I need to able to save update and delete after running the query .
How can I proceed with this.Please help
mrukr
7-Mar-14 9:48am
View
Sohail thanks so much on this project..
may be you can assist me on this one too.
Now I have another button that can execute any query from a text box.Below find my codes for that button.
but now I need to able to save update and delete after running the query .
How can I proceed with this.Please help
mrukr
6-Mar-14 9:07am
View
So how do I make update and save but ignoring first column first firt row cell.
mrukr
6-Mar-14 9:06am
View
they work pretty good.
but I need to do save and insert button but it to start from second column or second row.
as first column is automatically generated.Pleasse help sohail.
you are very good..god bless!
mrukr
5-Mar-14 10:28am
View
Private Sub Form2_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Call ReadTables()
End Sub
Private Sub ReadTables()
Dim con As New SqlConnection(DBsPath)
Dim com As SqlCommand = Nothing
Dim dr As SqlDataReader = Nothing
'Dim schemaTable As DataTable
Try
ComboBox1.Items.Clear()
con.Open()
'Get table and view names
com = New SqlCommand("SELECT * FROM INFORMATION_SCHEMA.TABLES where TABLE_TYPE ='Base Table'order by 'TABLE_NAME' asc", con)
dr = com.ExecuteReader(CommandBehavior.CloseConnection)
If dr.HasRows Then
While dr.Read
ComboBox1.Items.Add(dr.Item("TABLE_NAME"))
End While
End If
dr.Close()
Catch ex As Exception
If con.State = ConnectionState.Open Then
con.Close()
End If
End Try
End Sub
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
If ComboBox1.SelectedIndex > -1 Then
Dim con As New SqlConnection(DBsPath)
Try
con.Open()
Dim sqlCmd As New SqlCommand()
sqlCmd.Connection = con
sqlCmd.CommandType = CommandType.Text
sqlCmd.CommandText = "select * from " + ComboBox1.SelectedItem
Dim sqlDataAdap As New SqlDataAdapter(sqlCmd)
Dim dtRecord As New DataTable()
sqlDataAdap.Fill(dtRecord)
'DataGridView1.AutoGenerateColumns = True
DataGridView1.DataSource = dtRecord
'DataGridView1.AutoResizeColumns(DataGridViewAutoSizeColumnsMode.AllCells)
con.Close()
Catch ex As Exception
MessageBox.Show(ex.Message)
End Try
Else
MessageBox.Show("No tables selected")
End If
mrukr
5-Mar-14 10:27am
View
sohail thanks buddy
below are my codes :so I need to add delete and update button to work within the datagrid view..
plz could you help me following my codes
just having a hard time.
I have my tables loading and showing on grid uusing codes below now I need to make button to save changes and delete any data.
thanks
mrukr
4-Mar-14 20:20pm
View
how do i use a button to delete or save the data on the grid??
Thanks so much for your help
mrukr
4-Mar-14 20:20pm
View
how do i use a button to delete or save the data on the grid??
Thanks so much for your help
mrukr
3-Mar-14 15:43pm
View
Basically how can I display the list of all tables of the database on a form (mine populated table list in combobox) then select any of these tables that would populate all data in dataview grid.Codes above is where I am stuck?
any advise or help would be greatly appreciated?
Show More