Keep Borders, Prevent Relocation Of Forms?

May 5, 2010

I have a lot of forms that get placed in specific locations at run time. I need to disable relocating these forms, but I would like to keep the borders and titlebar.

I have tried jmc's codebank submission called "immobilise" but did not work for me, forms were still draggable (could be my mis_use, but no errors were thrown)If this isn't doable, is there a way to hide only the titlebar, but maintain the 3D blue borders all around?

View 8 Replies


ADVERTISEMENT

Forms :: Borders Around Toolstrips On MDI Form?

Mar 31, 2011

I have a MDI container form with menustrip, toolstrip and statusstrip on it. The backcolor of these items is black. The toolstrip and statusstrip show ugly white borders around them which I want to get rid of but there seems to be no such property like bordercolor or anything where I could change them.

View 1 Replies

VS 2008 Custom Borders In Forms

Apr 21, 2009

I have now a Drawing Custom Borders, Download by CodeProject and now i'm being use, but my problem is how can i apply with my changes of my customize borders...i've been changing in Runtime not in editor...

[Code]...

View 8 Replies

Forms :: Remove Ugly MDI Container Borders?

Feb 16, 2011

I have a Form, that is a MDI Container.But the grey window where the Childform are in has a 2 pixel width border around it.

View 5 Replies

Preferred Size Values For Forms While Taking Borders Into Account?

Jun 14, 2011

I'm modifying an existing form in Visual Basic 2010 Express and attempting to work out some small kinks I've noticed. The one that I'm having an issue with is getting the form to completely fill the screen without the border going off screen. When I set the form's Size values at W:1024,H:768 the page always opens a little off. I tried setting the size a little smaller, W:1020,H:764, and it still does not perfectly fill the screen. Does the Size value include the border pixels or are the border pixels added to the form's Size value? Is there another value somewhere that could be affecting this?

View 5 Replies

Forms :: Prevent A Form From Being Minimized?

Sep 12, 2011

I've got this little 'Sticky Notes' type of application and the form I have is a borderless, taskbarless form and for Windows 2000 compatability I'm using VS 2008 and targeting the 2.0 framework. One of the hurdles I have is that in XP, Vista & 7 when you click the Show Desktop button all of my note's windows get minimized and without a taskbar icon, it's not easy to get them back (at least not for a normal user) & I'm looking for a way to either right after the windows minimize I just have them all show again or if I can skip the minimizing message in the wndproc altogether that'd be great.

I've put together a test app that'll show the messages in a listbox for the form, but I'm not sure how to go about skipping sending the message to the form's base class. Here's a snippet, listMessages is the listbox on the form:

Private Const WmSize As Integer = 5
Private Const SizeRestored As Integer = 0
Private Const SizeMinimized As Integer = 1

[code]....

View 14 Replies

Forms :: Prevent A Form To Open Twice?

Aug 23, 2011

I am using MDI forms and I would like when a button is clicked, if the form is already open. it just puts it on top instead of opening the same form again.

View 2 Replies

Forms :: Prevent Colon In Textbox?

Aug 18, 2010

The below code allows me to prevent a textbox to only allow numerics, backspace. I would also like to have the textbox to accept ":", but struggling to find the correct way to do this. Could anyone advise? Below code is in the Keypress event.

If Not Char.IsDigit(e.KeyChar) Then
If Not e.KeyChar = vbBack Then
?????????????
End If
End If

View 2 Replies

Forms :: Prevent Browser From Opening New IE Windows?

May 19, 2010

I am making a webbrowser,how to prevent my browser from opening new IE windows. Because what happens is, there are some links that will open new windows and therefore IE comes in place because it is set as default windows browser which I really don't want because my browser looks really bad if it opens links in another webbrowser.I want it to be just a basic browser, it has only one window, and it should navigate within that window. This is because the browser is integrated in a bigger application only for some website applications that are related to this main application.I am using VB.net 2008 Express Edition?

View 9 Replies

Forms :: Prevent Duplicate RECORDS Datagridview?

Feb 7, 2009

how to prevent duplicate RECORDS in datagridview cell vb.net

View 2 Replies

Forms :: Prevent FrmMain / FrmBundleSearch From Stacking In Taskbar?

Jul 29, 2010

I have a main form called frmMain from which all other forms and actions are launched. In the menu bar on frmMain there is a text box where the user can enter an inventory item number. This shows a new instance of frmBundleSearch. This frmBundleSearch may get multiple new instances opened at a time. What I would like to see is the frmMain in the taskbar separate from the frmBundleSearch when it has enough open instances to begin stacking in the taskbar. Right now, when I debug, when the taskbar starts stacking the application's forms, all of them are in the same stack, so right-click and "Close All" nukes the whole app. Is it possible to keep them separated?

View 6 Replies

Prevent AutoPostback From Clearing Entered Data From Forms

Jul 6, 2011

Background: I have an web form that autpostbacks a list of bundles to a listbox based on the carriers selected. When Postback happens, all user entered data is cleared. How do I prevent the AutoPostback function from clearing entered data from the forms? [code]

View 1 Replies

Forms :: Prevent User Not To Leave Empty Word In Text Box?

Sep 9, 2011

what is code i should use if i want to prevent user not to leave empty word in text box after user click save button.Oh ya, i am using visual studio 2005, databse sql 2005 .Here is my code

Private Sub btnregister_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnregister.Click
If MsgBox(" Are You Confirm", MsgBoxStyle.YesNo) = vbYes Then

[Code].....

