Default Form Settings?
Mar 22, 2011For instance every new project i find my self setting the same font/size, Form1 Name, form settings, form regions, modifiers etc
View 1 RepliesFor instance every new project i find my self setting the same font/size, Form1 Name, form settings, form regions, modifiers etc
View 1 RepliesI had a quick google nothing come up.For instance every new project i find my self setting the same font/size, Form1 Name, form settings, form regions,modifiers etc
View 2 RepliesI need to print the contents of 3 textboxs to default printer. what examples I have found dont seem to work. I was trying the documentprint1 component as i thought it would be easy but cant figure out how to tell it what to print the second part is to print a variable (string) to the printer as well.no need for user to select just straight to default printer with its default settings
View 1 RepliesI recently made an application which have some settings one of them a saving path
I want to make check if the saving path settings is available or not (drive)
If not so it got a default value which is application path
I tried to Change the default settings in the My.Settings by writing "Application.startuppath"But the application accept it as a string is there any way do dodge this problem?
My Program changes it's My.settings to default , it looses the Location Where it is saved This only happens when i move to a new area But if i take a new builded exe and put it in same Dir of old exe then It Remembers old Settings?
View 7 RepliesI created a mail sending software. The problem is it cant get the default SMTP settings of a machine. How to do that in visual basic 2005 (VB.Net 2).I tried to parse it from outlook.But failed. Again, some other software can get it without outlook. So, i want to know the way of getting this settings.
View 3 RepliesA Windows service written in VB.NET is using the My.Settings namespace for simplicity. There are only three settings to read, and these are read within the constructor of the ServiceLauncher.
I am attempting to install the service as such:
installutil GID.ServiceLauncher.exe
And this is successful, however the config settings it is using are not the ones within the GID.ServiceLauncher.exe.config file, instead it is using the ones baked into the app as Default Settings within Settings.Designer.vb (marked with DefaultSettingValueAttribute). [The questionable wisdom of Microsoft not allowing a developer to ignore default settings is another question entirely].
How can I further diagnose this issue, and maybe force a reload of settings? I tried calling My.Settings.Default.Reload, however this did nothing. All settings are application settings, and only differ by "value" from those in the auto generated file.
I have successfully attached the debugger using System.Diagnostics.Debugger.Launch() and true enough, the settings are still the default settings.
In anticipation of the question, the background: The reason for requiring configuration settings is because this is a very straightforward service that simply executes an exe; and this exe is in configurable location. There are other reasons also, such as I wish to have the service name configurable without recompiling.
I am practicing on how to print from vb.net (2008) i was able to print my text, however I am having hard time changing default page settings.When the script loads up it thinks my default printer is my 8x11 printer and adjusts the label for that. however I am using a small label printer and labels are very small like 1x2inch. After I hit print button I can get the printer dialog box up change the prinet however because margins are wrong, my print out is unaligned. I like to change my default printer at form load step.
View 1 RepliesI am am having some problems with using My.Settings. I have saved some strings with My.Settings.Save() and am trying to set the strings back to its default value. I have tried using My.Settings.Reload() but it does not do anything. What is the best way to set the strings back to its default value that I have set it to? I have looked around for this question but could not understand what to do to fix the problem. I have gone to msdn.microsoft.com but could not find any good information, only this[URL]..
View 7 RepliesUsing VB2008 Express and I have a group box and in Propities|application Settings I have the backcolour set so that it is saved when the program closes. I have noticed in the "Settings. settings" file it has the default colours, but how do I get them?
<Setting Name="GroupBox1" Type="System.Drawing.Color" Scope="User">
<Value Profile="(Default)">235, 235, 235</Value>
</Setting>
My deployment of upgrades to an application written in C# (.NET 3.0) consist of simply replacing an older .exe with the new one. Because that older version can currently be used by some customers, I simply rename the old version to blahblah.exe.old and copy the new one to the same folder. When the user opens up the application again, the new one loads up.
The problem is, every time I deploy a new version, the user scope settings are always reverted back to the default values.
I have a label printer with the driver loaded with the settings in the driver set I can print the exact label that I want, I have the problem that I need to set the default settings in the driver when the software starts. there are 6 of these printers and the only problem we have found is that different operators like to change the settings.
What I need to do is to set the following commands in the driver so each time the system is started (daily) it loads the settings and works properly.
I need to set
Custom Commands Text, Start, Parsed Text
In the Advanced Setup, turn on use printer settings
Other settings would be usfull but as I cannot set these I do not think I will be able to set others.
I can currently set some of the commands eg,
DefaultPageSettings.PrinterSettings.Copies=2
How can I obtain the default language settings of the computer using vb.net code?
View 1 Repliesi am making a revolutionary web browser called bolt and i have nearly finished it!
I would like to add settings but the problem is that when i restart the web browser settings revert to default i tought about saving them into an ini or dat file called setting
How do I reset My.Settings at run time to the initial default values. I want to do this after the app has been running and the user may have save changed settings. The intention is to reset evering to 'factory defaults' as opposed to the last saved value as done by 'settings.reload'.For example in the property below , I want to restore to the value to '90' as given in the default value. I want to do this for all settings.[code]...
View 4 Replieshow to change the default path of settings file for the application when installing??and where I need to change in application so that the application takes this file as setting file for itself (means it do not search in default location )
View 4 RepliesMY understanding is like this, for the "website type" of projects:for VB, the default setting for the namespaces and the default setting for references are both stored in C:WindowsMicrosoft.NetFrameworkV4.0.30319ConfigWeb.config.
but C# does not seem to use this global web.config file to store its default namespaces and references settings. One evidence is that you see a lot of "using ..." statements at the top of all C# files whereas you don't see many "imports ..." statements at the top of all VB files. So C# stores the namespace settings in individual .cs files, but where does C# store the reference settings then? Or the C# compiler knows all the reference without having to store it somewhere?
So I was wondering if anyone has done their own Forms (inheriting windows form and editing the properties) and if so, what your finished result was. And, if you are willing to post a screenshot of your finished result, that would be sweet! Trying to get some ideas of what can be accomplished with customizing the default form.
View 1 Replies[Code] I want like to check if a file exist on main form, if not: force open settings form. And then when the user is closing the form with exit button = check if the file exist again. If it doesn't exist, close application. It's a huge application and I need optimized on most parts. Also, the settings form is asking the closing question two times.
View 1 RepliesI want to load a child form which is a login form by default when the parent form is loaded.Right now when I click new file on the toolbar of the parent form, then only the login form is loaded but i want it be loaded by default without clicking anything.
View 10 RepliesI've been looking all over the internet, and I couldn't find any decent answers. Obviously, two things to know:1) I'm using VB.2) The Forms are all FULL SCREEN, with the code
Me.FormBorderStyle = Windows.Forms.FormBorderStyle.None
Me.WindowState = FormWindowState.Maximized
Me.TopMost = True
[code]....
i have the following code sliding from the bottom of the main form position to the middle of the main form.
main form
Dim Viewform2 As New Form2
Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Load
[Code].....
i have the following code sliding from the bottom of the main form position to the middle of the main form.
main form Dim Viewform2 As New Form2
[Code]...
no code, just a form thats width 292 and height 266 This code works but its very choppy when the slider form slides up. Also, i am unable to get the opacity correct as well where it fades in and then out when it leaves.
A) pre-load a form so as to prevent lag/loading when the form is first opened?
View 6 RepliesHow do I set form number four as the default form that will run when I press on f5 in visual studio 2008. Because form 1 will always be the first to start
View 2 RepliesI want to find a way to make a specific button, the form's default button,I.e. the button that is highlighted when the form opens for the first time. I tried the AcceptButton property but when I run the program, that does not work.
View 1 RepliesI'm working on some project for Windows Mobile (Pocket PC 2003).And, i can't find AcceptButton property for Form object.how can I set default button property for Form in VB.NET project for Windows Mobile.And also CancelButton.
View 5 Repliesthere is The (Name) property, which represents the name of the Form class.This property is used within the namespace to uniquely identify the class that the Form is an instance of and, in the case of Visual Basic, is used to access the default instance of the form.
Now where this Default Instance come from, why can't C# have a equivalent method to this.Also for example to show a form in C# we do something like this:
//Only method
Form1 frm = new Form1();
frm.Show();
But in VB.Net we have both ways to do it:
//'First common method (used slash because editor wouldn't format it properly)
Form1.Show();
//'Second method
Dim frm as New Form1();
frm.Show();
1) My question comes from this first method. What is this Form1, is it an instance of Form1 or the Form1 class itself. Now as i mentioned above the Form name is the Default instance in VB.Net. But we also know that Form1 is a class defined in Designer so how can the names be same for both the Instance and class name. If Form1 is Class then there is no (StaticShared) method named Show().So where does this method come from.
2) What difference they have in the generated IL
3) And finally why C# can't have an equivalent of this.
I recently created a program that used asplash screen, however i later decided to use a form as my splash screen instead - how do i set the the form to appear first rather than the any others?
View 2 RepliesI have created a form to similate the use of a messagebox. The main reason for creating it is so I can specify an "action"button on it. I.e., instead of just offering Yes or No to the question "Are you sure you want to remove the record?", I can have an "action" button which says "Remove Record" and a No button.
The problem I am having is that I cannot get the No button to be the default button when I do form.showdialog. Instead the action button is the default button. At design time I set the No button as the AcceptButton. I also set it in the code, which I realize I should not have to do. Then I set Focus on the No button. I do the doevents just to be sure the code has finished manipulating the buttons.
[Code]...