Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. sillysod

    FK to Multiple Tables

    Hi (not sure if im posting in right place so apologies if its not) I have multiple entities, for example Customer Suppler Sales Invoice Purchase Invoice Currency etc etc I would like to be able to add a "Notes" record to ANY type of record The Notes table would like this NoteID - Int (PK)...
  2. sillysod

    Using separate form to add child records

    Lets say I have a Master/Detail form bound to Linq2Sql objects (for arguments sake an Order / Order Line form) The order form shows the order lines in a datagrid, which is readonly To add/edit an order line the user clicks a button. The button opens up another form and the details are entered...
  3. sillysod

    Need to Make a Windoww From MODAL

    Insted of using Form.Show use Form.ShowDialog
  4. sillysod

    Word Wrapping

    Well i tried amended the code as follows Dim str As String = vbCrLf Dim Words() As String = text.Split(" "c, vbCrLf) Dim currentLineLength As Integer = 0 Dim Lines As ArrayList = New ArrayList((text.Length / maxLength)) Dim currentLine As String = ""...
  5. sillysod

    Word Wrapping

    Well I have just realised what is happening when i dont remove the vbcrlf. It doesnt reset the currentlinelength so everytime i run the event the text gets longer as linebreaks keep getting added every x chars. So i need to somehow check for a linebreak and if one is found reset the count...
  6. sillysod

    Word Wrapping

    Yea sorry your right, I cant't count. I have had lots of fun already :) Googled my fingers to the bone on this one.
  7. sillysod

    Word Wrapping

    Hi Guys, This is driving me daft, I need to restrict the length of each line entered onto a multi line textbox to only be X chars, however the number of lines is not a concern. Now i have found this code on internet which needed a little tweaking but as it stands now ... Public Function...
  8. sillysod

    MDI Childs title bar

    Ah ha, Sorted it. I had put jebenson's code in the resize event of my base form from which i inherit so everytime i set the dockstyle the form resized and maximized. Removed that and it works like a treat :)
  9. sillysod

    MDI Childs title bar

    i have tried the exact code you pasted pmegan however i still get the bar across top. Very Annoying I also tried setting the borderstyle to none and docking but again no luck. There has to be a way, that grey bar is ruining my nice new GUI :) jebenson cheers, that fixes another problem I have...
  10. sillysod

    MDI Childs title bar

    Yes, the parent is set to MDI Container and when i load the forms i set the mdi parent and then .show But i still get the controls when the mdichild is maximized even if the showclose and showminimize etc properties are set to false. I have also tried setting the form border to none.
  11. sillysod

    MDI Childs title bar

    The form is set to maximized, however just below the application title bar there is a second set of buttons for min / max / closed which control the mdi child
  12. sillysod

    MDI Childs title bar

    I have an application which uses an MDI interface, forms are loaded into the MDI form and a tab strip lists all open forms for the user to select between any open forms. the user should never be able to change the MDI Children from been maximized (kinda like worksheets in Excel whereby they are...
  13. sillysod

    Iterate through a forms binding sources

    i might have misled you here, the someinstance i mentioned above is a reference to a loaded form which has all the dataloaded. So if i cycled through the controls like so for each c as control in f.controls 'do whatever next i could access the data in those controls. however i need to...
  14. sillysod

    Iterate through a forms binding sources

    ah sorry yea the reference is being passed. Basically i want to get the bindingsource's current datarow and extract a field value which i will then pass to crystal reports. The way i do it at the moment is have a sub in about 20 forms and reference the binding source by name in each but...
  15. sillysod

    Iterate through a forms binding sources

    So the components dont exist until an actual form is created? if i used code like the following dim f as Form f = someinstance for each c as control in f.controls 'do whatever next There must be someway of doing the same with components?
  16. sillysod

    Form Not Loading

    put a breakpoint in your code against the line Catch Ex as Exception then when the exception is raised you can view the details in the code windows i have never known an exception message be blank though
  17. sillysod

    ON TextChanged event

    So the text is being changed programatically via txtLocation.text = "Something"? if it is try txtLocation.text = "Something" RaiseEvent txtLocation.TextChanged does the event fire then?
  18. sillysod

    Iterate through a forms binding sources

    I need to cycle through all the binding sources on a form and get the .current for each. After a fair bit of googling i found a code sample which shows you to cycle though the components.components collection and direct cast the objects to a binding source type. This is fine if the code is...
  19. sillysod

    asychronous tcl listener

    Thanks, i have put the code you said in a function and am running that on a separate thread and now the programme doesnt crash any more and runs perfectly. However, how would i now stop the thread running? (so that the app will stop listening for messages ) ?
  20. sillysod

    asychronous tcl listener

    Hmmm, i have been hashing about with the example from this page http://msdn2.microsoft.com/en-us/library/fx6588te.aspx not sure which line of code starts the new thread, however i do get cross threading errors (hence Control.CheckForIllegalCrossThreadCalls = False) so the thread is...

Part and Inventory Search

Back
Top