Settings With Child Windows?

May 7, 2010

I have a form that runs completely full screen. The form has MDI child windows. My issue is for some reason whenever i try to use a setting in a child window the program freezes up and i have to end it with the task manager. For instance if i add a string to a string collection when the child form opens like i would normally do if it wasn't a child form the form will open then the program will freeze. Am i doing something wrong or is there any way to get this to work?

View 7 Replies


ADVERTISEMENT

Storing Settings For A .NET Windows Service: Service Property Settings, Serialization?

Aug 5, 2010

I am working on a .NET Windows Service where I am trying to store settings that will be used when the service is started and while it is running. I have searched through posts on SO and found that using the Settings in the properties of the project is great for use with console and winforms applications. However, Google and SO are silent when it pertains to storing these settings with a windows service.

View 4 Replies

Interface And Graphics :: MDI Parent / Child - Child To Check To See If It Is The Last Child Object Before Closing

Feb 18, 2011

Im working with MDI parent/child objects. when closing the child objects i need the child to check to see if it is the last child object before closing. i couldn't find anything on google, maybe im searching for the wrong thing.

View 2 Replies

Windows :: Way To Save Settings?

Jun 13, 2011

I am creating a program which launches a game server. I have combobox in which the user can enter the ip, map, etc, of the game. How can I save what they have entered so that the next time they are already there so they don't have to re-enter them.

View 2 Replies

.net - Gotfocus() Mdi Child Windows Winforms?

Jul 13, 2010

I have a mdi and 3 child windows.The program start with an empty mdi.With a menu you can open each child window once.When i open for example 2 windows. And close the one on top. The one left(the window under the one i closed) should get focus. How can i manage this?

why i need this?each childwindow has a event gotFocus. Depending on the focus my menu should change.

