Search:

Type: Posts; User: cPubis

Page 1 of 4 1 2 3 4

Search: Search took 0.03 seconds.

  1. Re: Weird error right after the db server goes up after being down.

    Hello John,
    As you have noticed, the code snippet above was taken from a larger region of my code that has other db operations. I gave you the code snippet and removed the other operations where I...
  2. Re: Weird error right after the db server goes up after being down.

    Hi tg, I appreciate your input.
    I started the server and waited for 15 minutes; the problem persists!
    If the operation just fails forever it would be easier. But it fails the first time only and...
  3. Re: Weird error right after the db server goes up after being down.

    Thanks for the guess but I don't think it's about the timeout. I manually reproduced the error. I shut down the server and let it shut for say 3 minutes and then start it again and let it say for 3...
  4. [RESOLVED] Weird error right after the db server goes up after being down.

    Hi,

    So I have a TableAdapter (created by the designer) that fills a table like this.


    Try
    cmd.Connection.Open()
    MyTableAdapter.Fill(MyDataSet.MyTable)
    cmd.Connection.Close()
    Catch ex...
  5. Load/Edit/Save all tables on a MySql Server

    Here's a small project with which you can load any table from a MySql server (locally or remotely) by simply selecting its name and then do any operation on its data; Insert, delete, update. All you...
  6. Re: Prevent different product names for the same ID

    Hello Shaggy Hiker and thank you for your reply.



    There's no reason at all. I could easily change the design to the one you suggest and it will work perfectly. But I kindly request one...
  7. Prevent different product names for the same ID

    Hi,

    This is probably basic, but it is driving me crazy! maybe because I'm still awake since yesterday morning!

    I have a simple table with three fields; "Product ID", "Product NAME" and...
  8. Replies
    3
    Views
    451

    Re: Fill a Textbox with a delay!

    An idea and a code that puts it into practice? This is more than what I expected!
    I have just tested it and it works exactly as I wanted.
    Thank you very very much!
  9. Replies
    3
    Views
    451

    [RESOLVED] Fill a Textbox with a delay!

    Hi,

    I have a textbox I need to copy and paste some text into it. You know, once you select the textbox and press CTRL+V the textbox gets all the clipboard's contents within a wink of an eye! I...
  10. Replies
    2
    Views
    392

    Re: Joining three datatables!

    Yes, as I said, I don't need code. I just need to know how to do it manually. So thank you.
  11. Replies
    2
    Views
    392

    Joining three datatables!

    Hi,
    I have three datatables (DT1,DT2,DT3) I need to join into one datatable (DTX) as shown in the attached image. Please note that DT1.Rows.Count is variable, so is DT2.Rows.Count and DT3.Rows.Count...
  12. Re: How to send instructions to an instance of my application?

    Hi,

    You could use this method. If a user double clicks a file that was saved with your application, a new instance will run and open the file and the previous instance will be closed. Use it if...
  13. Re: Is this bad design or I'm doing things wrong?

    Seemingly easy but rather challenging. I know I asked the right person. THANK YOU.
  14. Re: Is this bad design or I'm doing things wrong?

    In this very database project I didn't do anything manually, all done by the wizard. the data tables, the data adapters, and the bindingsources.. etc all done by the wizard. I only select what...
  15. Re: Is this bad design or I'm doing things wrong?

    To MySQL database tables
  16. Re: Is this bad design or I'm doing things wrong?

    Thank you for your input.

    Well, I know about labels shouldn't be used to store things. I just mentioned them as an example. Sorry for that. In fact, they are DGVs. They're there for the users to...
  17. Is this bad design or I'm doing things wrong?

    Hi,

    In another thread, I once heard John says:



    Since I trust him as a valuable and unbiased education source, I wanted to ask him if he could explain if that is a bad design or I'm doing...
  18. Replies
    25
    Views
    1,931

    Poll: Which way is yours?

    #1


    Select Case c
    Case True
    i = i + 1
    End Select

    #2
  19. Replies
    9
    Views
    672

    VS 2017 Re: Need help plz

    Here you go:



    Dim intNumber As Integer
    intNumber = 10
    Do
    MessageBox.Show(intNumber)
    intNumber -= 1
    Loop While intNumber <> 0
  20. Replies
    32
    Views
    2,608

    VS 2017 Re: Table with many columns take long to save

    Hi,

    Well, basic things first, in many cases, the easiest solution is the correct one. What about your PC specs? What's your HDD rpm? I remember I faced such slow performance until I upgraded to a...
  21. Which is the best practice to reload a form?

    Hi,

    I have a form that has two modes; Online and Offline. The default mode is Online. There are two radio buttons in that form for the user to chose from in order to switch modes. In the radio...
  22. VS 2017 Re: How to order array in lexicographical order vb.net

    Hi pkedpker,
    If I understood what you want to do, here's a working method to do it:


    'Fill the arrays
    Dim R0() As Byte = New Byte() {50, 40, 30, 10, 10}
    Dim R1() As...
  23. Replies
    6
    Views
    1,020

    VS 2017 Re: Finding the smallest number

    Sorry my bad. You may edit the code like this:


    Dim smallest As Integer
    Dim x(3) As Integer
    x(0) = pa : x(1) = pc : x(2) = pd : x(3) = pu
    For i = 0 To 3
    ...
  24. Replies
    6
    Views
    1,020

    VS 2017 Re: Finding the smallest number

    You can do it something like this:


    Dim x(3) As Integer
    x(0) = pa : x(1) = pc : x(2) = pd : x(3) = pu
    Dim smallest As Integer = x(0)
    For i = 0 To 3
    ...
  25. Re: Single instance application with multiuser problem

    Put this in your sub main and you're fine



    Dim pCount As Integer = 0
    Dim CSID As Integer = Process.GetCurrentProcess.SessionId
    For Each Process As Process In...
  26. Replies
    17
    Views
    3,241

    VS 2017 Re: Use Run Task in Background

    In this very thread, jmc preceded me to that, and he did it professionally as usual. Repeating what he said was unnecessary. If you looked at my first reply to the OP you will see that it's just a...
  27. Replies
    17
    Views
    3,241

    VS 2017 Re: Use Run Task in Background

    I unreservedly agree with that.
  28. Replies
    17
    Views
    3,241

    VS 2017 Re: Use Run Task in Background

    I agree, but as you said it was the OP's request.

    Now kshadow22, in case you didn't figure out how to avoid this, here you go:


    Public Class Form1

    Private Sub...
  29. Replies
    17
    Views
    3,241

    VS 2017 Re: Use Run Task in Background

    It's almost the same, just put the code I gave you in the SelectedIndexChanged of the ListBox and you're fine. Something like this: (change the listbox items names to your actual names)


    Private...
  30. Replies
    17
    Views
    3,241

    VS 2017 Re: Use Run Task in Background

    Please explain, what do you mean by "use this tool in the background"? If you mean making it work without any GUI then how could your users input the data then?
  31. Replies
    17
    Views
    3,241

    VS 2017 Re: Use Run Task in Background

    Hi kshadow22,

    I'm not sure I'm getting what you want to accomplish here exactly. Do you want to offer your users a tool that simulates the Windows Run tool? If that is what you want then you can...
  32. Replies
    21
    Views
    2,183

    Re: unable to run msconfig.exe

    Hi keanny479,

    You're suffering from the "File System Redirector", which is explained here.

    Just change your build configuration target from x86 to Any CPU and you're good to go.

    Hope that...
  33. Re: [RESOLVED] Programmatically detect if MS Office is 64 Bit or 32 Bit

    Hi, Here's my hack. I have been using it for a while and it works fine with different versions/platforms. It checks the PE header so it works with any portable executable (exe,dll...).


    Imports...
  34. VS 2008 Re: Dynamically load reportviewer report

    1. Put the .rdlc file in the root folder of your project.
    2. Add the .rdlc file to your project (Through Add Existing Item).
    3. Use this code to load the report:

    ...
  35. Re: Downloading File from Google Drive URL

    Sorry double post
  36. Re: Downloading File from Google Drive URL

    It's not your fault. The direct link trick is not documented on any of Google's websites. It's kind of a hack, a workaround, it's leaching and Google will hate it if you use it intensively. Be wise...
  37. Re: Downloading File from Google Drive URL

    You didn't show us the URL you're using, if it is the one that you get from Google Drive's "Get sharable link" then it won't work because it's not a direct link.

    The sharable link would look like...
  38. Re: Prevent user from disabling startup of my program from MSConfig?

    Pardon me but what you're trying to achieve here is malware-like activities. A malware author would prevent anyone from seeing/ending/removing his program from startup even by using administrator...
  39. Re: TableAdapter.Update does not save data!

    UPDATE: I ended up with replacing the development machine with a new and more powerful one. And now everything is working fine. This problem will be a mystery to me. I didn't get rid of the machine...
  40. Re: TableAdapter.Update does not save data!

    Hello jmc & thank you for the kind reply


    I've already done that, the matching record is in the DataTable and in the Database, the data is changed in the DataTable once I edit the textbox...
Results 1 to 40 of 124
Page 1 of 4 1 2 3 4



Click Here to Expand Forum to Full Width