MsgBox(My.Settings.version.ToString)

Jan 31, 2012

why is it that in the properties i have set version to 1.2 as a decimal but when i call

MsgBox(My.Settings.version.ToString)

i get shown "1"

View 3 Replies


ADVERTISEMENT

CType(TabControl1.SelectedTab.Controls.Item(0), WebBrowser).Navigate(My.Settings.homepage.ToString)

Nov 18, 2009

This gives me an error.CType(TabControl1.SelectedTab.Controls.Item(0), WebBrowser).Navigate(My.Settings.homepage.ToString)

View 4 Replies

Why Does My.Application.Info.Version.ToString Always Returns "1.0.0.0"

Feb 27, 2011

The version in the Publish page of the project properties is set to 1.4.0.1, but My.Application.Info.Version.ToString returns "1.0.0.0"

View 7 Replies

Increase The Version On Application The Settings Seem To Reset?

Oct 14, 2010

Everytime I increase the version on my application the settings seem to reset. Is there a way for the application to keep using the same settings file no matter how many times increase the version?

View 1 Replies

VS 2010 Downloading New Version While Keeping Old Settings?

Aug 9, 2011

Let's say I'm trying to have a program that will check for a version.txt file online, and enable the user to download a new version of my .exe.Here is an example of how i get the new version. I apologize for the old syntax, but i just got out of VB6 and am still learning FileStream, etc. Inetconnection is just a function similar to Webclient.DownloadData.

DABytes = InetConnection(Pathy)
Targetfolder = Application.StartupPath & "DA.exe"
foldera = FreeFile()

[code].....

View 1 Replies

IDE :: Assembly Version, File Version And Publish Version In ClickOnce In VS 2008

Mar 31, 2009

How they relate and differ from each? What are the best practices for version control? Is there a primer about publish online? Or a good book?

And is it possible to make ClickOnce and a msi in one solution of VS 2008? If so, is there any conflict or pitfall?

BTW I am using VB if that makes any difference.

View 1 Replies

Difference Between ToString And ToString()?

Dec 16, 2010

1. What's the difference between ToString and ToString()? (i do know that ToString method is to cast numeric values to string but don't know how to get it to work)

2. Why do i need XML comment feature? is it necessary?

View 3 Replies

.net - Automatically "upgrade" User Settings From Previous Version Of App.config File?

Jul 29, 2009

Every time I compile my app and the version number changes (I have an auto-incrementing build number), I lose the user-configured app.config settings, since they're stored in the AppData folder for a specific version. Essentially, every release of my application starts from scratch as far as user settings go.

While this is a mild annoyance in development, it raises the question as I approach deployment/release - if I use the app.config to store my user settings, will the user's personalized settings be hosed every time they install a patch that changes the version number of my app? If so, is there an easy way to "upgrade" the settings from the previous release? I know that using HKCU in the registry is another option, but I like the ease of the My.Settings namespace, and I'd like to stay with app.config.

View 2 Replies

Msgbox Capabilities - Msgbox Cleared Without Having The User Do It Manually?

Nov 15, 2011

if its possible to have a msgbox cleared without having the user do it manually? what would be my best option here?

View 8 Replies

Code That Works In Excel Version 2003 Does Not Work In Version 2007

Oct 21, 2008

This code no longer works in ver 2007:' Obtain max resources available for Excel

[Code]...

View 3 Replies

Make Programs Use A Lower Version Of Net.framework Other Than The Newest Version 4 That Comes With VS2010?

Jun 10, 2010

Is there any way to make my programs use a lower version of net.framework other than the newest version 4 that comes with VS2010?I use my programs within a closed network and there isn't an easy way for me to install any software since I'm not the administrator.

View 3 Replies

Disable Button Depending On OS Version By Reading OS Version Via Registry?

Jul 29, 2009

I'm trying to add functionality to my application that will disable buttons and checkboxes depending on what version the OS is when the app is launched. I made a test app to test this but unfortunately I can not get it to work. Here is my code:

'OS Check
Dim osValue As Object
osValue =
My.Computer.Registry.GetValue("HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindows NTCurrent Version", "CurrentVersion", "5.2")

[Code]...

*Note - 5.2 is Windows 2003, 6.0 is Vista, 5.1 is Windows XP

View 1 Replies

VS 2008 Check Difference Between A Full Version And Unregistered Version?

