Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
E

Ehmed Owais

@Ehmed Owais
About
Posts
2
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Bring a line or rectange to front
    E Ehmed Owais

    Hi all, i am writing an IDE like visual studio .Net. i want to produce the same effect as vs.net provide like when you drag and drop a control on a form it appears and if you want to adjust the location of this control you can use the mouse to drag and drop it to any location. i have successfully done every thinig accept that the selection frame. on my mousedown event when selection frame is drawn it goes behind and hides. i want to take it on top i mean it should not hide behind any control instead it should be the top most element when user is grabbing it and moving her mouse. can any body help in this regard. tested code will be plus for me . Thnx.:cool:

    Visual Basic visual-studio csharp help

  • moving a button
    E Ehmed Owais

    dear gary it is very simple in .net. if i would have been at your place i should do it in this manner. place button A then place a textbox with multiline property set to be true also make it invisible now put a new button button B. leave it i m giving you the entire code use it and remember me in your prayers. Public Class FrmMoveButton Inherits System.Windows.Forms.Form #Region " Windows Form Designer generated code " Public Sub New() MyBase.New() 'This call is required by the Windows Form Designer. InitializeComponent() 'Add any initialization after the InitializeComponent() call End Sub 'Form overrides dispose to clean up the component list. Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean) If disposing Then If Not (components Is Nothing) Then components.Dispose() End If End If MyBase.Dispose(disposing) End Sub 'Required by the Windows Form Designer Private components As System.ComponentModel.IContainer 'NOTE: The following procedure is required by the Windows Form Designer 'It can be modified using the Windows Form Designer. 'Do not modify it using the code editor. Friend WithEvents Button1 As System.Windows.Forms.Button Friend WithEvents TextBox1 As System.Windows.Forms.TextBox Friend WithEvents Button2 As System.Windows.Forms.Button Private Sub InitializeComponent() Me.Button1 = New System.Windows.Forms.Button Me.TextBox1 = New System.Windows.Forms.TextBox Me.Button2 = New System.Windows.Forms.Button Me.SuspendLayout() ' 'Button1 ' Me.Button1.Location = New System.Drawing.Point(4, 14) Me.Button1.Name = "Button1" Me.Button1.Size = New System.Drawing.Size(112, 28) Me.Button1.TabIndex = 0 Me.Button1.Text = "Button1" ' 'TextBox1 ' Me.TextBox1.Location = New System.Drawing.Point(6, 44) Me.TextBox1.Multiline = True Me.TextBox1.Name = "TextBox1" Me.TextBox1.Size = New System.Drawing.Size(110, 48) Me.TextBox1.TabIndex = 1 Me.TextBox1.Text = "please provide co-ordinates in (x,y) format dont forget paranthasis" Me.TextBox1.Visible = False ' 'Button2 ' Me.Button2.Location = New System.Drawing.Point(6, 44) Me.Button2.Name

    Visual Basic help tutorial question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups