|
sǝɔɹnos llɐ ǝʇǝlǝp
pɹɐoqʎǝʞ ɹnoʎ uɹnʇ
upright again, re-enter and rebuild.
Luc Pattyn [Forum Guidelines] [My Articles]
- before you ask a question here, search CodeProject, then Google
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get
- use the code block button (PRE tags) to preserve formatting when showing multi-line code snippets
|
|
|
|
|
I was just wondering because I cant get it to work and im having trouble with it..i just wanted to compare what i had with the right source code so i can see what i did wrong..and yes it is a text book vb 2005 shelly cashman hoisington edition
|
|
|
|
|
In order to analyze what is wrong, you should investigate the behavior, look for symptoms, find the place where it starts to go wrong. That's called debugging, it is an intrinsic part of software development, you need to learn that.
Luc Pattyn [Forum Guidelines] [My Articles]
- before you ask a question here, search CodeProject, then Google
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get
- use the code block button (PRE tags) to preserve formatting when showing multi-line code snippets
|
|
|
|
|
well, if you already have source code written and need help, feel free to post the relevant code and tell us what what is wrong with it.
Yusuf
Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]
|
|
|
|
|
Public Class frmSoftwarePackages
Private Sub btnCalculate_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnCalculate.Click
Dim TotalCost As Decimal
Dim Price As Decimal
Dim Package As String
totalcost = Package * Price
Dim objStudent As Student
objStudent = Student
Dim ObjCustomer As Customer
ObjCustomer = Customer
Dim InputError As Boolean
If Me.txtCreditCard.MaxLength = False Then
MessageBox.Show("Enter your credit card number in the correct location")
Me.txtCreditCard.Clear()
Me.txtCreditCard.Focus()
InputError = True
ElseIf Me.txtCreditCard.TextLength < 16 Or _
Me.txtCreditCard.TextLength > 16 Then
MessageBox.Show("You Entered wrong amount of numbers in credit card box")
Me.txtCreditCard.Clear()
Me.txtCreditCard.Focus()
InputError = True
ElseIf Not IsNumeric(Me.txtCreditCard.Text) Then
MessageBox.Show("Enter Numbers Only")
Me.txtCreditCard.Clear()
Me.txtCreditCard.Focus()
ElseIf Me.cboPackage.SelectedIndex < 0 Then
MessageBox.Show("Please Select a Package")
Me.cboPackage.Focus()
InputError = True
End If
End Sub
Private Sub RadioButton1_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RadioButton1.CheckedChanged
If Me.RadioButton1.Checked Then
End If
End Sub
Private Sub btnClear_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnClear.Click
Me.txtCreditCard.Clear()
Me.txtExp.Clear()
Me.cboPackage.SelectedIndex = -1
Me.RadioButton1.Checked = True
End Sub
Private Sub frmSoftwarePackages_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
End Sub
here is the other classes
Option Strict On
Public Class Customer
'Inherits Student Class
Inherits Student
'Class Variables
Private _SpeedUpInternet As Boolean
Private _AwritersWrite As Boolean
Private _DistancePersonnel As Boolean
Private _EmailPhoto As Boolean
Private _KeyboardLearner As Boolean
Dim objCustomer As Customer
Sub New(ByVal CreditCard As String, ByVal ExpDate As String, ByVal DecCost As Decimal, _
ByVal Discount As Decimal, ByVal Package As String, ByVal SpeedUpInternet As Boolean, ByVal AwritersWrite As Boolean, _
ByVal DistancePersonnel As Boolean, ByVal EmailPhoto As Boolean, ByVal KeyBoardLearner As Boolean)
MyBase.New(CreditCard, ExpDate, Package, DecCost, Discount)
_SpeedUpInternet = SpeedUpInternet
_AwritersWrite = AwritersWrite
_DistancePersonnel = DistancePersonnel
_EmailPhoto = EmailPhoto
_KeyboardLearner = KeyBoardLearner
End Sub
Public Class Student
'Class variables
Protected _StrCreditCard As String
Protected _StrExpDate As String
Protected _StrPackage As String
Protected _DecCost As Decimal
Protected _Discount As Decimal
Dim objStudent As Student
Sub New(ByVal StrCreditCard As String, ByVal StrExpDate As String, ByVal StrPackage As String, _
ByVal DecCost As Decimal, ByVal Discount As Decimal)
' Assigns arguments to class variables
_StrCreditCard = StrCreditCard
_StrExpDate = StrExpDate
_StrPackage = StrPackage
_DecCost = DecCost
_Discount = Discount
End Sub
Overridable Function ComputeTotal() As Decimal
'Calculate Cost
_DecCost = _StrPackage * _Discount
End Function
Dim decCost As Decimal
Const cdecSpeedUpInternet As Decimal = CDec(334.95)
Const cdecAwritersWriter As Decimal = CDec(578.9)
Const cdecDistancePersonnel As Decimal = CDec(872.45)
Const cdecEmailPhotoManager As Decimal = CDec(129.95)
Const cdecKeyboardLearner As Decimal = CDec(79.95)
End Class
I have no idea what im doing as u can tell
|
|
|
|
|
twiztid_sickz wrote: I have no idea what im doing as u can tell
So do I.
You need to tell us what is wrong first. How do I know what is the problem?
Yusuf
Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]
|
|
|
|
|
#(&!@!(*&@#!!!!!!!!!!! MY EYES ARE BLEEDING..................MAKE THE PAIN STOP.
Next time could use any less formatting to make your post more difficult to read?
Any suggestions, ideas, or 'constructive criticism' are always welcome.
"There's no such thing as a stupid question, only stupid people." - Mr. Garrison
|
|
|
|
|
Congratulations, you win the moron of the day award.
1 - we don't know what book you're using
2 - if we gave you source code, it wouldn't help you pass your course, it would help you fail
3 - you should talk to your teacher if you're stuck
Christian Graus
Driven to the arms of OSX by Vista.
"I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
|
|
|
|
|
I use this code for get processor ID
Private Sub GetCpuID()
Dim strComputer
Dim WMI
Dim wmiWin32Object
Dim wmiWin32Objects
Dim strText
strComputer = ""
WMI = GetObject("WinMgmts://" & strComputer)
wmiWin32Objects = WMI.InstancesOf("Win32_Processor")
For Each wmiWin32Object In wmiWin32Objects
strText = "ProcessorID: " & wmiWin32Object.ProcessorId & vbCrLf
Next
MsgBox(strText)
End Sub
but this not work in my program when I log as Guest. Why not work?
modified on Tuesday, April 7, 2009 3:33 PM
|
|
|
|
|
Privacy
I are troll
|
|
|
|
|
What privacy. Can work this when I log as guest or not
|
|
|
|
|
A guest usually can't "snoop" in the system. Just as a guest in your house shouldn't be looking in the cabinets, so is the security of your Windows'. It assumes that guests behave as such and that they are less privileged than full-blown users.
I are troll
|
|
|
|
|
Eddy Vluggen wrote: A guest usually can't "snoop" in the system.
yes they can, here is proof[^]
Yusuf
Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]
|
|
|
|
|
Whehe, caused by a bug
I are troll
|
|
|
|
|
ivo75 wrote: but this not work in my program when I log as Guest. Why not work?
It doesn't work because the Guest account has permissions to do just about nothing. IIRC, it should fail on the GetObject line since you need at least User level access to get a WMI object.
|
|
|
|
|
hi all,
i am very confused about character set. Can any one provide some useful link which describe the evolution of different type of character set and show related drawback and feature of each character set
|
|
|
|
|
|
I have written a program that it has a grid with about 800 person information
my database is access but the speed of load and sqrulling the grid is low .
what shoud I do . please help me about this program .
|
|
|
|
|
Your question isn't answerable. Since we know nothing of your code, how your populating the grid, the structure fo the database, the query you're using to retrieve the data, whether the database is local to the machine or on a remote server, ...., no nothing, ... there's nothing anyone can tell you that would do you any good.
|
|
|
|
|
How many people are accessing the access-database?
Reading 800 records into memory is something that takes time - you might want to try to limit the amount of records that you are reading. You could do this by adding extra filter-options, for example, showing only the Persons from Tokyo (one place at a time).
You may also want to consider upgrading to SQL Express, a free SQL Server version that has a somewhat better performance as a database-server.
Lastly, you might want to check your SQL-statements and indexes, and run them through a profiler
I are troll
|
|
|
|
|
Hi,
since you did not show any code and did not provide much detail, here is a wild guess:
maybe you are adding records to the GridView/DataGrid/DataGridView one by one, causing Windows to recalculate and repaint the grid every time, instead of just once. There are ways to improve this:
- keep the grid invisible till it is filled;
- use SuspendLayout() and ResumeLayout() once;
- use AddRange() instead of Add();
- use data binding.
If the wild guess is way off, tell us more and/or show code.
Luc Pattyn [Forum Guidelines] [My Articles]
- before you ask a question here, search CodeProject, then Google
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get
- use the code block button (PRE tags) to preserve formatting when showing multi-line code snippets
|
|
|
|
|
i am using same user control in two forms . i need to get the form name which is using the user control currently .and the form name i should get inside the user control methods.pls help me
|
|
|
|
|
What do you mean by name ? The text on the form, or the class name ? The control has owner and parent properties. You can use the is keyword to find out if the parent is an instance of a specific class. However, doing so is poor design, your form should work regardless of where it is. If it has one behaviour for forma and one for formb, I'd add a property you can set to choose which behaviour you require.
Christian Graus
Driven to the arms of OSX by Vista.
"I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
|
|
|
|
|
thanks for the response
here i have FormA and FormB
in both forms i m using usercontolA
i need to adjust the position of label in UsercontrolA . lets assume the label.left =50 when i open FormA and lebel.left=100 when i open FormB.
thanks in advance
|
|
|
|
|
Take a look at the Control.FindForm method.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|