SEARCH YOUR SOLUTION HERE  

HELP - Form doesnt show when in debug mode (VB .net)

, bit of strange one this, I have a VB .net application that has Sub Main() as its startup procedure, this then creates and shows a form. Up till now when I pressed F5 the form would duly appear. Whats ...

Posted On: Sunday 11th of November 2012 10:18:52 PM Total Views:  468
View Complete with Replies




Related Messages:

Depreciation program help please!   (251 Views)
Hi! I am trying to write a program that shows depreciation over a period of several years. This is what I have so far but I still don't know how to show the year-by-year description of depreciation like I have below. Please help! Public Class frmDepreciation Dim item As String Dim Year As Double Dim Cost As Double Dim Estimate As Double Dim SalvageValue As Integer = 0.0 Dim LineFormula As Double Dim DoubleDeclining As Double Dim Depreciation As Double Dim Balance As Double Dim Beginningval As Double Dim EndVal As Double Dim Total As Double Dim Counter As Double Private Sub btnDouble_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnDouble.Click item = txtDescription.Text Year = Val(txtPurchase.Text) Cost = Val(txtCost.Text) Estimate = Val(txtEstimate.Text) 'For Figuring Depreciation Depreciation = Cost / 2 Balance = Cost - Depreciation DoubleDeclining = (Cost - SalvageValue / Estimate) * 2 lstTotals.Items.Clear() lstTotals.Items.Add("Description: " & item) lstTotals.Items.Add("Year of Purchase: " & Year) lstTotals.Items.Add("Cost: " & FormatCurrency(Cost)) lstTotals.Items.Add("Estimated life: " & Estimate) lstTotals.Items.Add("Method of Deprection: Double-Declining Balance") lstTotals.Items.Add("") lstTotals.Items.Add("Value at beginning of " & Year & ": " & FormatCurrency(Cost)) lstTotals.Items.Add("Amount of depreciation during " & Year & ": " & FormatCurrency(Depreciation)) lstTotals.Items.Add("Total depreciation at the end of " & Year & ": " & FormatCurrency(Balance)) End Sub Private Sub btnStraightLine_Click(sender As System.Object, e As System.EventArgs) Handles btnStraightLine.Click item = txtDescription.Text Year = Val(txtPurchase.Text) Cost = Val(txtCost.Text) Estimate = Val(txtEstimate.Text) LineFormula = (Cost - SalvageValue / Estimate) lstTotals.Items.Clear() lstTotals.Items.Add("Description: " & item) lstTotals.Items.Add("Year of Purchase: " & Year) lstTotals.Items.Add("Cost: " & FormatCurrency(Cost)) lstTotals.Items.Add("Cost: " & Estimate) lstTotals.Items.Add("Method of Deprection: Straight Line") lstTotals.Items.Add("") lstTotals.Items.Add("Value at beginning of " & Year & ": " & FormatCurrency(Cost)) lstTotals.Items.Add("Amount of Depreciation during " & Year & ": " & FormatCurrency(Depreciation)) lstTotals.Items.Add("Total Depreciation at end of " & Year & ": " & FormatCurrency(Total)) Depreciation = Cost / Estimate Beginningval = Cost - Depreciation EndVal = Beginningval - Depreciation Total = Cost - EndVal End Sub End Class Attached image(s)
Unrecognized database format in VB6 help.   (269 Views)
i just want to ask something i have a access 95 and i cant edit the field because its read only when i convert it and change to 2000 or 2003 it says format not recognized format or invalid database format...how can i change this in to other database format ...im using windows 7 and have a MS2010 in my laptop.. can anyone help me with this problem... Thank you..clarification when i run it into vb6 after the converted it say invalid or not recognized database format..
help for two forms......   (330 Views)
i have a project consist of two forms..........form1 is for login yahoo id joining room and etc...... then the other form (form2) is for voice...... my question is how to make the form2 for voice.... at the same time the yahoo id i logged in to form1 is i using to form2 as well....... i coded this one already..... form1 is ok no problem... so far.... but when i open the form2 as voice form,,,, it gives me error..........
help: Generating "Thread" in VB6   (228 Views)
all, I want to know the way to generate a "thread" in Visual Basic 6.0.
Re: Visual Voice Pro 5 help   (245 Views)
"Mark Petersen" wrote in news:1080212484.441170@news.zipcon.net: > , > I'm in a bit of a pinch, and hoping that some kind VB brother out > there might help me out. I recently had a hard drive crash. When I ...
game form help   (354 Views)
in visual basic can you open a form in a window already open .... like if you had a game and you went to a new land and the land was a form could you load that land as the form thats already open if someone could tell me a site or give me a snip to work with that would be grate
tabstrip help   (222 Views)
I haven't used VB 6 in more than 5 years and find I have forgotten a lot. I have 2 tabstrips, tabstrip1 and tabstrip2. Tabstrip2 is contained in tabstrip1. Clicking on a tab in tabstrip1 creates an event that determines the caption, etc in each tab of tabstrip2, therefore, I must clear each tabstrip2 tab caption, reset and populate each tab. Everything I try generates a method error and the only thing that works simply adds new tabs and retains the previous tabs. I have tried the remove & clear in various ways as well as using a FOR, NEXT loop and the .COUNT, etc, etc. What am I missing The last code that I used: Private Sub TabStrip1_Click() 'Dim a 'For a = 2 To TabStrip2.Tabs.Count ' TabStrip2.Tabs.Clear 'Next If TabStrip1.SelectedItem.Index = 1 Then 'For a = 1 To TabStrip2.Tabs.Count ' TabStrip2.Tabs.Clear 'Next TabStrip2.Tabs(1).Caption = "RED MEAT" TabStrip2.Tabs.Add 2, , "BURGER" TabStrip2.Tabs.Add 3, , "DEER" TabStrip2.Tabs.Add 4, , "PORK" TabStrip2.Tabs.Add 5, , "CHICKEN" TabStrip2.Tabs.Add 6, , "TURKEY" TabStrip2.Tabs.Add 7, , "FISH" ElseIf TabStrip1.SelectedItem.Index = 2 Then TabStrip2.Tabs(1).Caption = "SALAD" TabStrip2.Tabs.Add 2, , "GREEN" TabStrip2.Tabs.Add 3, , "COLORED" TabStrip2.Tabs.Add 4, , "MISC" ElseIf TabStrip1.SelectedItem.Index = 3 Then TabStrip2.Tabs(1).Caption = "HOT" TabStrip2.Tabs.Add 2, , "COLD" TabStrip2.Tabs.Add 3, , "MASHES" TabStrip2.Tabs.Add 4, , "MISC" ElseIf TabStrip1.SelectedItem.Index = 4 Then TabStrip2.Tabs(1).Caption = "ICE CREAM" TabStrip2.Tabs.Add 2, , "PIE" TabStrip2.Tabs.Add 3, , "CAKE" TabStrip2.Tabs.Add 4, , "TARTS" TabStrip2.Tabs.Add 5, , "MOUSSE" TabStrip2.Tabs.Add 6, , "ALCOHOL" TabStrip2.Tabs.Add 7, , "BARS" TabStrip2.Tabs.Add 8, , "COOKIE" TabStrip2.Tabs.Add 9, , "MISC" ElseIf TabStrip1.SelectedItem.Index = 5 Then TabStrip2.Tabs(1).Caption = "LOAF" TabStrip2.Tabs.Add 2, , "BISCUIT" TabStrip2.Tabs.Add 3, , "DUMPLING" TabStrip2.Tabs.Add 4, , "VEGGIE" TabStrip2.Tabs.Add 5, , "MISC" ElseIf TabStrip1.SelectedItem.Index = 6 Then TabStrip2.Tabs(1).Caption = "MEAT" TabStrip2.Tabs.Add 2, , "VEGGIE" TabStrip2.Tabs.Add 3, , "DESSERT" TabStrip2.Tabs.Add 4, , "MISC" ElseIf TabStrip1.SelectedItem.Index = 7 Then TabStrip2.Tabs(1).Caption = "HOT" TabStrip2.Tabs.Add 2, , "COLD" TabStrip2.Tabs.Add 3, , "MISC" ElseIf TabStrip1.SelectedItem.Index = 8 Then TabStrip2.Tabs(1).Caption = "HOT" TabStrip2.Tabs.Add 2, , "COLD" TabStrip2.Tabs.Add 3, , "MEATY" TabStrip2.Tabs.Add 4, , "MISC" ElseIf TabStrip1.SelectedItem.Index = 9 Then TabStrip2.Tabs(1).Caption = "EGG" TabStrip2.Tabs.Add 2, , "MEAT" TabStrip2.Tabs.Add 3, , "BREAD" TabStrip2.Tabs.Add 4, , "FRUIT" TabStrip2.Tabs.Add 5, , "MISC" ElseIf TabStrip1.SelectedItem.Index = 10 Then TabStrip2.Tabs(1).Caption = "EGG" TabStrip2.Tabs.Add 2, , "NO EGG" TabStrip2.Tabs.Add 3, , "WHEAT" TabStrip2.Tabs.Add 4, , "SPINICH" TabStrip2.Tabs.Add 5, , "MACARONI" TabStrip2.Tabs.Add 6, , "MISC" Else End If End Sub This post has been edited by modi123_1: 12 April 2011 - 02:51 PM Reason for edit:: please use code tags
Re: Newbie - Need help prgramming an Internet ap in VB   (151 Views)
> Let me know if you have any suggestions. Don't post in HTML Don't post binaries...
Can anyone help me with the Winsock Control please?   (329 Views)
I've been asked to develop an application, which contains two programs. One sits on a Internet server, and looks for incomming files (this computer, sits outside our firewall). The other program sits on another server inside the firewall, and ...
VB and SQL different results. Microsoft BUG? Please help!!!!   (241 Views)
Why is this statement in VB false and in SQL Server true '*** ' vbscript if ("69330@AB0" < "693300AD7") then msgbox "yes" else msgbox "no" end if 'output --> no '*** -------------- -- SQL Server if ('69330@AB0' < '693300AD7') print ...
need help: ADOX - DefinedSize does not what I want.   (413 Views)
World, I'm creating a new ACCESS2000 DB via ADOX under a VB6 project. Everything works fine but the column size in the database tables is always the same for all columns, no matter how I set the "DefinedSize" property ...
Software Developer earning his Doctorate needs help   (329 Views)
I have been a Software Developer for 25 years mostly PC based for the last 20. I have been earning my Doctorate for the past 4 years and am now doing my Dissertation. The theme of my dissertation is the ...
Basic Macro on Excel help?   (331 Views)
Dear Excel experts, I am trying to build a macro in excel (I think that is what it is called) to perform some functions for me on excel. I don't really know how to do this, and was hoping someone ...
Please help my friend   (194 Views)
As a long time reader of this group, I thought it would be ok to post this. My friend Mike sent me this message today & it really bugged me. If any of you can help him by making a ...
Need help on VB6 and MYSQL statement   (216 Views)
Hi pple.. I have 3 fields in my MySQL Table: Record No 1 Add1: 100 Add2: #12-30 Add3: Bradford Avenue I need an SQL statement that can help me do partial keyword searching. Assuming the user just keys in Bradford, ...
Poker hand program, help   (249 Views)
Hi all, I was wondering if I could have some help with this program. I have an array here that you click on a label that represents a card of a certain suit. After you click on 5 it checks ...
Need help on formatted output ! ! !   (255 Views)
I'm a real newbie using visual basic, so please be patient. I just need an answer to a simple problem. I want to print on a file a sequence of elements of a multidimensional variable. The only problem ...
QBasic saved in binary format...need help   (335 Views)
I was given a QBasic (QB) file today and was asked to create a VB app from it. I tried to open the QB file and received the message that the file is in a binary format and can't be ...
I think im in over my head, can some help?   (487 Views)
i have done a little web programming before and SQL. I know how to display calls to DB tables and get them to display and the like...but my VB .NET language skills are not the strongest. My situation goes ...
Need help with an error   (383 Views)
I'm getting the famous error 91, but in a way I've never seen. I built a form to handle our work order system via SQL and included it in a project I had already started. The compiled project works fine ...