This question is related to both "Sql" and "vb.net". The title of this forum is general topics
I apologize before posting this question
I feel that you are too sensitive to discuss this issue.
Every beginner programmer knows that "datagrid" is "DataGridView" and understands what I mean
Please...
Hello
I have a table, for example, Table1 with fields (ID, Name) that I display its records with a Select command in the DataGrid.
If that record was also recorded in Table2, I would like it to be ticked in the DataGrid.
Sorry if I posted in the wrong forum
Thank you for your advice.
I have to repeat all the steps above every time to see the changes I made from within my app, otherwise the changes won't apply to the database.
Of course, changes are applied to the main file that is inside the "debug" folder, but they are not displayed from within Visual Studio and Server...
Hello
I have copied a database file from another project into my project and added it to my project
with the command:
Dim con As New SqlConnection("Data Source=.\SQLEXPRESS;AttachDbFilename=" & My.Application.Info.DirectoryPath & "\dbkarkhaneh.mdf;Integrated Security=True;Connect...
Hello
I have a mdiParent form and two other child forms (child1, child2) are opened inside this form and child2 is opened from within child1 and I want to have a opacity child2.
This is mu Code :
Private Sub btnMoreConsignmen_Click(sender As Object, e As EventArgs) Handles...
The problem was solved
This is a sample code :
Private Function ShamsiDateDiff(ByVal Date1 As String, ByVal Date2 As String, Optional ByVal InterVal As DateInterval = DateInterval.Day) As Integer
Dim MDate1, MDate2 As Date
Dim SDate1 = Split(Date1, "/")
Dim SDate2 =...
I am translating your words with transliteration and sometimes transliteration does not express the meaning well.
I haven't been programming for many years, but now I need a software for my new job that I prefer to write this program myself.
I have forgotten everything and that is why I am...
I think my question is related to this topic
Because I have a date function whose codes are available in this thread.
I just want to get the "two days before" arrival date obtained by the above function with this function
My English is not very good and I hardly understand what you are saying.
You said to post in the VS IDE forum and I did the same.
Sorry if I have not followed the rules of the site.
I just want to know if the user clicked on the double grid or not
Sorry, I didn't really understand your...
If txtName is empty and tabpage2 is selected or TabControl2.SelectedIndex = 1 is selected, it returns to tabpage1 with TabControl2.SelectedIndex = 0 or TabControl2.SelectedIndex = 0 is selected and it sends a message but displays the message twice.
Why is the message displayed twice?
this is code :
Private Sub TabControl2_SelectedIndexChanged(sender As Object, e As EventArgs) Handles TabControl2.SelectedIndexChanged
If txtName.Text = Nothing Then
TabControl2.SelectedIndex = 0
MessageBox.Show("برای...
Hello
How can I find out if the user has double clicked on the datagrid or not?
Note that I don't want the double click event.
Check whether the user has double-clicked or not
For example, if you don't double click, send a message?
You have complicated the matter
I've done this many times before, but I haven't programmed in a few years now, but I can't remember
I just want to scroll through the records with the arrow keys and hit enter
Hello
I have a data grid, I want to move between the overlays by pressing the up and down arrow keys, and the data grid information will be displayed in the text box.
I did this now in the Cellclick event, but I want to do it in KeyUp and keyDown as well, but when I do this and move, it...
Hello friends
I use the following function to get the date:
Public Function Shamsi_Date() As String
Dim DT As Date = Date.Now
Dim Glob As New Globalization.PersianCalendar
Shamsi_Date = Glob.GetYear(DT) & "/" & Glob.GetMonth(DT) & "/" & Glob.GetDayOfMonth(DT)
End...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.