Unable To Drag The Form By Click On The Form?
Jul 9, 2009I want to be able to drag the form by click on the form.... not by clicking on the bar...
The formborderstyle is at None.
I want to be able to drag the form by click on the form.... not by clicking on the bar...
The formborderstyle is at None.
i have 3 forms one stays at back alll the time and the other 2 can be launched fromt he first but when i lauch both of them it frezzes them both unable to resize or click anything on the form why is this?
View 1 RepliesI've got a Child form being shown with it's TopLevel property set to False and I am unable to click a MaskedTextBox control that it contains (in order to bring focus to it). I can bring focus to it by using TAB on the keyboard though.
The child form contains other regular TextBox controls and these I can click to focus with no problems, although they also exhibit some odd behavior: for example if I've got a value in the Textbox and I try to drag-click from the end of the string to the beginning, nothing happens. In fact I can't use my mouse to move the cursor inside the TextBox's text at all (although they keyboard arrow keys work).I'm not too worried about the odd TextBox behavior, but why can't I activate my MaskedTextBox by clicking on it?
Below is the code that shows the form:
Dim newReportForm As New Form
Dim formName As String
Dim FullTypeName As String
Dim FormInstanceType As Type
[code].....
Im Using VB 2008. I have MsgBox() statements in all Mouse & Form Click events to TEST & NOTHING FIRES during Form Load when I click on Form or Button Controls !!! The Form Load event contains code for Displaying the Label.Text control many times with changes in the Text to simmulate annimation.
[Code]...
I am working in vb.net. i want to drag textbox value one form to another form without use show and hide property in the form.
View 2 RepliesI have an issue when I place a label box in the MDI Parent form and then open a child form the label box highlighted in child form?
View 6 RepliesI have mdi application, on main form which is mdi container and has a tree view. i open the child form on afterselect even of treeview. the issue i'm facing that i open the form but focus remain on tree view until i click on the the form. my question is how i can give focus to form rather it stays on treeview. i tried frm.focus also activatemdichild(frm) no sucess.
View 21 Repliesi am having some trouble in my Windows form application. i have 2 forms1st Main / Parent Form2nd Sub / Child Form (Menu)
View 7 Replies[code] Actually,I m doing notepad application,my problem is when ever click the form maximize button automatically form is resized .. same like that my richtextbox control also maximized. this is the my scenario.
View 1 RepliesUsing the code below:
Private Sub ShowDropDown()
Using f As New DropDownForm
f.Visible = True
Do While f.Visible
Application.DoEvents()
[Code]...
This was a guess, after looking at the Form.ShowDialog method in reflector.My question is, is there a managed call I can make to acheive the same result, and what does a button click do that other clicks don't?
ETA: The problem does not occur if I open the form using a key.
I am having some trouble in my Windows form application. I have 2 forms:
1st Main / Parent Form
2nd Sub / Child Form (Menu)
Problem:
I want to close my 2nd form (which opens on top of 1st form) when I click on the 1st form.
In MDIParent, in my formload in MDIParent, one form is load. And i want the form when i click a button, there is another form will be loaded INSIDE the MDIParent?
View 4 RepliesI have this app that gets the files/subdirectories from a selected one (it stores the files with their icon in a listview), I was wondering how could I drag a selected file from the listview into another directory (outside of the form), let's say the desktop.
How can I do this? I have only found examples of how to do drag/drop within the same form.
I found this link. [URL]. I copied the code to my app and tried it. It didn't work for me. I think in may not have worked because I have a panel control with the dock property set to fill and Label inside the Panel with the Labels Dock property set to Fill. So I changed the mouse event names from Form to Label1, that didn't work for me either. One other thing you should probably know is that I have a timer control running as well (don't know if that makes a difference).
View 16 RepliesListView Drag&Drop allow to Drag&Drop between form??
Public Class frmModule
Private Sub ListView1_ItemDrag(ByVal sender As System.Object, ByVal e As System.Windows.Forms.ItemDragEventArgs) Handles ListView1.ItemDrag[code]....
Can it be drap and drop item to other form control??How to write the event when mouse up at the other form control?
I can't find a basic thing: how to enable a picturebox to be dragged inside a form? I'd need to be able to drop it inside a listbox so that listbox would get the picturebox's name-value in it. But I'm having trouble even getting started.
View 4 RepliesI have installed a fresh copy of VS 2008 after formating my PC, ealier i used VS 2005 for ASP. However, when open new web project and tried to drag and drop server controls to the form but i couldn't. When i click the control and drag it to the form it shows a black stop sign on my mouse cursor.... How do i fix this?
View 2 RepliesWhat I want to do is click a button (button will relate to a specific drawing / image) and have it appear on the cursor. I need to then 'Drop it' onto a form. Then I may need to select another button (button will relate to another specific drawing / image) and have it appear on the cursor, click on or near to the previous image and have the new image place itself against the existing on. I may choose to use drag and drop instead as the initial 'get image' command.
What I am trying to produce is an assembly building package where you can drag and drop various options onto the screen to build up a full assembly of a unit. My question is what would be the best 'work area' for this? Picture Box? or another type. I need to set the screen layout and then I can start looking at the code required for the controls.
I drag a toolstrip component to my form. I insert two buttons n two separators. During i configure these items, some time it will disappear but in the properties side, i still can found these items still exists. But i can't found these component in my form. I tried to add same item with same name n it show a error message box(because already exist).
View 2 RepliesI am trying to drag and drop form one DataGridView to another. Also try to drag n drop from one listview to and another the complete row in multi column listview but only get first column.
View 1 RepliesI was wondering how to drag items in a form, such as a picturebox. I know how to get it to follow the mouse when you click on it but I was wondering if there is any mouse down function, so it will only drag when the button is pushed down then it will let go when the button is released.
[Code]...
How can i drag already created user control into a form? In a clear statement, i have created a user control. I need to use this user control 2 times and i need to drag it into a form.
I currently using vb 2008 express edition.
I am in process of making a advanced note pad and have figured and most of the things i need out but id drop system so i can take a .txt file from my computer and drag it on the program and drop it and have the program load the .txt file
P.S : it is a tabbed notepad
Code for open:
Dim OPF As New OpenFileDialog
[code].....
I am making a virtual iPod touch in VB.NET, and I hate it how I have a form that I can't drag and move the form around the screen, I've trying making the form goto Mouse's location when the mouse moves and Dragging = True, but that doesn't work and makes the form flicker around at the speed of light.
View 2 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'm trying to have either a calendar, or multiple panels representing different job duties, where the user will drag a label, or some similar object onto the panel, thus scheduling by dragging and dropping.
I've found tutorials for drag and drop in TreeViews, but I don't see how to drag a label, or any other control. I see the AllowDrop property is there, but the ItemDrag event is not.
There is an image of a patient on the form.I have to mark the location of wounds on this picture.What I want to do is place 5 labels on a form.I am using these labels to mark the location of the wounds.these labels will be shown on the side of the form.the user can drag any one of the labels to a specific location on the image of the person.e.g face,head,leg.arm etc
Then I want to save the location of the labels in database so that when the record of the patient is retrieved the labels appear on the moved position.
I was trying to make an app to upload photos to flickr.This is what I'm trying to achieve:
1.User will select many photos and drop it on the form which here acts as a drop box.
2. The app. will upload them to the users account.
How do my app know what files have been dropped and their infos?
While connecting database (sql server 2000) to a vb.net form I encountered the problem. After adding the server the table was supposed to be drag to the form but there is a problem in drag and the things are not coming out as they should.
View 1 RepliesFor some unkown reason, my database tables will not drag and load onto a vb form, just get a circle with a slash in the middle. Trying to tanslate the table into textbox's.
View 4 Replies