Search results for query: *

  1. Guardian

    Question Raise another control's event

    Dont worry about the solution - i found it :) The items i am trying to trigger were ToolStripMenuItems, which i found have a PerformClick() function, which is exactly what i was after :)
  2. Guardian

    Question Raise another control's event

    Hi i am trying to raise the event of another control on my form (of a specific type, eg i know it will have a Click event). the problem i am having is that i cannot trigger another control's event. I can add handles to it: addhandler _controls(i).Click, addressof ClickFunction but this does...
  3. Guardian

    Control Contents as Graphics

    Thanks John, exactly what i needed :)
  4. Guardian

    Control Contents as Graphics

    Not exactly what i am after im afraid, thanks for the input though :)
  5. Guardian

    Control Contents as Graphics

    Hi, i am trying to extract the contents from controls as graphics objects, but i am running into problems. I have come across this method, but i don't wish to inherit from the target control; e.g. i am trying to extend other controls. I have tried using the _control_name.CreateGraphics method...
  6. Guardian

    Question How can i add a event.

    use AddHandler when you create the control: AddHandler control_name.event_name, addressOf method_name so for your button: Private sub Create Buttons dim b as new button b.name = "buttonTest" b.location = new point(50,50) addHandler b.Click, addressof ClickHandler End Sub private...
  7. Guardian

    Question Forms .vb?

    They used to be .frm in vb6, in .NEt they are .vb as they are written in VB.
  8. Guardian

    Question TCP Listener and WinForms

    Hi all, if i put this piece of code into a shared sub main in a WinForms App, it works fine, i click on my http:/127.0.0.1:988/test and get Hello World back in the browser. Public Shared Sub main() Dim tcpl As New Net.Sockets.TcpListener(Net.IPAddress.Any, 988) tcpl.Start() While True...
  9. Guardian

    Question Form Border Size/Vista Background Paint

    Hi all, I have been trying off and on for quite a while to work out if its possible to get the get the background used in vista window borders into a panel control or on the entire form background. Since that explanation probably didn't mean a lot, have a look at this screen shot of windows...
  10. Guardian

    Fixed Height Usercontrols

    we solved the problem in the end by overriding the maximum height of the property of the control, and setting the height to the specified value (21px in our case) and the width to 0, which allows it to still resize properly width ways when docked. thanks for the reply though :)
  11. Guardian

    Fixed Height Usercontrols

    Hi, i am trying to create a fixed height usercontrol, but am having some problems with it. If i override the onResize method, i get a flickering when its resized, and you can still dock the control on the left and right, this is something i also want to not do. I did some searching, and came...
  12. Guardian

    Reflection and Closing files

    Thanks, that works perfectly :)
  13. Guardian

    Reflection and Closing files

    interesting, how would i set about that? stream reader?
  14. Guardian

    Reflection and Closing files

    Hey, im having a major headache trying to get this to work: If IO.File.Exists(ffbSelect.Text) Then 'continue if the file exists If mnuOptionsCopyLocal.Checked = True Then Dim nPath As String = Application.StartupPath & "\testing.dll" IO.File.Copy(path, nPath, True)...
  15. Guardian

    Host a Button as a listview item

    Well the title says it all really. what i am trying to achieve, is a long list of buttons, that will scroll when the last visible item is focused and the down arrow is pressed, and the same for scrolling up. a similar effect can be seen in the windows MCE main menu. thanks
  16. Guardian

    what those controls do

    i think this is what you are looking for: DXCore
  17. Guardian

    Rectangle Co-ordinates.

    1. on mouse down, store the position of the cursor to a global point A. 2. on mouse move, store the position of the cursor to a global point C. 3. on mouse up, set C to -1,-1, and store current location to B 4. on paint, if C =-1,-1 draw a rectangle from point A to point C 5. on paint, if C <>...
  18. Guardian

    Messagebox: creating a new line

    i tend to use vbNewLine as my return symbol: Dim sMsg as string = "this is" + vbnewline + "over many lines"
  19. Guardian

    transperancy related

    wrap an If statement around your code, so that the code only executes when a boolean global variable is true. then in your button, add some code to toggle the global variable state.
  20. Guardian

    label RightToLeft property

    one way would be to switch off the AutoSize of the label controls, make them large enough to accommodate your text, and then set the TextAlign property to MiddleRight or TopRight or whatever suits you.
Back
Top