Search:

Type: Posts; User: riechan

Page 1 of 7 1 2 3 4

Search: Search took 0.07 seconds.

  1. VS 2015 Re: DateDiff() result differs on 1st run and succeeding runs?

    I'm trying out other things at the moment, and correct me if I'm wrong, the value of the DateTimePicker doesn't get updated unless you remove focus from the DateTimePicker control? Could that be the...
  2. VS 2015 Re: DateDiff() result differs on 1st run and succeeding runs?

    Hi guys! Thanks so much for the input.



    I checked the values of the DateTimePickers and tried changing one of them and upon checking, the supposedly changed value didn't change until I ran the...
  3. VS 2015 DateDiff() result differs on 1st run and succeeding runs?

    For example I key in tomorrow's date in the dtpBirthdate control, I'm expecting to immediately get 1 as a result in the following code:


    DateDiff(DateInterval.Day, Date.Now.Date,...
  4. Validate and get data from new instances in user control/tab page

    Hi guys,

    Currently working on a project that requires me to duplicate the contents of a 2nd tab page (TabPage2) from a Form1. Looked up previous threads about it and found this:...
  5. Replies
    2
    Views
    802

    "Zombie transaction"?

    I'm not sure if this is the right thread but here goes. If I call on a SPROC from VB like so:



    dbCmd = New SqlCommand("spNewPatient", dbConn, dbTran)
    ...
  6. Replies
    0
    Views
    551

    VS 2015 Trying to setup Crystal Reports, clueless

    So I'm trying to follow this tutorial right here, downloaded CR 12 for VS and the runtime setup. I opened up VS Express, and couldn't find the Crystal Report template in the New Item dialog.

    Been...
  7. VS 2015 [RESOLVED] Change appearance of disabled controls?

    Is there a way to change the appearance of disabled controls? Specifically the DateTimePicker, ComboBox and RadioButton controls? The following code works nicely with text boxes:


    CType(ctrl,...
  8. Re: Question about SQL Transaction/Stored Procedures and Identity Fields

    Hi szlamany! I'm calling the SPROC from the front end. The SPROCs were made within SQL. Here's the code in question:


    USE [dbMacondo]
    GO
    /****** Object: StoredProcedure [dbo].[spNewPatient] ...
  9. Re: Question about SQL Transaction/Stored Procedures and Identity Fields

    I was getting syntax error on both @PXID int OUTPUT=0 and @PXID =0 int OUTPUT though.



    Removed that, thank you! I was following along a tutorial, you see. So, below is the code in its entirety....
  10. Question about SQL Transaction/Stored Procedures and Identity Fields

    Getting a "Procedure or function spNewPatient expects parameter @PXID (Identity Field) which was not supplied." when I try to insert data using dynamic SP and transactions. However, @PXID is an...
  11. Re: Passing multiple controls to a function

    Thank you for the detailed explanation. None of these were taught to us back in college 6 years ago so this is all new to me. Didn't really work in the industry and am trying to get back to this is a...
  12. Re: Passing multiple controls to a function

    Thank you for the help. I tried your suggested code and sadly it only reiterated the Tab control. I made a couple more searches using the list method you mentioned and found a set of code here which...
  13. Re: Passing multiple controls to a function

    Okay, so I tried it like this:



    Public Sub CheckIndexes()
    For Each ctrl As Control In PatientRecord.Controls
    If TypeOf ctrl Is ComboBox Then
    If...
  14. [RESOLVED] Passing multiple controls to a function

    I use this code to display errors in the form:



    Public Sub CheckIndex(ByRef _Control As ComboBox)
    If _Control.SelectedIndex = -1 Then
    HighlightError(_Control,...
  15. Replies
    5
    Views
    708

    VS 2015 Re: Efficiency of If variations

    blnAbFHR = rdoT4AbFHR1.Checked

    Yes, it's the second radio button for that set. I should omit that. So this basically gets the status of this rdoT4AbFHR1 (since it can only be True/False) right?...
  16. Replies
    5
    Views
    708

    VS 2015 [RESOLVED] Efficiency of If variations

    So, I'm trying to develop an application on .NET 4.5. Just a quick question, in the following implementations, which are the most efficient (and flexible in terms of compatibility) implementation of...
  17. Thread: Weird error?

    by riechan
    Replies
    0
    Views
    748

    Weird error?

    Hi guys! So, I'm trying to write a program that gets the GCD of two numbers (I know, it's real easy, but I'm just doing this as a refresher), and I've finished writing the code, got it to compile and...
  18. Replies
    1
    Views
    4,489

    VS 2008 "Hover effect" using picture box control?

    Guys, a little help here? I'm trying to make an application that has "button hover" effects, similar to the ones that you normally see in the web. This is how I coded mine:



    Public Class...
  19. Re: Operation is not allowed when the object is open.

    Sorry. Already fixed the problem. Admin, please delete the thread as needed. Thread resolved.
  20. [RESOLVED] Operation is not allowed when the object is open.

    Hi guys. Can anybody help me out here? I keep getting the above error when trying to open a recordset like so:


    Set connExcel = CreateObject("ADODB.Connection")
    connExcel.Open...
  21. Replies
    1
    Views
    535

    Unhandled exceptions during deployment

    Hi guys. I was wondering how we could solve these two problems that occurred when we tried to deploy our VB.net applications (using Advanced Installer 7). By the way, we tried to install the...
  22. Replies
    12
    Views
    1,129

    VS 2008 Re: Unhandled exception when closing the program

    This only happens when we run the application after it has been deployed (installed). It's running just fine when we run it using VS, that's why I don't know which code to place here.
  23. Replies
    12
    Views
    1,129

    VS 2008 Re: Unhandled exception when closing the program

    Is it because I used Application.Exit in the form_closing event? Seriously, I'm not getting any error messages even if I'm using try-catch. Weird.
  24. Replies
    12
    Views
    1,129

    VS 2008 Re: Unhandled exception when closing the program

    That's rather weird. I know I have placed Try-Catch statements on all the events that I've used, except for the form_closing ones. Should I try using a general exception handler or is there a...
  25. Replies
    12
    Views
    1,129

    VS 2008 Re: Unhandled exception when closing the program

    Modifying a collection within a For Each loop? But, as far as I know, I didn't even use a for each loop in my application. How is this possible?
  26. Replies
    12
    Views
    1,129

    VS 2008 Re: Unhandled exception when closing the program

    Does this have something to do with how we close forms? We closed some of the forms in our application using the .Dispose method.
  27. Replies
    12
    Views
    1,129

    VS 2008 Unhandled exception when closing the program

    Hi guys. Our application got this exception after it was closed... I was wondering how we can solve this...
  28. Auto-attach SQL DB Using InstallScript (InstallShield 10)

    Hi guys. We're thinking of deploying our application with the use of InstallShield Wizard 10. I was wondering if it's possible to attach a SQL database automatically using InstallScript? Can anyone...
  29. Replies
    10
    Views
    886

    Re: Help with DB Development

    Thing is, it says here, that SELECT statements that assigns values cannot be combined with data retrieval SELECT statements. Any ideas?
  30. Replies
    10
    Views
    886

    Re: Help with DB Development

    Question. Why is it that this code:



    SELECT @AuthorNames = IsNull(@AuthorNames + ', ','') + [AuthorName] FROM Book
    INNER JOIN AuthorDetails ON Book.BookID = AuthorDetails.BookID
    INNER JOIN...
  31. Replies
    10
    Views
    886

    Re: Help with DB Development

    @Mazz: Thank you very much! I got the code up and running! The only problem now is to get it the AuthorIDs of the Author's in the @AuthorNames. Any ideas?

    By the way, here's the code that I used,...
  32. Replies
    10
    Views
    886

    Re: Help with DB Development

    @leinad31: I'm thinking that this is like the example that Mazz1 cited. And that it needs to be done on the front-end as well, not just on the back-end, am I right? I'm going to test the code that...
  33. Replies
    10
    Views
    886

    Re: Help with DB Development

    Yes.
  34. Replies
    10
    Views
    886

    Help with DB Development

    Hi guys. I'm sort of having some problem with the way our database's structure is supposed to be like. This concerns books and authors.
    Taking the following notes into consideration:

    - There can...
  35. VS 2008 Re: Loop until the user inputs a valid answer?

    Thanks for the help guys. Here's what I did, using jumer's code as reference:



    Dim CopyQty As String
    CopyQty = ""

    Do While Val(CopyQty) < 1
    ...
  36. Replies
    2
    Views
    822

    VS 2008 Re: Crystal Reports Plugin/Express ED?

    Okay. So how do I include the said file with our application when we try to deploy it (into a setup file)?
  37. Replies
    2
    Views
    822

    VS 2008 Crystal Reports Plugin/Express ED?

    Hi guys. Can anyone help me on this matter? We always get this error whenever we try to run the form that has the Crystal Reports viewer on the unit to which we deployed our application. Attached is...
  38. VS 2008 [RESOLVED] Loop until the user inputs a valid answer?

    Hi guys. Is it possible for you to loop a block of code until the user provides a valid input? Like, when I click the save button, the program will prompt the user for an integer value, and I would...
  39. Replies
    3
    Views
    1,073

    Re: Change the image of a status label

    Vb 2008. :)
  40. Replies
    3
    Views
    1,073

    Change the image of a status label

    How do you change the image of a status label if the image you want to call is from the Resources?

    Edited:
    Sorry. I posted in the wrong section of the forum. Kindly move this to the Visual Basic...
Results 1 to 40 of 257
Page 1 of 7 1 2 3 4



Click Here to Expand Forum to Full Width