Sep 1, 2010

I have created a license system for my application with MySql about half a year ago. What it would do is take the serial number and send it to my server if the key was correct it would return a 0 if its wrong the return value would be a 1.The problem was that when the serial number was entered correctly my program would create a "fake file" for example vb.dll in the system.And on run time my program would check for that vb.dll if the file exist it would skip my trial program and run the app as a full version. Half year later i think creating a "fake file" and checking for it on start up is extremely wrong and that's not very good security.How can i check the difference between a full version and unregistered version?

View 23 Replies

MsgBox("") - Unable To Popup Msgbox If Count=0

Jun 22, 2010

I am unable to popup msgbox if count=0. It will work only if i use MsgBox(""). I am unable to understand how it has anything to do with msgbox("")

Private Sub txtstaffID_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtstaffID.TextChanged
Dim conn As SqlClient.SqlConnection

[CODE]...

Both IF and Elseif code executes but the problem is the msgbox won't popup in both the cases( i.e when IF executes and when Elseif executes) unless and untill i have a msgbox("") before da.Fill(dt)

View 3 Replies

Show The First MsgBox If The NewEntryName.text - Show The Second MsgBox If Openfiledialog1 = Nothing

Jun 17, 2012

If NewEntryName.Text = "" And OpenFileDialog1.FileName = Nothing Then MsgBox("Please choose a name for your game.", vbExclamation) MsgBox("Please find your game.", vbExclamation) Else Button1.Text = NewEntryName.Text game1 = True Panel1.Visible = False End If

I want it to show the first MsgBox if the NewEntryName.text = "" and I want it to show the second MsgBox if openfiledialog1 = nothing... how do I do it?

View 1 Replies

How To Compare Against Application.info.version To See If It's Latest Version

Jun 24, 2010

I have a XML file with the latest application version number, I have this loaded into a variable, how can i compare this against the application.info.version to see if it's the latest version??

View 3 Replies

Compare Assembly Version With File Version?

Jun 3, 2012

I want my application to do something special :D.. jks

I just want it to compare assembly version to the file version something like this (btw i also want it if it is the same i want it to enable a button):

Private Sub StartSplash_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load
If Assembly Version = File Version Then

[Code].....

so how do i detect Assembly & File version numbers?

View 4 Replies

Set Publish Version To Overwrite Previous Version?

Jun 16, 2011

I would like my program to overwrite its previous version such that users don't have to uninstall the previous version before installing the new one.

I'm guessing it has something to do with setting Publish Version (Major, Minor, Build, Revision), Assembly Version or File Version.

View 3 Replies

My.Settings.Upgrade Stopped Preserving Settings After Visual Studio And Framework Were Upgraded?

Jan 13, 2011

The company has been using Visual Studio 2008 and .NET Framework 2.0 for approximately 2 years. During that time we released several versions (4.x.x) of our program to the public and were able to preserve the user's settings using My.Settings.Upgrade.During the past development cycle we upgraded the program to Visual Studio 2010 and .NET Framework 4.0 and changed the version to 5.x.x. Now, when a user upgrades from 4.x.x to 5.x.x they lose all of their settings.However, in all upgrades after that point (ie 5.0 to 5.1) all the user's settings are once again preserved.I checked C:Documents and Settings<USER_NAME>Local SettingsApplication DataCompanyName and it contains two directories:

ApplicationName_Url_aaa ApplicationName_Url_bbb

where aaa and bbb are 32 character strings. All of the user.config files for the 4.x.x releases can be found in the ApplicationName_ Url_aaa directory. All of the user.config files for the 5.x.x releases can be found in the ApplicationName_Url_bbb directory.Based on this information it seems like something changed when we converted our program to VS2010 and Framework4 that is now causing a different 32 character string to be generated. However, we have been unable to track it down.

View 9 Replies

Unable To Make Some Settings And Load The Result Of The Settings Via LinQ Into The Grid Of The UscStat?

Jan 3, 2012

I have the following structure:OLD: frmMain (WinForm)uscStat (UserControl with Grid) In frmMain I'm able to make some settings and load the result of the settings via LinQ into the Grid of the uscStat.

[Code]...

View 1 Replies

Application.Settings VB 2005 - Save Arrays Using The Settings System Object

Jan 14, 2009

