VS 2008 Disable Dragging A Form?
Feb 4, 2010How can i disable a user from dragging a form , with using form border style (None). I want to use a fixed singl border style.
View 3 RepliesHow can i disable a user from dragging a form , with using form border style (None). I want to use a fixed singl border style.
View 3 RepliesIs there a way to disable a user from dragging a form other than setting the form border style to "None" ?
View 8 RepliesAfter maximizing a form, if I drag the title bar, the form moves out of position. This seems to be normal in windows, since IE does it also, but can I disable this? so the form stays fixed and unmovable?
View 1 Repliesthe user has the option of dragging several pictureboxes around the form. when he lets go of the mouse, the picturebox will take on a new position on the form.
i would like to implement the following:
on mouseup, if the picturebox position is within some amount maybe 50 or 100 (i dont know what units VB.net) uses, i would like it to be dropped exactly in a defined position. sort of like if you play checkers on yahoo games, you dont have to place the piece exactly on the square only approximately.
Been a while since i've bothered you gentlemen with my questions, but im back! So, I want to know, how I would be able to drag a picturebox around a form, liek a drag and drop functionality, but I dont want to move folders. Just move it around the form.
View 4 Repliesif i add a panel1 how would i drag the form about by dragging the panel i have this code from VB6 and i have tried upgrading it in visual basic 2008 (that never seems to work :|)
View 2 RepliesI have made a borderless form, but i still wish to be able to drag it around the screen.
But i dont have a normal background, ive got an image that covers it. I wish to be able to drag this overlaying image around the screen. Ive found code examples that allow you to drag the form, but you have to acctually drag the form.... Not the image (i couldn't adapt any of them)
Whenever I setup a database connection, and then drag items from it onto my forms, I get errors! 102 of them to be precise.All I've done is create a data connection, add the datasource, created relationships and then dragged items ome. I've been working with databases for a while and have never had this problem when taking these steps.
View 7 RepliesIf I drag another Form/Program or maybe lets say a context menu happens to open over my custom Control, this happens.It does correct itself after causing a redraw, however it's quite annoying. Is there anyway to avoid this?
View 5 RepliesIs there a way to move form by pressing and dragging a mouse on any part of the form ?
View 3 RepliesI have a form thats got a lot of buttons and functionality on it. I want some users to be able to view the form, but not have any of the functionality.
[Code]....
I have two forms -form1 and -form2When from the form1 window, i call to open the form2 window, i want the form1 window to lose its focus-not to be accessible.
View 2 Repliesi tried: Me.Button1.disable=trueit doesn't work..
View 4 RepliesDragging ListViewItem To Windows Explorer to copy file but it copies to form
[Code]...
Dim fnt As New Font("Verdana", 16)
Protected Overrides Sub OnPaint(ByVal pe As PaintEventArgs)
Dim g As Graphics = pe.Graphics
[code].....
Right now I have checkboxes on my form, and depending on what check box I check, the value of it gets put into a text box. So if I check "Right Eye", the texb ox below it gets "Right Eye" placed there.
I would like to do away with the check boxes and instead have a new form pop up with a list of words that gets populated from a table. Is it possible to be able to drag and drop these words into a text box? I guess I could use a List Box control for that but I'm unsure how to implement drag and drop. Maybe be able to multi-select words and then drag them all to a certain text box.
I'd like to have give the user the option of adding and deleting words from that form as they see fit, so could I just let VS do that for me by dragging the datasource onto the form and have it create a bindingnavigator or should I do it myself?
I have a datagridview showing data from an Access database. I have dragged the datagridview from "Data Sources" window - and not written any code. In bindingsource I have choose to sort on an autonumber field. Is it possible to let the user use the mouse to change the order, and the database to remember this the next time the user starts the application.I guess I have to have a number field in the database, and write code to change the value in number field as the user change order - and then save this back to the database? Does the datagridview support changing order by mouse at all?
View 1 Replieshow to handle a single attachment being dragged from Outlook - basically this code gets the filename:
Dim fStream As Stream = DirectCast(e.Data.GetData("FileGroupDescriptor"), Stream)
Dim fileGroupDescriptor(512) As Byte
fStream.Read(fileGroupDescriptor, 0, 512)
[code]....
I know how to drag a file to a listview, my question is regarding folders... How can I add a folder to the listview? I know a folder is not a file, but, is there a way to "recognize" it as a folder and then add any icon in its place?
View 2 RepliesHow can I disable the parent form when I call a child form?This code doesn't disable the parent form like I thought it would:
frmChild.ShowDialog()
my application have a main form. i have set the isMDIcontainer to true on the form properties. How do i set other forms to child form of the parent. i need to do this because the other forms start position is CenterParent.but as it is now when i run the program the other forms start position is not the parent form centre.Secondly, how do i disable the parent form when a child form is on display. so that user cannot click on the parent form until the child form is closed.
View 1 RepliesI am confused what will happen, when I disable a timer. Will it finish the process and then disable or will it immediately disable without completing process? for example
[Code]....
I want to run getMessage from somewhere else, so I need to disable timer during that time to be asured not to override anything and also before timer disable it should complete that function code.
I'm new in vb.net. enable and disable form using MDI
View 1 Replieson one of my form, if user press a button then it sync data with another database and it takes time. i show a hidden group box on form which show progress bar of processing. during this process i want to disable all the controls of the form so that user not able to do anything form until process if finished.because most control on the form has validation and if i do me.enabled = false, it disable the control but still use can click on any of text box and then depending on validation event get fired.in a nutshell, want to disable any kind of activity on form.
View 16 RepliesI need to disable every control on my Form so that the user can not click or press any key that will change values of listboxes and other controls on the form. I need to be able to lock the whole Form like this because as part of the project I have to print the form 3times with 3 different colors and the only way I've been able to get it to work is with a timer. So for about 3 seconds the form is changing colors and printing itself, so in between that time the user could accidantely click something and change a value on the form when all three prints should be of the same form, only difference is in the color.I can't use disable as that will make all the controls look faded and messed up, I need a clean way to prevent anything from being changed.
View 39 RepliesI need to disable keys using a form, when pressing a button, searching in the forum, I found this:
If (e.Alt = True) Then
If (e.KeyData = Keys.F4) Then
e.Handled = True
End If
End If
but I can't get it to work, is there a way to disable keys?I need to disable a, s, d , f keys?
This is a simple question, I am VB beginner. I was just wondering how I can disable the Delete Key on a form. Its simple question. I just want it completely disabled, preferably when the form is loaded.
View 4 Replieshow to disable the form border, and just have 1 button when your form loads i put a button on my form and i changed the background image but i can still see the border i know how to remove the controls on the form but i wanna see just a picture like bellow..
as you can see the form doesnt have any borders and that is what it loads when you click on the program.
I have a login form that opens during MDI form load event. What I want is during login process i want the MDI frm Menu strip to be disabled and can only be enbaled after succesful login. The login form is base on a table that I created with username and password and is working find. The only problem is i cannot disable the MDI menustrip from the login form. here is my code in login form that process the disabling of the menustrip1 from the MDI form
mainfrm.menustrip1.enable = false
I have been searching everywhere for code that will disable the Alt + Tab key press,
I am making a Lock PC program as a little project but I cannot find any way of disabling them.
I am using vb.net (Visual Basic 2008 Express)