Search results for query: *

  1. T

    Question Tick the record in the DataGrid if it is registered in another table

    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...
  2. T

    Attach Database to Project and View in Server Explorer

    I have to do this every time after running the program Every time every time
  3. T

    Question Tick the record in the DataGrid if it is registered in another table

    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.
  4. T

    Attach Database to Project and View in Server Explorer

    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...
  5. T

    Attach Database to Project and View in Server Explorer

    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...
  6. T

    opacity to child form in mdiParent form

    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...
  7. T

    Question Changing the date display format

    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 =...
  8. T

    Question Double click check DataGrid

    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...
  9. T

    Question Show the messagebox again

    Thanks The problem was solved
  10. T

    Question Changing the date display format

    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
  11. T

    Question Move between GridView records and display them in Textbox

    If possible, you should guide me with a small sample program or more details thanks
  12. T

    Question Double click check DataGrid

    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...
  13. T

    Question Show the messagebox again

    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.
  14. T

    Question Show the messagebox again

    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("برای...
  15. T

    Question Double click check DataGrid

    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?
  16. T

    Question Changing the date display format

    Thank you, the first problem is solved. The second problem: Message me two days before the desired date
  17. T

    Question Move between GridView records and display them in Textbox

    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
  18. T

    Question Move between GridView records and display them in Textbox

    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...
  19. T

    Question Changing the date display format

    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...
  20. T

    how to inactive tabpage in tabcontrol?

    Thank you for your attention, but these components are old I want to personalize this controltab visual studio
Back
Top