Search:

Type: Posts; User: Shuja Ali

Page 1 of 13 1 2 3 4

Search: Search took 0.51 seconds.

  1. Re: Saving simple data? without using db

    In .NET you have something called as settings. You can either use these or an application configuration file would be good too. If you are not satisfied with either of the two, you can create you own...
  2. Replies
    5
    Views
    756

    VS 2008 Re: Framework requirements

    .NET 3.5 is an incremental build on 2.0 and 3.0 which means if you install 3.5 you automatically get 2.0 and 3.0 features installed. So to answer your question, yes you only need 3.5 frmaework and it...
  3. Replies
    4
    Views
    764

    Re: how to add private void

    When you switch to design view in the IDE, there is a properties window in which you have lightning icon. Click that icon and it will open all the events of the form which you can handle. You will...
  4. Replies
    2
    Views
    1,650

    Re: Adding dummy column

    Yes it is possible. In case you are using SQL Server, you could do something like this
    Select FIELD1, FIELD2, FIELD3, (Case When Field4 = "This" Then 1 Else 0 End) As EXTRACOLUMN From Table1This...
  5. Replies
    1
    Views
    411

    Re: [2008] Multi texbox line numbers

    Well yes. The only condition is that you will have to write code to do that. :)

    Depending on your logic, you can split the lines into an array and then pick up which ever line you want.
  6. Replies
    12
    Views
    1,400

    Re: Login screen in ASP

    Instead of getting the password and comparing it I would rather do it like this
    Dim strSQL
    strSQL = "Select 1 From Table1 Where UserName = '" & strUser & "' And Password = '" & strPass & "'"
    ...
  7. Re: Exception. can't figure out database issue.

    I am sure that this.dbConn is being used somewhere else in your code and the datareader that you were using prior to gettings in this function has not been closed. Look at what datareaders are open...
  8. Replies
    3
    Views
    554

    Re: SQL Server 2005 Views

    Indexed views should be created carefully. And remember when you create an Indexed view, the underlying tables cannot be changed (altered in anyway) unless the dependency of the view is removed.
  9. Replies
    4
    Views
    22,321

    Re: Get Active Window

    GetForegroundWindow is the simplest of all APIs. It gets the handle of the window that you pass to the GetWindowText to get the title. Something like this
    Option Explicit
    Private Declare Function...
  10. Replies
    4
    Views
    581

    Re: recursive function

    Isn't that a homework assignment?
  11. Re: [2008] Testing a string for anything OTHER than a number?

    If isNumeric(TextBox1.Text) Then
    'Text in textbox is numeric
    Else
    'Text in textbox is not numeric
    End If
    Or if you want to use TryParse method, look at this.

    MSDN has got all the...
  12. Re: [2008] Testing a string for anything OTHER than a number?

    Have you tried Integer.TryParse() method? Take a look at
    http://www.vbforums.com/showthread.php?t=394507
  13. Replies
    3
    Views
    7,700

    Re: validating a date picker in vb6.0

    DTPicker has two properties, MaxDate and MinDate. You can set these properties to whatever values you like.
  14. Re: [2008] pass values from a FORM to CONTROL

    Create a property in your user control and you can set this property from the form. I am assuming that the User Control is present on the Form1.
  15. Replies
    5
    Views
    514

    Re: List all open programs?? HOW?!

    EnumProcesses API. Search here you will get tons of samples.
  16. Replies
    6
    Views
    523

    Re: Is this commented out?

    Where did that 1% doubt come from??
  17. Re: Error when trying to run a project in VB 6.0

    This statement must have a form name too. It should be something like FormName.Show vbModal. Look out for FormName and see if you have a Form with the same name in your project. Open that Form, and...
  18. Replies
    4
    Views
    681

    Re: controls in a .dll

    Isn't it already in a DLL? This is what JM mentioned in his post.
  19. Replies
    4
    Views
    567

    Re: [2008] Multiline Textbox

    Textbox1.Text = "blabla" & Environment.NetLine & " second line"
  20. Replies
    20
    Views
    1,158

    Re: Picturebox instead of Command Button

    Picture Box has MoveMouve event. You should be able to use that event to change the picture inside the picture box.
  21. Replies
    3
    Views
    395

    Re: Help with case coding

    No, Str() function just returns the string and you are checking numbers.
  22. Replies
    7
    Views
    1,355

    Re: save listbox items to mdb

    How about putting filenames into separate table itself. This table will contain the reference to the parent table and for each record in parent table you can have multiple records in the child table,...
  23. Re: Error when trying to run a project in VB 6.0

    The error says that you are using a Third Party control for which you do not have a license. I am sure that it would be telling you which control on which form is having this license issue.
  24. Replies
    3
    Views
    395

    Re: Help with case coding

    Instead of using Asc(txtScore.Text) use Val(txtScore.Text). Asc() function returns the Ascii value of the character and that would always be less than 60 for numbers.
  25. Replies
    7
    Views
    1,355

    Re: save listbox items to mdb

    What does the listbox contain. You can always save the values in a table or maybe in the same field as comma separated values. But I would prefer saving each value in a different row.
  26. Replies
    2
    Views
    414

    Re: Update Statement Q

    You could also check DatePart function and even use something like this
    Select CAST(FLOOR( CAST( GETDATE() AS FLOAT ) ) AS DATETIME )
  27. Replies
    3
    Views
    437

    Re: Opening a modal form

    You have probably changed the MousePointer. Look for Screen.MousePointer in your code and check what you are doing with it.
  28. Re: a little help in case sensitivity

    What database are you using. I don't think case sensitivity is provided by default in any database. I guess you are missing something.
  29. Replies
    4
    Views
    1,990

    Re: Javascript Alert

    Are you doing validation on the server side? Without looking at the code it will be difficult to tell you what is wrong in the code.

    In the mean time, I would suggest using Custom Validator.
    ...
  30. Replies
    4
    Views
    626

    Re: send to back option in VB2005

    It still is Right Click. When you right Click on a Control/Picture you will get two options of Bring to Front and Send to back.
  31. Re: exporting a datagridview to excell

    Ideally a DataGridview is associated with a DataSet. And there is a very easy and nice way to export DataSet to excel without using COM.

    Here is a link...
  32. Replies
    12
    Views
    1,601

    Re: Database connection lost

    This usually happens when you have Global Connection object which is opened the moment application starts. You keep the connection open for the life time of application and it sometimes gets lost...
  33. Replies
    4
    Views
    523

    Re: very slow execution on some machines

    My guess would it is working fast on that machine where SQL Server is also installed. So it doesn't have to do round trip to the server over a network.
  34. Replies
    5
    Views
    782

    Re: Array question - pretty basic

    Use an ArrayList. You don't have to specify the number of elements it is going to hold. Just keep on adding the elements.
  35. Re: [2005] Accessing controls in another form

    frmChangePassword needs to know about the instance of frmLogin to change any thing on that Form. So before showing the form, make sure you pass the instance of frmLogin to frmChangePassword. You can...
  36. Replies
    4
    Views
    523

    Re: very slow execution on some machines

    IF I was going to do this kind of work, I would write a stored procedure to this rather than doing it on the Client-Side.

    The main reason why it is slow is because you are accessing 100000 records...
  37. Replies
    4
    Views
    373

    Re: starting my form

    OPen the Macro Editor window (VBA). Double click on this Workbook. Select the Workbook_Open event and write the code to show the form. This event fires every time someone opens the excel file.
  38. Replies
    7
    Views
    753

    Re: [2005]Need help with Dataset

    Just change the index.
  39. Replies
    3
    Views
    557

    Re: How do you publish/deploy website?

    Publish/Deploy a website means putting your website on a server from which everyone else (intended users) will be able to access it.

    Did you take a look at MSDN on How to Publish a website using...
  40. Replies
    6
    Views
    1,304

    Re: [2005] TextBox TextChanged Event

    First of all, this is not the right way of doing this. You should rather take a look at Ajax. Remember have the page postback for each keypress will be very annoying to the user.

    Also without...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width