Make A Windows Forms App Unresizable?
Mar 7, 2010how to make the windows app in vs 2008 unresizable?because when you launch the application and point and drag to its corners, the window grows.
View 3 Replieshow to make the windows app in vs 2008 unresizable?because when you launch the application and point and drag to its corners, the window grows.
View 3 RepliesI'm trying to create a child form that helps the user to enter data for a field in the parent form. I want this child form to be modal, but I don't know what I need to do to make this form modal. Perhaps there's a different type of item I need to use; if so,
View 2 RepliesIn my (VB.Net+VS2008) application, I want to make my windows form (splash) more responsive as there is some complex functionality is performing while loading splash form. Currently when any other application come in front of splash screen and then minimize then splash screen looses its proper visibility and showing some hang kind of state also.
I used Application.DoEvents(), but it doesnt work. I cant use background worker because it doesnt support UI related changes. i.e. Initializing some UI components on shown event of splash screen.
I like to know how to make the forms buttons and text and data... auto adjust when windows Maximize or minimaze..because when its big I can see everything fine and when I restore to a smaller window the buttons are on the bottom and cant see them... Basically I want everything to look in the same position whether its a small window or big or at least that it has scroolbars if I see it small.
View 2 RepliesI'm using VB 2010 and simply want to have a button on the form that says Minimize.I want the form to minimize to the task bar or the notification section .I've looked at other ideas, but the code is for prior versions of VB (2003 and 2005) and some for C #Could you please email me some sample code to handle this?
View 4 RepliesHow do you make a prime number generator in a windows forms application
View 2 RepliesI am trying to use values from form1 in my project, in form2, but Im not sure how to do it. I've tried
txtboxTotal = (Form1.vsbLength * Form1.vsbWidth) * Pattern
But I get: operator '*' is not defined for types 'System.Windows.Forms.VscrollBar' and 'Systems.Windows.Forms.VscrollBar.'
I have the code which checks if there is a selected tab
Private Function GetBrowser() As WebBrowser
If TabControl1.SelectedTab IsNot Nothing Then
For Each c As Control In TabControl1.SelectedTab.Controls
If TypeOf (c) Is WebBrowser Then
Return c
[Code]...
I have a panel with some controls in it (several textboxes, a slider, 2 buttons, and a small groupbox).. When I click a button, I want all of the textboxes within the panel to be readonly... So I have this code: [code] When I run it though, I get the following error:Unable to cast object of type 'System.Windows.Forms.Button' to type 'System.Windows.Forms.TextBox'.If I remove a button, it moves on to give me the same error but for a label..
View 4 RepliesI have a basic three form application. It doesn't seem to close after navigating through forms. If I were to open the application, and the main form is displayed. If I press the X button, the application closes fine(Goes from processes) If I were to open the application, and then navigate from the main form to another form using me.hide & form1.show, and press the red X on Form1, the application again, closes fine.
[Code]...
.NET developing and have a simple question, i've been stuck on this for a while and searched many forums first with no solution so i'm posting myself. In VB for excel i've used Screenupdating=false to disable the screen updating however now i'm creating a visual studio 2010 windows forms application and its not showing up as a property. Here's the code i've tried.
[Code]...
I have the requirement to create an application that has multiple front ends developed using Windows Forms, WPF, ASP and Compact Framework Mobile Forms.I would like to be able to create a series of obejct representing the business logic and have this logic accessible from the various front ends available. My first thought was to use remoting as I'd like to be able to pass the business objects back and forth between client and server but the compact framework doesn't support remoting and also transferring a full framework business object to a compact framework business object doesn't seem possible.My next thought was to use web services but again the passing of business objects seems to be very hard to accomplish. Without doing this I would have to create individual web methods for each business operation.
Finally my next option is to use sockets and write the whole client/server logic within some classes and expose them to the UI/Business layer. My only problem with this is it is not scaleable should the number of clients increase dramatically whereas using remoting or web services I can host the solution via ASP.Net.Does anybody have an ideas on the best way forward for this or even have any input on how they would write an application that required a windows form, wpf, asp website and mobile device GUI all of which want to use the same business logic?
I would like to know if its possible to start up a second windows forms inside the parent form. Ex: A button is pressed and a new form is showed. I would like to keep that new form inside the parent form, and have it not be able to go outside the parent form.
View 2 RepliesI am writing a program for my A-level coursework But for some reason I got this build error this has never occurred to me before, I have no idea why I can't use string for the name of my form.
View 8 Repliesa program and i need to have a button put a file into a folder, i know how the button works i already have it doing some other stuff. i just don't know the code to copy and past it to a folder.
View 1 RepliesWhen I add a new, empty form to my VB.NET VS9 project, the linenherits System.Windows.Forms.Formis missing.What am I doing wrong here?I thought it would be added automatically.I experienced that some thing get weird if this line is not there (Form_Load is not firing, I think).
View 3 RepliesI've successfully saved video files into SQL server as varbinary. Now, my problem is, how can I play those videos in Windows Media Player (embedded in my Windows Forms).
View 1 RepliesI'm porting code that I wrote for use in a Windows Forms application to a Windows Service, but for some reason, the code that worked in the Windows Forms application is now throwing errors in the Service
View 7 RepliesI am making a System Tray Application when i minimize my form its hide itself in the tray but whenever i click on the tray icon my form shows now when my form shows up i would like to disable my Background desktop same as CardSpace when its shows up.
View 1 RepliesI have a problem with scroll in a treeview in a Windows forms application (Framework version 3.5).
The strange thing about the problem is that on Windows XP, Windows 7 and Windows 2008 the scroll works as excepted, but in Windows Server 2003 SP2 the scrolling doesn't work. Enable/disable Visual Styles doesn't seem to make a difference on Server 2003.
Steps to reproduce the error:
1. Add a treeview to a form and add x nr of root items (and 1 sub item to each item).
2. Expand a number of nodes. The non-standard thing here is that we are changing the node integral height because we display a usercontrol with the treenode (See example of the code below).
3. When you scroll afterwards, you cannot scroll to the bottom node. The scrollbar is all the way down, but we are not seeing the last node.
Public Shared Sub SetNModeHeight(ByVal Node As TreeNode, ByVal IntegralHeight As Integer)
'Create instance of tvitemex structure.
[Code]....
I was playing a game recently and saw that they could use args in the shortcut, and I decided to try to impliment this into my application...so far, I got: (runs this sub on load)
Sub startup_args()
If Environment.GetCommandLineArgs.Contains("+game") Then
Dim path As Array = Environment.GetCommandLineArgs
[code]....
just to see what it returns, but the application crashes. I also tried path.tostring(), but that didn't work. When I did:
If Evnironment.GetCommandLineArgs.Contains("+game") Then
Dim path as string = Environment.GetCommandLineArgs.tostring
MsgBox(path)
[code]....
but that returned the value "SString.Array[]"...
What is the vb.net equivalent to accomplishing this?
static void Main()
{
frmCalcView view = new frmCalcView();
[code].....
My question is, am I able to share a business logic layer seemlessly between the two presentation layers or is there anything I need to watch out for. I'd really like to not have any duplication of business logic, so any advice would be more than welcome.
View 3 RepliesI noticed that adding a MenuStrip (from the Toolbox) to my form design doesn't yield a menu bar like many native Windows applications. Instead I get a menu bar like Visual Studio's own. None of the style settings for MenuStrip appear to mimic the much more common native menu bar.Is there a way to add a menu bar to my Windows Forms application that looks the same as the one you see in Notepad, Task Manager and others? (Preferably with the designer, but I wouldn't mind adding it programmatically either.)
View 3 Replieswill a VB 2010 (Windows Forms Project) run on the Windows 8 platform?
View 3 RepliesI am working on an assignment and just making my way all la de da like...suddenly I approach the end and I am rather happy since I then can start finals. This is where the problem arrises...This is what I am required to do... Create a Web user control that has text boxes and labels for inputting a person'sinformation. Integrate a DateTimePicker control in the web page for selecting dates. Create a procedure to calculate the number of days elapsed from the order date tothe estimated shipping date.I have the first part easily completed...no problems..Unfortunately the second part...the DateTimePicker control, since I am working on a web page, is not available to me...unless I have missed something but I can guarantee you it does not show up in the con
View 8 RepliesI have a progress bar on a Windows Form which displays the number of records as they are retrieved from the database.The problem I'm having is that the entire Form.Load() method seems to run prior to the form being displayed, which means all my code updating the progress bar is gone to waste.
View 4 RepliesIs there a way to basically merge a Windows Forms Application with a Windows Service Application and allow the passing of parameters on start up to determine if it should start the standard GUI or launch as a system service
View 4 RepliesHow do i make my button open a program and make it windows size?
View 6 RepliesI am creating an application and I am running 1280, 1024 Res and I want my application to be able to support any computer res. How can I do this if it is at all possible?
View 2 Replies