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: *

  • Users: T0AD
  • Order by date
  1. T0AD

    TSQL Updating XML Variable

    Didn't think of that, thanks! There's a thin line between genius, and insanity!
  2. T0AD

    TSQL Updating XML Variable

    Hello. I have the following code in a SQL trigger: SELECT @XML = SELECT * FROM inserted FOR XML PATH ('MyEntity'), ELEMENTS, ROOT('Inserted'), TYPE); I want to add the deleted records to this too, but my code below just overwrites the @XML variable. How do I add to it? SELECT @XML =...
  3. T0AD

    Find Duplicates (Where Multiple Rows Match)

    Thank you. There's a thin line between genius, and insanity!
  4. T0AD

    Find Duplicates (Where Multiple Rows Match)

    I have a simple query like this: SELECT ColA, ColB, ColC FROM TableA I want to return all of the rows where there is more than 1 row where the values in these three columns are the same, ordered by ColA (including the duplicate rows!). Any ideas? There's a thin line between genius, and insanity!
  5. T0AD

    calling event from within another event

    After reading your post again I think something like this would be better for you: private void button1_Click(object sender, EventArgs e) { // do something here. ValidateText(); // continue here. } private void textBox1_KeyPress(object sender, KeyPressEventArgs e) {...
  6. T0AD

    calling event from within another event

    Really not sure why you would want to do this, but here's an example of how. In this example, clicking on the button will show the message box. private void button1_Click(object sender, EventArgs e) { textBox1_TextChanged(sender, e); } private void textBox1_TextChanged(object sender...
  7. T0AD

    Array of Controls within an Array

    What you've written works fine, assuming you've declared ctrl as a Control in the 2nd and 3rd parts of your code. What error are you getting exactly? There's a thin line between genius, and insanity!
  8. T0AD

    Painting 'Behind' Something - ie: Layers

    Thanks RiverGuy, just what I need. T0AD There's a thin line between genius, and insanity!
  9. T0AD

    wildcards in strings

    Can you try using the Like keyword, ie. If sMyWord Like "bing" Then bFound = True Not sure if my syntax is 100% correct - cant check it at the moment, but it's something similar to the above. There's a thin line between genius, and insanity!
  10. T0AD

    Painting 'Behind' Something - ie: Layers

    If I draw the white circles first, and then the board - the circles cant be seen as the board covers them... There's a thin line between genius, and insanity!
  11. T0AD

    Painting 'Behind' Something - ie: Layers

    What I'm actually trying to do is animate falling pieces. I create a graphics object, draw a filled rectangle and then several rows and columns of white-filled circles. I want a coloured circle to be drawn in one of the top white circles and fall down through the column. If you've ever played...
  12. T0AD

    Painting 'Behind' Something - ie: Layers

    Is it possible to draw or paint behind something using GDI+? For example, if I paint a small filled circle, can I then draw a larger filled circle around it - but behind it - so that the first circle is completely visible. There's a thin line between genius, and insanity!
  13. T0AD

    Easy One: Catching a Button press on a Form instance?

    Hi Herbie, You just need to create a routine like Scott has shown, but change the code after the Handles key word to represent whatever event you want the procedure to 'handle'. For example: Private Sub foo(ByVal sender As Object, ByVal e As EventArgs) Handles m_pForm_Main.Button1.Click...
  14. T0AD

    Creating a User Control

    Nope, output types available are Windows App, or Console App only :( Never mind, I'm learning C# now and I can compile DLL's in this ...! There's a thin line between genius, and insanity!
  15. T0AD

    Creating a User Control

    I can create a user control, but I can't compile into anything except .exe. I have VB.Net and C#.Net Standard Editions, does anyone know if it's becuase this feature isn't available in the standard editions? Thanks T0AD There's a thin line between genius, and insanity!
  16. T0AD

    Background color for control question (Win forms)

    Hi stfarm, I don't think VB .NET supports transparent backgrounds for the Label control... Can you get away without using the Label control? If you just need to display some text on the screen somewhere you could use the DrawString method of the Graphics class. Example: Private Sub...
  17. T0AD

    updating dynamicly built textbox's

    Does it work if you include the New keyword? ie. Dim prmForeman As New SqlClient.SqlParameter = daUpdate.UpdateCommand.Parameters.Add(New SqlClient.SqlParameter("@Foreman", SqlDbType.VarChar, 20)) T0AD There's a thin line between genius, and insanity!
  18. T0AD

    Manipulating Excel

    Hi tEkHEd, If you just want to add 5 worksheets to the workbook try this: Dim oExcel As New Excel.Application Do Until oExcel.Workbooks(1).Worksheets.Count = 5 Application.DoEvents oExcel.Workbooks(1).Worksheets.Add Loop Let me know if it doesn't work. (Might need to change the...
  19. T0AD

    Repeater Control

    I have no experience in Web App's, so the following might not work - but try it just in-case. Place this at the end of the routine that runs when your submit button is clicked. Dim c As Control For Each c In Me.Controls If TypeOf(c) Is TextBox Then CType(c...
  20. T0AD

    Repeater Control

    The above example is for a windows application, is this what you're using? There's a thin line between genius, and insanity!

Part and Inventory Search

Back
Top