VS 2010 : Get Form To Have Control Box But Not Be Movable From Original Position?
Mar 30, 2011
I have a form that I want to have a control box so you can close it at any time but I don't want it to be movable from its origainal position. It opens maximized and I want it to stay maximized. I've tried all the different FromBorderStyle options in properties and I've tried all the SizeGripStyle properties though I can't say I've tried all the combinations possible between those two but whatever I've tried I can always click on the border at the top and then the form breaks free from its starting position and when it does the vertical scroll bar disappears.
How can I have this form stay in place with the vertical scroll bar and the control box and not break free from its starting position if someone clicks on the border at the top? If I try FromBorderStyle None then I don't have control box to close it. I was looking at the form events list and I noticed when I break the form free by clicking on the border that that is a ClientSizeChanged event.
View 2 Replies
ADVERTISEMENT
Nov 9, 2009
in school im making a dodge ball game but i cannot get the ball to return to its original position. My code and form are below
[Code]...
View 6 Replies
Feb 16, 2011
I'm trying to make a program with transparent labels over pictureboxes and when I set the label Parent to the PictureBox the position of the label changes.
View 2 Replies
Aug 5, 2011
I want to find a particular ID in a DataTable, I am using a DataView to filter the results, but how do I know which row in the original table the filter view corresponds to? Any ideas? In know I could use LINQ but I don't think this would help either?
[Code]...
View 1 Replies
Jun 15, 2012
My project is similar to JM's Manipulating GDI+ Drawings and NickThissen's Shape Editor. I haven't used their code though, I've written my own similar code. My shapes are custom controls.
All the shapes are working fine. But I'm having trouble with line control.
1. I've tried my own line control. But to resize/move I need to write separate code. The common code that works for all other shapes is not working.
2. I've tried VB Powerpack 3 Line Control,but moving/resizing it in runtime is too much complicated. It is NOT a real control. (I guess) It is directly drawn over a "ShapeContainer" control. So, i have to write custom code for this too.
View 3 Replies
Dec 11, 2009
How Can I Get The X,Y Position Of A Control In A Form?
View 3 Replies
Jul 12, 2011
I am trying to make a Form Non-Movable. How can I do this??? I have already made it non-resizable, now I just need to make it non-movable.
View 13 Replies
Mar 28, 2011
I have a user control where in the user control that there are 3 other controls for the PictureBox, button1 and button2.for the PictureBox control I want to resize when the user control in he will change length and width.button1 and button2 whereas only change in the position left alone.I include the following examples in resize images before and after.
View 3 Replies
Jan 20, 2011
I would like to accept input bytes or words from the serial port(this part can do using serial port control) and use those values to control position of the mouse on screen to use MSPaint. How can I control the mouse ?
View 3 Replies
Sep 18, 2010
Okay, what I want to do is snap a movable panel to the form, like create a virtual grid kind of thing. The panels can be moved with the mouse and stop moving once the left mouse key is released.For the movable panel I have used a Class, it creates an object called NewComp in the toolbox.
Public Class NewComp
Inherits Panel
Public Sub New()
[code].....
View 1 Replies
Mar 25, 2010
In VB6 there was a property on the form called movable that if set to false meant that the form could only be moved through code ... just wondering how i can do something like this in .net ... i don't want anything that flickers either like: vb Private Sub Form1_LocationChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.LocationChanged Me.Location = New Point(100, 100) End Sub the above flickers occasionally when the form is moved
View 8 Replies
Aug 15, 2011
i want to make a form with movable command buttons.the aim is that these buttons will represent the computers that are installed in one room.or the tables in one bar.all the tables can change depending the order that user give.
View 11 Replies
Nov 6, 2009
i create StudentForm as my mdi child form, what i suppose to do to let user unable to move my mdi child form to other location? i want it to be static location
Private Sub StudentToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles StudentToolStripMenuItem.Click
StudentForm.Show()
StudentForm.MdiParent = Me
End Sub
View 1 Replies
Mar 8, 2012
How can i best make a movable widget within a windows form application? I wanted a area inside the form where the widgets can be placed / moved, i was thinking something like Windows desktop gadgets, where you can move them around and add/remove them. i was thinking of using a group box to contain each individual widget (notepad, time, calc ect) and a flow layout panel to contain and move all of the widgets.
Also i was hoping there would be a way to actually have icons to press which place the widgets into the flow layout panel.
View 3 Replies
Oct 21, 2010
I have a DataGridView in one of my form which at a certain point I resize an change it's position. I would like to be able to restore it to the designer's default position at runtime. I know I could save it before changing and then restoring it later, but I feel like there surely is a way in .NET to just restore a control position to it's default.
View 2 Replies
Mar 10, 2010
here is the deal, imagine that i've a fullscreen form, and when clicking on a button, it will create a new control, a control that could be selected and moved. I know that they are dynamic controls, but anyone know how to make them with the specific things i've said? A kind of dynamic controls allowing drag & drop to another position.
View 39 Replies
Nov 23, 2010
I am writting a program that aims at filling up bookmarks of a template with data retrieved from a sql server db. The form opens a Word document but I can't control the position and dimensions of the word document. It seems that I can't manage to overwrite MS Word default settings for position and dimensions. I want to be able to display the word document close to the form.Here is the code that I have tried and doesn't work:
Dim
wawidth
As
Integer
[code]....
View 1 Replies
Feb 9, 2011
I have a form in Visual Basic, and the size of the form is: 211, 49. And when the form Loads, It loads to the top / left of the screen. the form has no border. How can I get my form to load top / right of the screen.
I Have tried changing the properties, Start Position to Manual, And then changed Location 0,0. but what if someone has a different size screen than mine.
View 4 Replies
Mar 24, 2010
I have two forms: Main and Options.Main can be moved around the screen (like a normal window).When the user clicks a button, the Options form opens up and the Main form HIDES.How do I set the Options form to open in the exact place that the Main form was last on the screen (to give it the effect the MAIN form never went into hidding)I was thinking to set Option form's StartPosition to Main's current position, but I don't know the syntax for that or if it's even something you can do.
View 4 Replies
Mar 25, 2011
I want to set control position relative to other control so when i make one control hide then other control move up like this.
View 1 Replies
Nov 1, 2010
i made a little from control which hold 3 button controls lined, in the designer they're all lined up perfectly but when i built and ran the application the middle button shift a bit to the left and overlap the left control, someone has any idea why its happen ?
View 1 Replies
Oct 22, 2010
This isn't really a VB specific question. It's .Net in general... if you have ideas in another .Net language, let me know... I know most of the .Net languages (I don't know that foxtrot or what not weird ones). Furthermore this isn't a 'I don't know the method on some class I should be using' kind of question, it's a design/problem solving kind of question.I'd like to know how you'd approach the problem with in the boundaries set.
View 3 Replies
May 16, 2011
This is a big idea and I'm unsure of how easy or difficult this really is. I do not know how I would get this even started. What I am trying to accomplish is "docking" so to speak, a sub form into the original. Basically, there are 2 forms open, but one is like a helper so to speak. This concept is not new as many programs use it. An example is a program widely used call Teamviewer. If you use Teamviewer, open the "Partner List" Pane at the bottom to see exactly what I am talking about. Basically, it opens a new form that is next to it.
[Code]...
View 4 Replies
Jun 6, 2012
Is there a way to bind the text property of a control to an expression? I have a user control that I add to a FlowLayoutPanel. You can see I have 4 controls in the FlowLayoutPanel below. The first control is a LinkLabel and the other three are my user controls which are numbered 1, 2, & 3. I'd like to bind the label that shows the 1, 2, or 3 to the user controls index within the FlowLayoutPanel.
If I happen to remove the 2nd user control I want the 3rd user control to now display 2. I could use the FlowLayoutPanel ControlAdded or ControlRemoved events, but wanted to see if I could do some binding first.
View 5 Replies
May 20, 2010
I have 2 forms. Form1 and Form2. When Form2 is closing, how do I make Form2 to inform Form1 that Form2 is closed.
View 2 Replies
Feb 15, 2009
possible to reload a form to its original state?i.e all pictureboxes, labels, functions are back the way they were when the form loaded.
View 1 Replies
Jun 15, 2012
I have settings called set1 and what I want this to do is when I open up a form and I then click close is doesn't show it anymore it shows the original one.
View 11 Replies
Jan 31, 2012
How do I check if the original value of a text box has been modified?
I have a few textbox controls on a form. When form loads; user enters data in these fields but later change his mind and modifies what was entered earlier. I need to know which textbox or txtboxes were modified.
View 2 Replies
May 22, 2011
I use the following code to get the shortcut files in a folder and to list them in a Listview control. But is there a way to extract the path of the EXE to which this shortcut is referring to ?
vb.net
Dim di As New IO.DirectoryInfo("C: est")
Dim aryFi As IO.FileInfo() = di.GetFiles()
Dim fi As IO.FileInfo
[Code]...
View 2 Replies
Feb 24, 2012
I've looked throu all of the SendMessage(messages) but there does not seem to be anything like WM_GetPos.Now I can accomplish through AHK with ControlGetPos, but for the life of me I can not figure out what Win API function they are calling to accomplish this.We have an order entry system we use, that I am trying to automate the printing of our reports (we have 4 per order form) to save time
View 9 Replies