Search:

Type: Posts; User: jcfowl

Page 1 of 13 1 2 3 4

Search: Search took 0.25 seconds.

  1. Thread: Database Class

    by jcfowl
    Replies
    1
    Views
    463

    Database Class

    I'm building a class for our Database. I want to model the table relations and am not sure of the best way to do this.

    Should I used typed datasets, or create custom classes for each table?
    I...
  2. Replies
    3
    Views
    520

    Re: Label Text: workstation and server

    I didn't autosize, but i don't think i should have to? Should i?
  3. Replies
    3
    Views
    520

    Label Text: workstation and server

    Heres the situation, I developed an application on my machine (Windows XP) and put the executable on our application server (Windows 2000 Terminal). Everything seems to look fine except for all of my...
  4. Replies
    4
    Views
    895

    Re: Combobox Autofind

    finished code... I'd love for some feedback on the functionality if anyone wants to test it out. Any suggestions for change are welcome.

    I'm trying to mimic the old vb6 comobox on the forms 2.0...
  5. Replies
    4
    Views
    895

    Re: Combobox Autofind

    got the basic functionality of it to work...


    Private Sub cmb_KeyUp _
    ( _
    ByVal sender As Object, _
    ByVal e As System.Windows.Forms.KeyEventArgs _
    ) Handles cmb.KeyUp

    Call...
  6. Replies
    4
    Views
    895

    Re: Combobox Autofind

    Thanks for the response spjansen, but that didn't work, it's strange because I see that the values for SelectionStart and SelectionLength are changing to values I need but It just doesn't do that on...
  7. Replies
    4
    Views
    895

    [resolved] Combobox Autofind

    We have severe issues with the combobox control in .Net 2003 at work. Basically when you type in something in the combobox it will look like the combobox finds the matching item, but it doesn't. I'm...
  8. Replies
    1
    Views
    402

    Re: splitter.Left property

    This code did it, I had to set the splitter.SplitPosition instead of the splitter.Left property. I also had to account for the area that I has computing and subtract that from the form width.

    ...
  9. Replies
    1
    Views
    402

    [Resolved] splitter.Left property

    I want my splitter to resize propotionally with the resize of my form. I have the splitter.Tag property holding the splitters ratio compared to the form size. Here is the code below.


    Private Sub...
  10. Replies
    2
    Views
    478

    Re: splitter control off screen

    epixelman, thanks for the response. I kinda thought thats what I had to do but I has hoping for a no code solution. Thanks.
  11. Replies
    2
    Views
    478

    [resolved] splitter control off screen

    I use multiple splitter controls on a form to divide the screen into quarters. The problem I have is that when the form is maximized everything is ok, but when the screen is decreased in size the...
  12. Replies
    6
    Views
    828

    Index of item in Collection?

    I have a collection of items based on a class that I defined. I typically loop through my collection with this code:

    For Each Summary In SummaryCollection
    ' some code
    Next

    The problem is...
  13. Replies
    3
    Views
    618

    Re: sorting an array

    ListBox.Sorted = True
  14. Replies
    2
    Views
    439

    Re: Solution won't save or update?

    Try opening the project by double clicking the solution file you want to modify instead of using the "Start Page" Open project... Thats just a guess...
  15. Replies
    4
    Views
    608

    Re: Form Load, SelectedIndex = 0

    :thumb: Zakary, you da man! Thank you.

    I didn't use the loop, but I call my Combobox Fill code from the New() event and for some reason its doesn't set the SelectedIndex to 0. Thanks again.
  16. Replies
    4
    Views
    608

    Re: Form Load, SelectedIndex = 0

    Thanks for the replies.

    I have stepped through the code and it isn't being changed by me. When I set the Datasource the SelectedIndex automatically changes to 0, so after that line of code I set...
  17. Replies
    4
    Views
    608

    [Resolved] Form Load, SelectedIndex = 0

    I have multiple ComboBoxs that I fill from a stored procedure by setting their datasource. When I do this I set the SelectedIndex to -1 so that nothing is selected. The problem is, when I load the...
  18. Replies
    3
    Views
    617

    Re: get Parent value from Child

    Here is some code...
    Is it ok for a child to have a copy of the Parent?
    It seems like this is circular reference...


    Private Class clsSummary
    Public Property Quantity As Integer
    ...
  19. Replies
    3
    Views
    617

    Re: get Parent value from Child

    So...
    clsSummary contains a collection of class clsDetail.
    I added another object to the clsDetail class of type clsSummary.
    When I add a clsDetail to the clsSummay.colDetail collection I set the...
  20. Replies
    6
    Views
    722

    Re: Data Grid selet row

    myDataGrid.Select(0) 'Select Row 0 (first row)


    msdn link:
    ms-help://MS.MSDNQTR.2003FEB.1033/cpref/html/frlrfsystemwindowsformsdatagridclassselecttopic.htm
  21. Replies
    6
    Views
    722

    Re: Data Grid selet row

    There should be a Select method on the datagrid that you pass a rowindex to
  22. Replies
    3
    Views
    617

    get Parent value from Child

    I use the Parent property in the TreeNode often to find the Text of the Parent of a particular TreeNode in a TreeView. Is it possible to mimic this functionality with a custom class.

    I have a...
  23. Replies
    3
    Views
    718

    Re: Class, Collections and cloning

    Thanks for the response techgnome. I was hoping that wouldn't be the solution, but at least I understand why my objects are "synchronized" with the code that I'm using now. Thanks.
  24. Replies
    3
    Views
    718

    Class, Collections and cloning

    I want to basically "clone" my collection, to do this I use the For Each syntax shown below. Am I creating a new instance of the class or am I creating a reference to the same location in memory. The...
  25. Re: Check for changes in a textbox...

    This all depends on what your goal is. Do you just need to know if anything was changed? Do you need to know what the Old value and New value is?
  26. Replies
    5
    Views
    625

    Re: Collections, classes and New()

    jberman, thanks for the response, that helps quite a bit. I thought I was going insane.
  27. Replies
    5
    Views
    625

    Re: Collections, classes and New()

    Here is some sample code:

    Dim tmpInvSummary As New clsInventorySummary
    Dim tmpInvSummary2 As New clsInventorySummary

    tmpInvSummary2 = tmpInvSummary
    ...
  28. Replies
    5
    Views
    625

    Collections, classes and New()

    I have a "master" collection and a temporary collection, each is based on a class that I defined. The "master" collection exists as a private form variable. The temporary collection exists in a sub...
  29. Replies
    4
    Views
    645

    Re: Mouse over event

    do you want to change the image when the use moves there mouse over the button or when they are using the Scroll mouse button?
  30. Re: Read RETURN val from Stored Procedure

    Got it, thanks to this link:
    http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnadonet/html/gazoutas.asp

    cmd.Parameters.Add("@ReturnVal", SqlDbType.BigInt).Direction =...
  31. Re: Read RETURN val from Stored Procedure

    The SQL code below works in SQL Query Analyzer. The stored procedure below Inserts the values passed and RETURNS the @@IDENTITY. How can I get the return value in .Net?


    DECLARE @retval as bigint...
  32. [Resolved] Read RETURN val from Stored Procedure

    Normally I use a DataReader to read values from a stored procedure but it is not working in this situation. On a stored procedure that INSERTS into a tabel I have a RETURN statement that returns the...
  33. Replies
    2
    Views
    2,952

    Re: Filter a DataTable or DataAdapter

    Thanks Lil Mis Squirrel, that is exactly what I needed. Much appreciated.
  34. Replies
    2
    Views
    2,952

    [Resolved] -Filter a DataTable or DataAdapter

    In vb 6.0 you could alter the .Filter property of a recordSet. Can you do this with DataTables or DataAdapters in .Net? I want to query for a number of records but then filter the results to deal...
  35. Replies
    0
    Views
    464

    Connection Object, are publics ok?

    Below is a typical section of code that accesses a stored procedure by using a DataReader, Command and a Connection object. I notice a lag when I open the connection, would it be ok to have a Public...
  36. Replies
    0
    Views
    628

    Serialize Dataset to Class

    Here is the basic problem: I have a normalized database. I also have a Class structure that models the normalized database. I want to load information from the database using a stored procedure that...
  37. Replies
    0
    Views
    857

    ListView.AllowColumnReorder

    I have been asked to simulate the way Excel allows you to "Freeze" certain columns so that when you scroll they are still visible. I thought I could do this by reordering the columns when the scroll...
  38. Replies
    2
    Views
    547

    try this

    Dim ds As New DataSet
    Dim rowIndex As Integer

    For rowIndex = 0 To ds.Tables(0).Rows.Count - 1
    If ds.Tables(0).Rows(rowIndex).Item("PrimaryKeyColumn") =...
  39. Replies
    7
    Views
    27,735

    KingBugsy - could you post the code for changing...

    KingBugsy - could you post the code for changing cell colors? I have only seen one method and that is to draw the actual colors of the grid. Is that the method you used?

    I'm also having serious...
  40. Replies
    2
    Views
    718

    One thing that may be helpful is being able to...

    One thing that may be helpful is being able to determin if the text in a column is greater than the size of the column. Does anyone have examples of that?
Results 1 to 40 of 492
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width