|
Yeah, I saw. That's goofy. I guess it's a step to balance out the "UniVoters" areound the site.
|
|
|
|
|
I have been looking at various pages online that deal with naming conventions and I see that there is a shift in how objects should be named. What I am concerned about are only form controls. Is it still acceptable to use txt for textboxes, frm for forms, etc.?
I have seen where developers are doing things like 'ScoreForX' instead of 'txtScoreForX', but what about seperating labels from textboxes and so on. Using the previous sentence I would have something like 'lblScoreForX' for the label.
If someone has a better way or a link to a more updated naming convention list I would appreciate it.
Dan
|
|
|
|
|
My personal preference is not to use Hungarian notation in .NET applications, and this extends to controls. I do however indicate that it is a control in the name, or even a specific control. e.g.
accountNumberTextBox
countryComboBox
Having said that, the company I work for has a policy to follow the hungarian notation convension set out in "Practical Guidelines and Best Practices for Microsoft Visual Basic and Visual C# Developers", so that's what I use at work.
Upcoming events:
* Glasgow: Mock Objects, SQL Server CLR Integration, Reporting Services, db4o, Dependency Injection with Spring ...
* Reading: Developer Day 5
Ready to Give up - Your help will be much appreciated.
My website
|
|
|
|
|
I too am using the same naming convention.
Steve Jowett
-------------------------
Sometimes a man who deserves to be looked down upon because he is a fool, is only despised only because he is an 'I.T. Consultant'
|
|
|
|
|
Thanks for the reply. I have seen where it seems that this is a touchy subject and for the most part it can be based on the developer. The code I develop will only be seen by me and whomever might replace me one day. I have a fear of my code be complete rubbish anyway so something as simple as naming conventions might atleast lead someone to believe I was trying.
Thanks again,
Dan
|
|
|
|
|
People seem more relaxed about use of Hungarian for control types, even when they shun it for everything else. I'm in this camp too. Though really, to be consistent, we should do as Colin suggests.
As you indicate we definitely need to distinguish between different control types for the same entity. So we ought to have either txtScoreForX, lblScoreForX or scoreForXTextBox, scoreForXLabel.
Kevin
|
|
|
|
|
The company I work for actually has very strict policies when it comes to naming conventions, controls will be "txtControlName", "lblControlName", etc, for something like ADO controls SqlCommand Objects have to start cmd (cmdYourName), SqlConnections with cn(cnYourName), DataAdapters with da and so on. As for my personal preference, Ive always used a 3 letter prefix for controls (txt, rdo, cbo, lbl etc)
"Let's face it, the average computer user has the brain of a Spider Monkey."
Bill Gates
|
|
|
|
|
anyone have some easy understanding code or some of ideas please...
|
|
|
|
|
What is your question ?
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Business Requirement
We have a need to print from our web environment to multiple network printers (with static IP) at other businesses.
Issues
We would like to choose the best technology to implement this solution. We have identified three key issues in the technology. Our software runs on IIS using Microsoft .Net 2. We use VB but can translate any ideas presented in C#.
Sending HTML to Non-Default Printers
We currently format our orders using HTML. I am aware of two technologies for printing HTML but both have problems with printing to the non-default printer. The web control only prints to the default printer. It is possible to change the default printer, but that is not acceptable for a server-side solution. I have also tried AxDHTMLEdit. The only way I could find to change printers is through a parameter that pops up the user interface, not possible for server side.
I need to find a good scalable server-side technology for sending HTML to any printer. An acceptable but far less desirable technology would allow sending plain text to any printer.
Monitoring Print Jobs
We need to monitor print jobs to verify that they printed successfully. It appears that Windows Management Instrumentation (WMI) should provide the technology to accomplish that. My one question in this area is if we print multiple orders, how can I match my order to the print job?
Network Printer Setup
In the short term, we could set up a network printer using conventional setup methods. We expect, however, to eventually support thousands of network printers so this does not appear to be scalable, particularly in a multi-server environment. Is there a way to send a print job to a temporary printer declared on the fly given only the IP address and printer type? Ideally, it would be nice to have a good universal printer driver but it would be acceptable for us to only support a limited set of printers.
Ralph Koppel
|
|
|
|
|
Guys, Im developing a web page in vb.net 2005 and everything is great.Now the problem is, Im trying to get the same look as in a webpage where things are well aligned and neat.My question is, are there any templates in VB.net that I can use??
Im battling doing things in asp, but Im Ok with VB.
kagiso
|
|
|
|
|
For a consistent look & feel, to ensure things are in the same spot on all pages have a look into Master Pages in ASP.Net 2.0[^]. I think this will really help.
"Well yes, it is an Integer, but it's a metrosexual Integer. For all we know, under all that hair gel it could be a Boolean."
Tom Welch
|
|
|
|
|
|
Thanx Vuyiswa.
I sure will
kagiso
|
|
|
|
|
i am final year student. I want to build window application. I know vb.net, oracle and sql server.Can someone suggest me some projects.
|
|
|
|
|
A stock inventory system
Timetable app
EBook library
|
|
|
|
|
Rather than concentrating on front-end development why not look deeper and develop a business object framework which would prove a much deeper understanding of development and the framework.
I know that this is something which would set you apart from other candidates when applying for your first job. There is a great book on the development of business objects by Rockford Lhotka which would be a pointer in the right direction.
I don't know if this is something which falls under the remit of your project or would be something you are interested in, but its certainly something different.
|
|
|
|
|
shreya123 wrote: Can someone suggest me some projects.
I wrote a GIS as my final year project. The code is still in use 12 years later. I'm quite proud of that.
Upcoming events:
* Glasgow: Mock Objects, SQL Server CLR Integration, Reporting Services, db4o, Dependency Injection with Spring ...
* Reading: Developer Day 5
Ready to Give up - Your help will be much appreciated.
My website
|
|
|
|
|
Hi,
A simple and Good NewsPaper Vendor software.
Regards & Wishes
Navneet Hegde
Nashik(City Of Pilgrimage)
Develop2Program & Program2Develop
|
|
|
|
|
how to put tooltip on the datagrid column header and also on cell of that column using vb.net 2003? plz help if anyone knows.here datagrid is bound at runtime.
|
|
|
|
|
Try to post your Query only once.
For putting the tooltip on each cell, try the MouseMove event of the datagrid. Enter the Required ToolTip there..
Hope this helps..
The name is Sandeep
|
|
|
|
|
In the grid's Mousemove Event Use this code to display the contents of Cell as tooltip
Hope this helps
dim str as string = ""
Dim pt As Point = New Point(e.X, e.Y)
Dim hti As DataGrid.HitTestInfo = gridName.HitTest(pt)
If gridName.VisibleRowCount > 0 Then
Dim bmb As BindingManagerBase = frm.BindingContext(gridName.DataSource, gridName.DataMember)
If hti.Row < bmb.Count And hti.Type = DataGrid.HitTestType.Cell Then
str = gridName.Item(hti.Row, hti.Column) ' Or the required tool tip
Else
str = ""
End If
Else
str =""
End If
if str <> "" then
ToolTip1.SetToolTip(sender, str)
|
|
|
|
|
how to put tooltip on the datagrid column header and also on cell of that column using vb.net 2003? plz help if anyone knows.
|
|
|
|
|
if i want to create a button component, i can do it by inherting the button class .but if i want to create a component with two buttons in that how can i do that?
-- modified at 7:47 Tuesday 26th June, 2007
|
|
|
|
|