View 1 Replies

Add Borders To Controls?

Jan 7, 2010

is system.windows.controls namespace only for silverlight, or is there a vb version that i can already use?

or is writing our own border class the only way to add borders to controls? (borders with colors i mean)

View 9 Replies

Draw Borders Around Rtb?

Aug 3, 2009

I want to draw borders around rtb. I am using this code but it draws border at top and left side of rtb only and also I cant type anything i rtb after drawing border. Is there another way of doing this?

[code]...

View 3 Replies

Get Rid Of Borders In Image?

Dec 8, 2009

Currently I'm working on a image based project. These are scanned forms like subscription based. The subscriber should fill his info. in to the grids (boxes) given in the form.

What i need to do is, just i want to remove those grids without affecting the handwritten info.

View 2 Replies

Cmd.exe: Removing Titlebar And Borders?

Jan 30, 2009

Having opened cmd.exe by using a process, how can I now open it without a Titlebar or borders?

hrivate Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim p As New System.Diagnostics.ProcessStartInfo
p.FileName = "cmd"
proc.StartInfo = p
proc.Start()
End Sub

View 1 Replies

ASP.NET Masterpage CSS Background Image Borders?

May 30, 2012

For my masterpage, I embedded an image on HTML DIV. Background image did appear, but with 4 white border-like surrounding my image, where I didn't apply any.

<head runat="server">
<title>Untitled Page</title>
<asp:ContentPlaceHolder id="head" runat="server">

[Code].....

View 1 Replies

Draw Borders On An Excel Sheet?

Jul 27, 2010

When trying to draw borders on an excel sheet from vb.net im getting an error on this line

oSheet.Cells(16, k).BorderAround(Excel.XlLineStyle.xlContinuous)

its giving me an error for "XlLineStyle" saying it cannot find it within "Excel"... if i use the auto complete its not there either ie.. oSheet.Cells(16, k).BorderAround(Excel. and there is no XlLineStyle in the dropdown for autocomplete....

i have the microsoft office and microsoft excel references added, and i do have values and such populationg into excel from vb.net ...so some of it is working.... do i need to somehow define XlLineStyle for vb?

View 1 Replies

Remove The Pink Borders From The Text?

Aug 19, 2011

how do i remove the pink borders from the text? see attachment

i set the form to have transparency with pink, then changed background on the label to pink, but it leaves pink around the letters

View 12 Replies

Resize Form Without Window Borders?

Apr 14, 2009

I have a form which has no window borders, but I still want to be able to resize the window? How might i achieve this? Even just a few options, like 'small' 'medium' and 'large' size would be fine if it cant be normally resized.

View 5 Replies

.net - Remove Borders From Cells In A Range In Excel?

Aug 7, 2011

Aim to Achieve: To get rid of borders if any in the cells of range. I have :

[Code]...

View 2 Replies

Controls Overlapping Form Borders/title Bar?

Jun 5, 2010

I'm making a windows forms application, and I would like to know how to get a control to be on top of the titlebar/control box where the window title is displayed similar to the save icon on the Win7 Paint program or the tabs for Google Chrome.

View 1 Replies

Get Aero Glass On A Windows Form Without Borders?

Dec 12, 2010

I'm trying to have Aero Glass look in my forms in VB.NET 2010 app with DWM API, but as function call suggests, it extends look of Frame to the client area, and if form has no border, nothing will happen and form will become invisible. So, can I get Aero glass in a form without any border.... ??

View 1 Replies

Interface And Graphics :: Moving A Form Without Borders?

Aug 24, 2008

I've got a form with no borders, and I am wondering how a user would be able to move this form around. I would like it to be moved the same way a form would move by left-clicking and holding the top border. I know that's a little vague, so if you need any more info feel free to ask...

View 1 Replies

VB 2008 - Image Keeps Moving Out The Borders And Disappear

Apr 23, 2011

I have created a new project in visual basic and imported a photo in now i want to make the image move inside and I did that the problem is that the image keeps moving out the borders and disappear I want to make it stop how I should do that?

[Code]...

View 2 Replies

VS 2008 Move A Control By Selecting Its Borders?

Nov 27, 2009

how to move a textbox or any control by selecting its borders like in ms publisher 2007 and creating an application like publisher

View 3 Replies

Printing A Windows Form Without Title Bars And Borders

Jan 6, 2009

I have a windows application that I have created using Visual Basic 2005. I am a new user and have learned a few things, but quite an amateur! I need to printout a windows form but I do not want the form to have menu bars or borders printed. The windows form contains the data that I have updated using a Sequel Server 2005 DataBase. The form needs to be printed by clicking a Print Form Button on the form.Is this possible with VB 2005. i noticed a PowerPacks out there, but when I downloaded the tab does not appear on the VB 2005 Express Edition I am using.

View 1 Replies

Interface And Graphics :: Make The Contents Of A Form Expand Or Retract In Response To Moving Its Borders By Grabbing Them With The Mouse?

Jan 27, 2011

I have been trying to discover how to make the contents of a form expand or retract in response to moving its borders by grabbing them with the mouse, or by use of the 'Maximise' or 'Restore Down' controls.The explanation in �Help� concerning TableLayoutPanel, Panel, Anchor and Auto size doesn�t help much, especially as it I can�t get it to work.

View 7 Replies

Irregular Shaped Form With No Borders Moving Across The Screen Until From Within The Loop The Form Closes?

May 26, 2012

I tried it every way I can think off, but nothing can stop it .

View 7 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved