Answer Questions
RMeier0388 Simpler Coding?
Is there a simpler, more efficient way to code the toppings section, while still maintaining checkboxes I am trying to get away from the multiple If/ElseIf/Then statements, if possible. Thanks! Private Sub btnOrderTotal_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnOrderTotal.Click Dim pizzaCost As Single = 0 ' Base cost of pizza, based on size If radSmall.Checked = True Then pizzaCost += 12.99 ElseIf radMedium.Checked = True Then pizzaCost += 14.99 ElseIf radLarge.Checked = True Then pizzaCost += 16.99 Else MessageBox.Show("Please choose a pizza size.") End If ' Add on a ...Show All
flash.tato vista style gel buttons...
like I see in Windows Media Player 11 and elsewhere The play button and other controls are gorgeous running on XP. Are those commodity items yet I would love to make some custom forward/backward buttons and see the blue bleed out effect in my current controls in my vb.net winforms app. 1. Are they simply standard .bmp or some other format that can be easily added to an existing .net control such as a button, checkbox or radio button array 2. Are there tools that make this doable for the developer or is this still in the domain of a graphic artist or developer in the know I don't have the time, as is the usual case, for an immersion course in a graphics package such as Photoshop or Paint Shop Pro. Thanks, -Gre ...Show All
Bludysky Opacity Decreasing...
Hello, I've been trying to write code so that when the MouseLeave is triggered, the form's opacity decreases by 0.01 until it reaches 0.75. However, I found out through Debug.WriteLine() that even if the opacity is 0.75, it still continues until it reaches 0; also, I noticed in Debug.WriteLine() that if you subtract 0.01 from the form's opacity, you get inaccurate values, like 39.999999999. Why does this happen, and how can I correct it Thanks. Here's the relevenat codes: In TimerDecreasing in Tick event: me.opacity = me.opacity - 0.01 if me.opacity = 0.75 timerdecreasing.enabled = false endif Hey yeah!!! It worked!!! Thanks, RobinJam ;D Try this: In TimerDecrea ...Show All
pst_grant Clarification
I have had windows vista beta 2 icons for a while now and I would like to use the in my applications, I never sell them but for personal use, it would be nice to see something that did not look like it came from Windows .000000000001 ( A version of Microsoft Windows I just made up to exaggerate the point that they look very old.) I mean to say, when I add it to a form in a standard picture box, I receive an error saying that I have an “invalid parameter used”. The file extension is .ico. I am assuming that you're trying to load the icons up in Visual studio and it is throwing an exception saying "Invalid Parameter used" when you import. Chances are they are in a format that is either not supported by Visual Studio .NE ...Show All
SwedishMagoo Changing color
Hi, I need to increment the colour in the following statement: - Dim plotnumber as byte = 1 Dim myCurve1 As LineItem = myPane.AddCurve("Plot " & plotnumber, list, Color.Red, SymbolType.None) Plotnumber = plotnumber + 1 You can ignore most of the statement as it relates to an add-on, but it uses the system colour function, to change the colour of a cure. Unlike a number (like the name of the curve where I have simply & plotnumber and incremented so each curve has a different name. but I have no idea how I would do this for the colour, does anybody have any ideas Regards, Andy Hi, What does mod 10 do Andy highlight it in VB and press F1: it will tell you ...Show All
PublicError My Visual Basic 2005 does not compile the source code in a .exe file only .vshost.exe , why is that and how can I change that ?
When I do a project, and click the "Save All" button. It saves it normally. When I try to debug the program whidin the IDE it reports an error that the .exe file does not excist ! Then When I look in the bin/Debug/ directory there is only a vshost.exe file. I really need some help because it really needs to be fixed (for me). By the way, why does ALLMOST every code sample in MSDN's section Coding4Fun has like a TON of errors. Like the Skype VoIP thing. Who can please alert Microsoft for that, because I can't sen E-Mails with a domain microsoft.com (I don't know why). I tried bgates@microsoft.com but it didnt work :) What kind of project have you created Before you debug a project you need to build it. You can use the B ...Show All
João Santa Bárbara Problems with dataset designer
Hi I am not really sure where to post this, so I will post here and see what happens - sorry if it's in the wrong forum! I am having real problems with the dataset designer in VS2005. I start a VB project, go to Add a Data Source, select a SQL Compact Edition database, and select some tables. I then go into the Designer, make a few simple changes (for example changing the field names in one of the tables, or changing the name of the table adapter) and the VB Compiler crashes - almost every time, certainly enough times to make this totally unuseable. I have VB2005 Prof installed with the SP1 Beta, with SQL Server 2005 SP1, and with the RC1 version of SQL Compact Edtion. I just cannot get ANYTHING done with this. I have reinstall ...Show All
superlam999 Workbooks.Open(fileName): Cannot fix Overload Resolution Error
Okay, I have searched and searched, read and read, and every solution I have found is simply not working. Here is the problem: I have assigned an Excel File name to the variable 'fileName' (as String). Everytime I utilize the following code, I get an error. ___CODE FOLLOWS___ Dim xl As New Microsoft.Office.Interop.Excel.Application Dim xlWkbk As Microsoft.Office.Interop.Excel.Workbook xlWkbk = xl.Workbooks.Open(fileName) ___END CODE___ The error is "Overload Resolution failed because no accessible 'Open' is most specific for these arguments..." I have loaded the Excel Object Library, added it to my project, and as far as I can tell, I have done everything right, but no matter what I try, I keep getting ...Show All
Samant B Jain Is this possible?
Hello, I am using Visual Basic 2005. I am wondering, if it is possible to do these 2 things: 1. if there is a way to make a application, that retrieves certain data from an Internet webpage If there is a way, how is it done 2. Also, if the above task is possible, is there a way to make it so that the application gets and updates the data, every time the application is opened Thanks in advance, take a look at this also, on retrieving the stream of data using the httpwebresponse/httpwebrequest classes. you could also use, as suggested, the webbrowser control. In fact that would be muc ...Show All
BilalShouman Module and class
I am new in OOP. I have two questions: 1) What is difference between module and class 2) To declare public variable, put in module or using property in class file What is advantage of using property Spotty and DMan1 gave you good explainations; but there is one thing to add about the advantage of using a property versus a public variable: Public variables are seen as "Fields" on the class in which they are declared. You cannot databind to a field; only to a property. So support of databinding is a major advantage to the property implementation. There's also the ability to control the Get and Set behavior of a property which can be an advantage as well. MSDN introduction: htt ...Show All
fripper Compiler does not warn when assigning to readonly property
I am maybe a newbie in VB .Net programming, but two recent incidents lead me to believe there are bugs in the VB compiler. Today, I finally discovered that compiler did not warn me even though, I was assigning a value to a public readonly property. Not only that, I have configured the project's compile settings to treat all warnings as errors. Option strict is on. This experience is similar to an earlier one where I was puzzled how in the world was it possible that a protected readonly structure variable in a mustinherit base class was indirectly overwritten in a totally unrelated calculation. Not only that, when I changed the structure declaration to a class declaration it would still overwrite the protected readonly variable. Th ...Show All
NetPochi Questions about Entry point in VS2005's winform
In vs2003,every form has a constructor that invoke the methed InitializeComponent to initialize the form,but in vs2005 there is not a visible constructor that invoke that method.How does initialization of form work If you click the show all files button in the soltuion explorer it will display the designer files. The initialize component is in the contructor which is located in the designer file I think MSFT Abel Valadez is right. Thanks for your responding The implementation of InitializeComponent is in the Form1.Designer.vb file, which is hidden. You will need to enable "Show All Files" in the solution explorer to actually see them. However, yo ...Show All
PCSQL66 Project-Properties-Settings Question
My application connects to sql express with a connection string. Question is, in the settings connectionstring, There are 2 choices. 1. Use Windows Authentication. 2. Use SQL Server Authentication. If I use #2 (Use SQL Server Authentication), and enter a Username and Password....Does that mean that the login must always use the same Username and Password ...Are they hardcoded...Can I use a variable ..If so, how No, you can change them from the settings file (XML) Have a look at http://msdn2.microsoft.com/en-us/library/a65txexh.aspx under the Creating Application Settings at Design Time Topic Or simply , you can write a code to read them from an external xml file/text file/Sys ...Show All
Rozee Replace a menustrip programmatically
I am having difficulty replacing a MenuStrip that was dropped on the form at design time with a programatically generated one at run time. I have a MenuStrip on the form with no menu items. When the application starts, the splash screen generates a new MenuStrip and fills it with the appropriate ToolStripMenuItems. The splash screen then calls the following function on the main form: Public Sub setMainMenu( ByVal mnuStripMain As MenuStrip) msMainMenu = mnuStripMain msMainMenu.Refresh() End Sub msMainMenu is the MenuStrip that was dropped on the form at design time. If I set a breakpoint in this function after the assignment I can see that the msMainMenu contains all the menu items that were added by t ...Show All
mkrtchyan.arsen How to call Form1 at Project1 from Project2?
How to call Form1 at Project1 from Project2 I have 2 projects, Project 1 and Project 2. Sometimes I need to call Form1 (Form1.Show) at Project1 from Project2 or call Form1 at Project2 from Project1. How to link the Forms from difference Projects. I’m using Visual Basic 6 and Microsoft Access 97. VB6 questions should be posted here: http://www.microsoft.com/communities/newsgroups/list/en-us/default.aspx dg=microsoft.public.vb.general.discussion&cat=en_us_ab067bc0-bda5-4921-a1ec-e76402873945&lang=en&cr=us ok. but why. because these forums are for .NET questions :-) ...Show All