I just wondered if you can or can't save arrays using the settings system object. There seems to be no way of entering it at designtime. It seems implied you cannot create new user settings.subobjects at runtime. I'm looking to find the easiest way to save a populated array of PictureBox's. If the only way is a self/custom made/managed .ini file then I need to know so i can start on that but I was hoping to use some of all this phaff in the new frameworks usefully.

View 3 Replies

ClickOnce Overwrites User Settings Settings .NET 2008 Cant Use Registry UAC Causes Error

Aug 5, 2009

I am rewritting my application to conform to ms standards. We used to save all settings to registry for user settings, servername, size and locations.so we are now saving them into My.Settings app.config the only problem is that each time there is an update clickonce will isntall the newupdate but now all settings are loist and user has to save everything all over again..

I am trying to follow the book here but it seems i keep getting stuck somewhere. registry has worked fine for years but i understand we must move on, but if stuff like this happens then i just wasted a long time converting all code to conform for it to not work..

View 1 Replies

How To Maintain Application Modified Settings In The Settings Files After A Program Update

Sep 8, 2009

Is there a way to maintain application modified Settings in the settings files after a program update? i.e. I have 10 or so values in the settings file and the users can modify them... when I send a program update they revert back to what I initially programmed them to be.

View 3 Replies

How To Create My Own .ToString

Nov 25, 2008

I have no idea how to do this, but I want to create a [I dont know what it is called] to allow me to convert a class property to another type.The I could use the following w/ the new type:

Dim stringPhoneNo as String = "(111)111-1111" Dim typePhoneNo as PhoneNumber = stringPhoneNo.ToPhoneNumber()

View 1 Replies

IDE :: ToString() And .NET Debugger?

Oct 8, 2009

When a custom class overrides the ToString() method, the C# IDE uses this function to display the class in the debug mode(tooltips, watcher etc) Does the VB.NET the same? I have impression that overriding ToString() method does change nothing. I mean, in the watcher I see Name myBusinessObjectInsnace Value {MyNamespace.myBusinessObjectInsnaceType}

View 4 Replies

Why Can't Project ToString() In VB

Jan 10, 2011

If you try to compile the query below in Visual Basic .NET, it fails. From x In {1, 2} Select x.ToString() The error given by the compiler is: Range variable name cannot match the name of a member of the 'Object' class. There is nothing wrong with the equivalent C# query, though: from x in new[]{1, 2} select x.ToString()

This does not happen with the ToString overload that takes a format (it is a member of Int32, not Object). It does happen with other members of Object, as long as they don't take an argument: with GetType and GetHashCode it fails; with Equals(object) it compiles.

View 3 Replies

Compare Version Between Host And Client Download The File If Compare Version Not Same In .net?

May 20, 2011

they need to make some compare version between host version and client version.. and each 1 version different will download the file to the client..[URL]..with both example, how can i make a program in VB.NET just like i said just now?

View 15 Replies

Software Created In An Older Framework Version Won't Run On A Newer Framework Version?

Apr 7, 2009

How come software created in an older framework version won't run on a newer framework version? Actually whenever i try to run some old specific software having .net 3.5 framework on my PC they show they needs .net framwork 1.1 . What a bad thing?My newer version of Photoshop ans Ms office open all lower version files.

View 6 Replies

Application.restart After My.settings.save Doesn't Load The New Settings

Feb 8, 2008

i have created a user setting named 'setmeup' as string, scope = user, value = "magical meow meow!".in my code i access it and assign it a new value like this...my.settings.setmeup = "howdy cowboy!"my.settings.save()application.restart()when the application restarts, i expect the my.settings.setmeup = "howdy cowboy!" but when i check its contents its still "magical meow meow!".but when i use application.exit() instead of application.restart() and manually restart the program, my.settings.setmeup = "howdy cowboy!" which is correct.what must i do? i want to use application.restart() because i don't want the users to double-click the icon again to start the program. i want the program to restart automatically.

View 2 Replies

VS 2010 - My.Settings - Can't Find File Which Reflects Changes To User Settings

Apr 15, 2011

1. I can't find the file which reflects changes to user settings. This might be because I just can't find it (I can see a bunch of user.config files but they are all empty - weird!), or...

2. I'm not actually saving them when I think I am.

Regarding 2. - do I need to invoke

Is this all I need? And if so, why are my user.configs empty?

View 1 Replies







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