|
I am using "ctrl" as prefix for naming my windows controls instead of Hungarian Notation. e.g. ctrlName for Name textbox control. Is it better?
---------------------------------------
I have a Persistent Class e.g. Person.
Public Class Person
Dim _name as string
Dim _age as int
Public Property Name
...
End Property
Public Property Age
...
End Property
End Class
Now I want to use Person Class as parameter in a method. can I use the same name for Parameter as class name.
e.g.
Public Function GetPersonDetail(person as Person) as boolean
...
End Function
I use the same for defining variables within a class.
e.g.
Public Sub SetPersonDetail()
dim person as Person
msgbox (person.Name)
End Sub
if not can you suggest some.
Ganesh P. Thanks for your help in advance
|
|
|
|
|
GaneshParam wrote: I am using "ctrl" as prefix for naming my windows controls instead of Hungarian Notation. e.g. ctrlName for Name textbox control. Is it better?
Ummmm.... Using "ctrl" as prefix for naming my windows controls is Hungarian notation[^].
ColinMackay.net
"Man who stand on hill with mouth open will wait long time for roast duck to drop in." -- Confucius
"If a man empties his purse into his head, no man can take it away from him, for an investment in knowledge pays the best interest." -- Joseph E. O'Donnell
|
|
|
|
|
I use a combination of Hungarian and not.
Variables do not have any notation prefixes except for a leading m for module level variables of a class.
Controls I still prefix with a control prefx (cmd for Button, cmb for ComboBox, etc..) just to I can discern them from the regular vars in the code.
As a rule properties are the same name as the variable they offer access to:
Private mAge As Integer
Public Property Age() As Integer
. . .
End Property
George Carlin wrote:
"Don't sweat the petty things, and don't pet the sweaty things."
Jörgen Sigvardsson wrote:
If the physicists find a universal theory describing the laws of universe, I'm sure the a**hole constant will be an integral part of that theory.
My Blog[^]
|
|
|
|
|
Hi,
I am developing an appls in VB.Net. I want the user to keyin some information on the first page. I want to pass this information to subsequent pages. i.e. I want to access the information throughout the application.
* How do store the information in a variable?
* How do I access the information in different forms in the application?
With Regards,
Mayur
|
|
|
|
|
i need a example on winsock program in VB
Paritosh
|
|
|
|
|
Try this link[^] it would help you.
Marc Soleda
... she said you are the perfect stranger she said baby let's keep it like this... Dire Straits
|
|
|
|
|
hi all,
i just Want To create a program with a datagrid, connectrion , and recordset object.
My problem is that data grid does not show the records in it.and gives no Error
please solve my Problem.
the Coding i use
Option Explicit
dim rec As new ADODB.Recordset
Dim con As New ADODB.Connection
Private Sub Command3_Click()
Unload Me
End Sub
Private Sub Form_Load()
Dim str As String
With con
.Open ("Provider=Microsoft.jet.oledb.4.0 ; data Source=C:\Documents and Settings\Administrator\Desktop\vc.mdb")
End With
'Set rec = New ADODB.Recordset
str = "select * from invtrans"
'If con.Open = adstaeopen Then con.Close
rec.Open str, con, adOpenStatic, adLockOptimistic
'MsgBox rec.RecordCount
'rec.MoveFirst
MsgBox rec.Fields(1)
Set DataGrid1.DataSource = rec
'Set DataGrid1.DataBindings = rec
End Sub
manoj
|
|
|
|
|
Friend ,I too faced this problem at lot time.
i tried a method and added a ADO control on the form . Connect the control in the code and pass the recordsource i.e ur SQL statement and then set datagrid's datasource using this control.
I think it can solve ur problem . In case u find another solutions please do let me also know abt that.
deepaish
|
|
|
|
|
ashu
|
|
|
|
|
how to ask a question :
1. speak english
2. use the thread title as a very short summary
3. use the thread body to actually ask your question instead of your boring " "...
4. hope that someone will close one's eyes on this...
TOXCCT >>> GEII power [toxcct][VisualCalc 2.20][VisualCalc 3.0]
-- modified at 6:10 Monday 9th January, 2006
|
|
|
|
|
You're asking a very general question. One which, just by asking it, tells us you don't understand the basics of developement. It sounds as if your in over your head.
If you don't understand how your data works on paper, no one here can describe it to you.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
HI
CAN ANY ONE TELL ME WHAT IS A "WINSOCK" AND "MAPI" CONTROLS AND THE USES.
ITS URJENT.
BYE
Paritosh
|
|
|
|
|
MAPI: MAPI is an acronym for Messaging Application Programming Interface. MAPI allows client programs to become (electronic mail) messaging-enabled.
Winsock is an alias for Windows Sockets enables programmers to create advanced Internet, intranet, and other network-capable applications to transmit application data across the wire, independent of the network protocol being used (retrieved from msdn).
I hope it helps,
Marc Soleda.
... she said you are the perfect stranger she said baby let's keep it like this... Dire Straits
|
|
|
|
|
which protocol winsock uses while transfering data
Paritosh
|
|
|
|
|
Winsock implements TCP/IP protocol so by means of Winsock you can implment FTP, SMTP, ...
... she said you are the perfect stranger she said baby let's keep it like this... Dire Straits
|
|
|
|
|
paritosha wrote: CAN ANY ONE TELL ME WHAT IS A "WINSOCK" AND "MAPI" CONTROLS AND THE USES.
A bit of elementary research will tell you this.
paritosha wrote: ITS URJENT.
Yeah, that's what they all say.
BTW: STOP SHOUTING AT US.
...Steve
"Give a man a fish and you've fed him for a day. Teach him how to fish and you've fed him for life." (Translation: I'll show you the way, but not write the code for you.) I read that somewhere once
-- modified at 22:16 Monday 9th January, 2006
|
|
|
|
|
|
Hi
I am setting up a simple web form, and for some reason, the controls that I have put on the page are not showing properly. I have 3 labels and 3 link buttons. They are set up in a column, one after the other, all aligned along the left edge. However, when I compile, they all show up as labels, and rather than showing up properly, they show up in a row.
I am pretty sure that it is a simple solution, but I'm stumped.
Any help would be appreciated.
Derek
|
|
|
|
|
Are they laid out in a table, do they have <br> tags between them, or did you lay them in a column, but not provide any HTML to make them look that way in the browser ?
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Hi Christian
Basically, I dragged and dropped the labels from the control list, then the link buttons. In the form layout, they show as 6 controls in 1 column, no table, no tags. I have never had to use HTML to make them line up before. Whenever I have done this before, the controls have shown up exactly as I placed them in the form layout.
Derek
|
|
|
|
|
The form layout page is crap, you should never use it, especially in VS2003 ( you didn't say which you're using ).
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
OK< I am using VS 2002. Another thing, the link buttons are just showing up as text, not as a link. Any ideas ?
|
|
|
|
|
Sorry for the multiple post, but this is how the page shows up
Assignment 4 Inventory System Derek Gruenthaler Products Product Sales Employees
The following are labels : Assignment 4, Inventory System, Derek Gruenthaler
The following are supposed to be link buttons : Products, Product Sales, Employees
I'm lost here
-- modified at 1:28 Tuesday 10th January, 2006
|
|
|
|
|
First of all, NEVER EVER use the design view again. In fact, you should change the defaults so you never SEE the design view again. The design view on 2002 is crap, it makes a total mess of your HTML, sometimes to the point of breaking it.
Secondly, for a link button to show as a link, you need to set it's target or click event. If you've not set these, they show as plain text ( because they don't know where to link to ). Finally, add that <br/> tag between your labels, and they will show up in a column instead of a row. Tables are the most obvious way to align your stuff on a page, but <br> will work for one column. Also, I believe it's better to use divs, spans and css, but to be honest, I have no idea how that is done.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Give me a latest code in visual basic 6.0 to devlope a mobile application
sandip
|
|
|
|