Private Sub frmMain_gotFocus(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.GotFocus

View 2 Replies

Check For Any Open MDI Child Windows

Nov 2, 2009

I have an MDI parent within which are contained several mdi child windows. when I close the MDI parent window, I need to check for any open MDI child windows (they may not be in the foreground) and check if they need saving. the saving part I'm ok on, but I can't get a stable system for checking if there are any open MDI children, when I click the button that closes the application. any suggestions?

View 2 Replies

Tab Control To Handle Child Windows In An MDI?

Nov 6, 2009

My application uses an MDI form, and there are instances where the end user will need multiple child windows open at a time. I need an easy way for the user to switch between windows, which made me think of using tabs kinda like Firefox, or like the tabs in the Visual Studio IDE up at the top where you can switch between open forms and code files.

I'm curious if there is a control in .NET that will already do this? I would rather not re-invent the wheel if I can help it. Google has failed me thus far.

View 5 Replies

Control Windows Audio-Settings?

Dec 19, 2009

I have got some code and after some slight modiications now works fully for what i need - but only on XP.

However, my problem is when the software is run on Vista. My software doesn't seem to be able to control any of the Mixer Lines it's supposed to, but will randomly change the Mute/Volume level setting on the 'Application Audio' setting in the Mixer. Can anybody point me in the right direction to change settings on a Vista machine? My Module is attached below. To use in a form you must use the line: modMixer.OpenMixer() prior to any further commands. For example:

1. modMixer.OpenMixer()
2. modMixer.MuteLineInVolume = True

View 2 Replies

Loading Settings From The Windows Registry

Jun 22, 2010

I would be grateful if you helped me. I've built a text editing application and I would like it to load values/user settings from the Windows Registry. Here's my code but it is somehow wrong (I believe it whatsoever has to do with wrong syntax but it could be something else);

[Code]...

View 8 Replies

Location Of Windows Service My.Settings

Sep 22, 2011

I have a VB.NET solution built in Visual Studio 2010. It consists of a class project, a service, and a setup project. I have successfully created a setup, and run the setup from the "Release" directory of the setup project (outside of Visual Studio). It installed the service (on the same machine as where the project is), and the service seems to be running fine. The service executable is installed in a directory under c:program files (x86) along with some DLL's it is dependent of. The service (actually the class project I mentioned above) uses some settings from My.Settings. As far as I know these settings are stored in a app.config file in the project directory, as well as in a settings.settings file in the My Project directory under the project directory.

Neither of these files are installed by the installer. But the service can only run if it can read the settings. So where does my service get these settings from? To check if it still reads the settings from the VS project directory, I have temporarily renamed that directory, but that didn't affect the correct operation of the service.

View 3 Replies

Rewriting The Settings In Windows Forms?

Dec 25, 2011

I have set the name of my Form text in the application settings and I need to rewrite it. Is it possible as it is showing me that it is only a readonly.I know that we can simply change it by using me.text="" But I have a problem in my application as I have the below code where On every time the form loads it is erasing the text.

Protected Overrides Sub OnLayout(ByVal e As System.Windows.Forms.LayoutEventArgs)
MyBase.OnLayout(e)
'Me.Text = CStr(Val(Me.Text) + 1)
FillList()

[code]....

View 2 Replies

Update The Mms Settings On A Windows 7 Phone?

Jun 30, 2011

how to update the mms settings via code on a windows 7 phone. I have seen some apps out there that update your settings but those were for the HD7 phone.

View 1 Replies

VB Change Windows Folder Settings?

May 3, 2009

Is it possible to make VB 2008 go into Windows folder options and tick the "Display the full address in address bar" (under the view tab) ?

View 2 Replies

.net - Launching A Child Process And The Windows 7 Taskbar

Sep 30, 2010

We have an application that self-updates using a Laucher.exe process which copies down new App.exe and DLLs from a server then runs them in a separate process. This was all working very well until the arrival of the Windows 7 taskbar... Problem is in Windows 7, if the user pins the Launcher.exe to the task bar (by right-clicking the shortcut to Launcher.exe) then this happens... When you start the program the "pinned" taskbar icon momentarily gets focus while the launcher is running but then a totally separate new icon appears when App.exe is running. If the user then decides to right click the icon from the running App.exe and pin that to the taskbar, they bypass the application update part of the process.

[Code]...

View 1 Replies

Forms :: Displaying Child Windows Without Title Bar?

Feb 28, 2011

I try to create a MDI child form that should be resizable but it should not have a title bar visible. Is it possible? Or is there a better method to display child windows within a main form than displaying other forms. In this case the panel would be visually better than the form but the panel cannot be set to act as a child like a form.

View 3 Replies

Configure Service Settings In Windows 7 Programmatically?

Dec 30, 2010

If you edit a service in Windows 7 and go to the Log On Tab, there is an option to "Allow service to interact with desktop". I'm trying to ensure that it is set for a certain service using VB.NET.

Note: Doing this during the install of a program is not an option. It has to be done at run time.

View 2 Replies

VS 2008 Settings Write Permission On Windows 7?

Jan 22, 2011

when i tried to saving value to My.Settings its just work fine on windows xp. but when i ran on windows 7, VS2008 told me to change permission on My.Setting to writeable.

View 4 Replies

VS 2008 Where To Store Settings For Windows Service

May 13, 2009

I've written a windows service in VB.NET 2.0 and the service needs to know a few file paths and other settings when it starts in order to be able to do what its supposed to do. These are settings that users of my service need to be able to configure themselves so I cant hard code them in.At the moment I just have the service look for a file named Config.INI in the same directory that it is being run from and if this file exists it attempts to read the settings in from there... this works perfectly, but it just feels a bit clunky and old. If it was a normal windows app I would store the settings in an XML file in the user's application data folder or something but as this is a Service then thats not possible as it is not run by any one user (well technically it is, the Local System account). I then thought about using the registry but I seem to recall people saying that you should avoid storing settings in the registry if you can really, especially with the new security in Vista and Server 2008.

View 6 Replies

Displaying Windows Form As A Child Of User Control?

May 30, 2009

I have a User control having two panels. one at the top border and second at the bottom border of the control.

The panels contain some buttons on the click of which i want to display some forms. But I want thoes forms to act like children of the user control i.e. like MDi Parent - Child (here parent being User control and child being the new forms which would be opening). Unfortunately i've not been able to find any way of do'in so.

View 2 Replies

Have One Window (without Child-windows) That Can Have Multiple Content-sets?

May 5, 2011

I would like to have one Window (without child-windows) that can have multiple content-sets.For example: I want to have a set of lables and textboxes to save information for an object (like a person). This person has several sub-items. I want to have a set of lables and textboxes for these sub-items in my mainform too. But I don't want the lables- and textboxes-set of these two objects to be both visible at the same time.

View 2 Replies

Javascript :: Open Multiple Child Windows And Keep Track Of Them All?

Aug 18, 2010

So here is the situation. I have a button on one of my extjs pages. This button opens a child window as a pop-up. This child window has a .method attribute as well as a .ref attribute, and also a .id. I need the functionality to open another window with the SAME template, everytime I click that button.I was thinking set the childwindow .method property to something like 'getWindow', and the .ref to something like 'newWindow' and then create a javascript function on the backend to look something like this:

var myArray = [];
var count = 0;
function getWindow() {

[code].....

View 2 Replies

Parent Child Relation In Gridview (windows Application)?

Oct 12, 2009

I am developing a small windows application(vb.net).In that i want to have parent child relations in a gridview control. There are lots of examples available on this, but they are using two gridviews for that, but in my case i want the relation to be displayed in a single gridview control itself. When they click the + sign immediate row should populate child rows with it's own header(ie child rows has it's own header which is different from parent header). In my case parent row has 2 columns and child row has 4 columns.

View 2 Replies

VS 2008 : Retrieve Child Windows So Click A Button?

May 6, 2010

how to retrieve child windows so I can click a button.The APIs I am using to get child windows are these:

ParentWindow:

VB.NET
Private Declare Function FindWindow _ Lib "user32" _ Alias "FindWindowA" ( _ ByVal lpClassName As String, _ ByVal lpWindowName As String) _ As Integer

[code]....

Which seems even more loosely defined. I have no idea how to actually use that function with EnumChildWindows or how its parameters are supposed to be used.The description says it's used to enumerate ChildWindows, but isn't that the whole point of the EnumChildWindows API?

View 11 Replies

C# - Finding Current Windows Sleep Mode Settings

Oct 14, 2011

I would like to find out what the current windows sleep mode setting is i.e. Is it switched on and what is the timer period. My preferences (in order) are:
.NET Managed Code
API
Read Registry Value

View 1 Replies

Display Text Name Of Child Instead Of Parent On Windows Mobile Application

May 24, 2012

I have a vb.net application that uses ShowDialog() to open child screens.

Long story short, I had issues with focusing the control if I opened IE on top of my program without minimizing the program. Once I reactivated my program and closed a child window, IE would show again instead of my program. I fixed this by setting the owner of my form.

Now I have another issue. After setting the owner, the parent (text) name of my form is now being shown at the top of the application when a child screen is open instead of the parent name. How can I fix this to show only the child's text form name when a child screen is open?

View 1 Replies

Show Child Windows Form In The Status Bar Of The Parent Window?

Oct 13, 2010

In my project i have one parent window form with one menu bar and one status bar. that is what i want is:when i show the child form to see in the status ber an icon relative to the child window.How i can do that?And if that can't be how i can see an icon in a task bar?

View 1 Replies

Use Window Form App To Manage Windows Service Apps My.settings?

Aug 26, 2009

I have a solution with two applications in it. One is a windows form application that I want to use to set and manage a windows SERVICE application app settings.

For example. The form has the database connection string on it, when updated. The windows service application settings are updated.. I can get it to work for the windows application, but I need to jump boundries to the other application( Windows Service) and update the app settings there.

View 5 Replies

VS 2008 No User Settings When App Starts At Windows Start Using Run Key In Registry?

Aug 10, 2010

I know similar questions have been asked/answered, but after looking across the net for 2 days I still haven't really seen an answer to the following question.rst, background info: My application starts at windows start as a user checkbox option (by using the run key in the registry.) I don't know if it is usual or not, but when the app auto starts on windows start, no saved user settings show up on the form (but they do when starting the program manually after windows is already running). I've tried both HKEY_CURRENT_USER and HKEY_LOCAL_MACHINE. In case anyone needs or wants it, my code for accessing the registry is:

Dim Reg As Object
Reg = CreateObject("Wscript.shell")
Reg.RegWrite("HKEY_CURRENT_USERSOFTWAREMICROSOFTWINDOWSCURRENTVERSIONRUN" &

[code].....

View 4 Replies

Windows Services - Configure App.config Application Settings During MSI Install .net?

Feb 1, 2012

I am trying to create an msi install for my windows service. The reason for creating an msi is that the intended users want to be able to quickly install the service with as-little intervention as possible.

i can get the service to install as a msi but i have a variable within my code that i need the user to define when the msi is being installed. the variable i require from the user is the file path which they want the xml files my service creates to be located.

i thought i could configure the app.config application settings to contain the file path that the xml files should be written to. However i'm struggling to do this and im not to sure if its the best way to do it?

I have my setup project that contains my executable and has my textbox which will contain the one variable from the user.I have an installer class which contains my serviceinstaller and process installer. This is where im struggling to understand what i need to do next. Do i need to override the install method? The current code of my installer class was automatically generated and is as follows:

[Code]...

View 1 Replies

Windows Services - Configure App.config Application Settings During MSI Install?

Jul 14, 2011

windows services - Configure App.config Application Settings During MSI Install

View 3 Replies







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