Jump to content

MonkH

Member
  • Posts

    5
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    United Kingdom

About MonkH

MonkH's Achievements

0

Reputation

  1. anyone have an idea how to move a form when u click and drag it? i tryed google couldnt think anythink to put and came up with all the wrong stuff atm i got Private Sub Form1_MouseDown(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles Me.MouseDown Me.Location = New Point(Control.MousePosition.X - 100, Control.MousePosition.Y - 100) End Sub it just moves the form once i was thinking of changing the 100 (Me.Location = New Point(Control.MousePosition.X - 100, Control.MousePosition.Y - 100) to the mouse position on the form but wasnt sure how to do that any ideas how to do that also?
  2. the asp.net beta is stupid unbeliably easy to program the intelliSense just tells u everythink lol it like reads ur mind
  3. because your mouse is on the left hand side it is easyer to move rightwards towards what you need and the centre of the screen. When u click start u have to move right to all the programs so u see it is right handed
  4. im new to asp.net i am just playing about with it atm downloaded asp.net2.0 earlyer today and its so simple with IntelliSense i made a little timer by just doing a loop of the time Do While Not Counter1 = Counter2 Counter1 = CInt(Right(CStr(Now), 2)) 'pixel1 = pixel1 Me.TextBox1.Width = System.Web.UI.WebControls.Unit.Parse(CStr(Counter1)) Me.Label1.Text = CStr(Counter1) & CStr(Counter2) Loop now what i want it to do is every second it changes the size of textbox1.width so it gradually gets bigger untill the timer finishs how can i achive this? the whole code to this is Protected Sub Button2_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button2.Click MsgBox(myTimer(CInt(Me.TextBox1.Text))) End Sub Function myTimer(ByVal iCount As Integer) As String If CInt(Right(CStr(Now), 2)) <= 49 Then Counter2 = CInt(Right(CStr(Now), 2)) + iCount End If Me.Label1.Text = CStr(Counter1) & CStr(Counter2) Do While Not Counter1 = Counter2 Counter1 = CInt(Right(CStr(Now), 2)) 'pixel1 = pixel1 Me.TextBox1.Width = System.Web.UI.WebControls.Unit.Parse(CStr(Counter1)) Me.Label1.Text = CStr(Counter1) & CStr(Counter2) Loop Me.Label1.Text = CStr(Counter1) & CStr(Counter2) sStr1 = "Stoned" Return sStr1 End Function its quite messy code i know anyone help resize it continusly??
  5. anyone got any tips for when searching google or search engines for getting help with coding issues? an example of what im trying to say is just b4 i was searching google on "how to clear the screen in C" so i typed "C Clear Screen" came up with a couple of results but also came up with stuff like clear a screen saver. so if u understood that any tips? and also how do i clear the screen in C ? i tryed system("cls"); <- it came up with 'system' : undeclared identifier (presume this is because this is a C++ command not C)
×
×
  • Create New...