How To Use VB - Design A Program - String, Data Enadled Application And Refactoring

Jul 20, 2008

Dont understand where to start on visual basic iv been leaning alot about computers over the months and i would now like to design a program and to be honest its all new and i dont no where to start or what any of these woulds mean like string, data enadled application and refactoring.

View 3 Replies


ADVERTISEMENT

Refactoring A Method To Replace Sql String With The Stringbuilder Class

Nov 3, 2010

How do I refactor the method GetInvoiceNumbers to replace the SQL String concatenation with the StringBuilder class? Here is my code:

Private Function GetInvoiceNumbers() As System.Collections.Generic.List(Of Invoice) Implements InvoiceService.GetInvoiceNumbers
Dim invoiceList As New List(Of Invoice)

[Code].....

View 3 Replies

IDE :: Refactoring Data Contracts?

Dec 20, 2010

I want to add DataMember attributes for the properties in a class Is there any way to automatically add the attribute maybe some refactoring tool

View 4 Replies

Refactoring - Possible To Simplify (refactor) My Program Code (VB 2010)?

Jun 27, 2012

I have created a simply Pizza program (for a summer project not education related) that uses check boxes to determine what the customer wants. Basically a simple pizza ordering program.I was wondering as I have used the If statement over and other again for different parameters and variables, is it possible to use multiply arrays to simply the VB Code...I was advised to use Constructors in VB.Net Or is there a more simpler way to go about creating this program...or a better way of programing?What about decreasing the repetition in the code?

[code]...

View 4 Replies

C# - Class Design For Reports In .NET Application That Use A Conglomeration Of Data?

Jul 20, 2011

I can articulate my question well enough to get some clear and usable feedback here. I have reports (like paper reports) in my .NET application that have data bound to them. Typically the reports are a combination of many data elements across several busniess entites that may not all relate through an Inheritance hierarcy, etc. This makes it difficult to get all the needed data placed together to bind to the report.

So what I have done before are make 'Report' classes with data elements specific to supporting the reports they are bound to, and on the back end might be tied to specially created Stored Procedures that bring this data back (maybe several joins across many tables to get the right data needed). So if I was to make an analogy to the database world, I am essentially 'denormailizing' the data structure to get all of this data into a single class to make it easy to bind to the report.

However on the hard line OOP concepts and architecture design, one could say that a report is just another 'thing' to bind data to, and its class should not be designed just to suit the needs of data binding. In this thought process, I would actually need to make my class design be able to create the relationships needed to get all of the data together properly to still be bound, but not create any special 'Report' classes. I find this difficult to do sometimes. It is much easier to create these relationships in the back end stored procedures and then just output the resultset to be almost immediately bound to the report.

So what is the right way to solve this? If I create these specialized report classes with really no behavior, am I introducing an anti-pattern like the Anemic Domain Model?I could use some feedback, and please speak up if my question and scenarios did not make sense.

View 1 Replies

Database - Design And Deploy A Data Driven Desktop Application?

Jun 28, 2011

I am designing a desktop application that will be driven by local data. I am trying to determine the best way to accomplish this. The database would contain about 10-12 tables if I use a database and I would imagine no more than 10000 records in any one table (but honestly 99% of users would not have more than 1000 records). I am thinking about using SQL Server Compact.

Is this a good solution? I can certainly include this in my installation, but I am just wondering if anyone knows of a better solution? If this is the best solution, how would you suggest that I create the tables upon deployment? Should I just run "queries" with create table statements in them from my vb application or include a database file or what?

View 1 Replies

Prevent Data Layer Refactoring Of ODP.NET Code And Transactions?

Aug 27, 2009

I am using Oracle 11g client, with ODP.NET. I am trying to add conditional Transaction handling.

Dim ds As New DataSet()
Dim txn As OracleTransaction
Dim _beginTransaction as Bolean = true
Using conn As New OracleConnection(ConnString)

[Code]...

How do I fix txn being nothing / null? The error is: Variable 'txn' is used before it has been assigned a value. A null reference exception could result at runtime. Edit: to RichardOD for pointing out that you can not explicitly declare that a transaction cannot be opend up on stored procedures via ODP.NET. I have verified that this is an issue. BUT We still haven't figured out why the error is occuring. I understand that txn is initially given a value w/in an if statement, but being defined outside of the try/catch block should make that irrelevant.... right? Or is that bad coding?

View 3 Replies

Error On Returning List Of String Program Desktop Application

Nov 22, 2010

I'm trying to create a ntier desktop application using vb.net 2008.[code]...

By the way what i want to achieve is how to get the data as a List(Of String),because if i put the getMenu function into the presentation layer directly,it gives me the data as i expected..Also if i return as a string instead of List(Of String),it gives me the single data.

View 2 Replies

Create A Simple Program That Send String Data Through Winsock

Sep 3, 2010

im trying to create a simple program that send string data through winsock, there are hundresd of tutorials allover the web, but non of them seem to work! I am fairly new to visual basics but i undersatnd the consept of winsock and 'all that stuff'. [code]

View 5 Replies

Design For .NET Scheduler Application?

Jan 27, 2010

I wish to develop an application in VB.NET to provide to following functionality and hope you can give me some pointers on which direction to take.I need some kind of "server" type component which sits in the background monitoring request from users and performing various task. (this component can be install locally or centrally)
The users submit an instruction to the "server" to perform a certain task at a designated date and time. (or perform the task straight away)

The "server" would perform the task at the desired date and time and inform the user the result of the task.I have thought of using a central database to which the user writes the instructions. The "server" could read from the database to obtain the instructions, and write the result back to the database.

I want a fast reaction to the instructions, so the "server" must poll the database every few seconds; I fear this may be detrimental to performance. Also how do I get the server to perform the task at the desired time? Again checking all outstanding tasks against the current time is not very efficient, so I thought about utilising the Windows Scheduler, but I am not sure of the best way of integrating this functionality.

View 2 Replies

Design A CSV File Using Program?

Apr 18, 2012

In my project I am creating a CSV file, but I want to change it's design.[code]...

View 2 Replies

Database Application Design Recommendations?

Mar 22, 2012

The main purpose of the my app that I need your help with is, to deliver an always (or close to) up to date a list of files for the user to choose from for a variety of common purposes. For instance, opening the selected file in its native client editor application so the user can make changes. Another purposes would be to print the file, and I have others.

If nothing else (meaning recommendations for a better design that still keep my desired in mind) I'd like ideas on how to update my complex DataSet (background processing options, what's the most efficeient/quickest way to update my DataSet) as the list of files changes while my app is running and my app is designed to never close due to the long amount of time it take to load it initially.

The list must be always kept up to date while my app is running because not only the intial loading of data takes a lot of time but updates (new/modified/deleted) could potentially take too long depending on not only how much data to update/add (new files) but how efficeient my code is in updating the list. To be perfectly clear: If a new file is created then it need to be somehow (automatically preferably or manually i.e. button code) add to the list. If a file is deleted then it needs to bet removed from the list. And if the file has changed, perhaps some of it metadata or thumbnail image have changes so update the file's data in the list. All of which (new/modified/deleted) need to be as real-time as possble without degrading the server too much and without the user waiting more than a handful of seconds.

Listing all the files as quick as possible whether that be with or without metadata initially is very important because most of the time the user is going to filter (or scroll the list by typing) for a partial file name. Once the user filters/scrolls to the desired file there's a very good chance that he/she isn't even interested in the metadata, most of the time the user wants my app to open the selected file in its native client editor application so he/she can view or modify the file. The initial
load time of the data doesn't concern me as much as updates because the user can possibly do other things while it initially loads all the data as long as it not too long (more than a few minutes). From there the updates will either be automatic if possible (most desirable from a users standpoint) or the user initiated (e.g. button). Plus I'm thinking the updates might need to be done with a few different background processes (multiple threads) because I think I need one for periodic updates (e.g. every
15 minutes) and one background process for page updates meaning whatever the user has either scrolled to or filtered for, more accurately all files currently display to the user will be systematically update in the background so the user can still operate my app.

I'm currently using SqlDataAdapter.Fill to fill a DataSet object variable (which is bound [BindingSource] to a DataGridview control) to first populate the DataSet from the SQL query and then prorgammatically adds records (DataRow) for local files but please make recommendations. I don't mind big changes or starting over if necessary, I just want the best app possible based on the aforementioned criteria. I'm not sure if it complicates matters but I've also added custom columns in the DataSet for some special needs (thumbnail of files, booleans for tracking custom statuses). For the local files I'm currently populating the DataSet prorammatically (iterating a path/file string collect made by System.IO.Directory.GetFiles) since the list is first (and very quickly) populated with Vault files (which is always a far larger list than the local files) so . Again, I don't have to take this direction, make recommendations.

View 11 Replies

VS 2008 Application Design Opinions?

Sep 17, 2009

I am making a small application for a friend, to help her update her website. The website is a very simple one, using a menu (table of links) in one frame, and the content in the other frame. The content consists merely of pictures, with some information (text) below each picture. Because my friend has no clue how to change her website (let alone upload it and the images to the right FTP folders), I decided to make an application that does that for her.

I had decided on the following design, but now I'm having second thoughts whether or not it's a good idea:

1. I use a Database to store the information and path to each picture.

2. I generate the content HTML files completely from scratch every time an update is required, retrieving the image path + info from the database and generating the correct HTML code from it.

3. I save the HTML files and upload them + all the images they use to the FTP.

She can now add, remove and/or edit any items in her website, in each category, and it works fine at the moment. But there are a few problems:

1. When she decides to remove a picture (from the database), the actual image will stay on the FTP server. She only has a maximum of 100 MB capacity, so having 50 unused images on there is not very efficient. To remedy this, I simply remove all the images before uploading the new website, so there will only ever exist the current images.

2. When her site gets larger, the amount of images will increase, possibly to about 80 MB. I don't think she'll want to wait for 80 MB in pictures to upload when she only changed a typo in one of the picture's descriptions.In the past, the whole site is uploaded at once without considering which changes were made, so that wasn't very good. I decided to keep track of which categories were changed, and only upload the categories that have been changed. This reduces the amount of images to upload, but there still could be around 10 MB in a single category, which is acceptable but still not ideal.

3. The images she has chosen have to remain on her computer, because they are uploaded again every time she updates here site. If she removes them, they will not be found and cannot be uploaded. Now, the images would still be on the server, so there really isn't any need for her to keep the images. But, due to point 1, they get deleted, so I don't have them anymore.

View 2 Replies

Save Application Data (input+output) In A New File Format In Program?

May 16, 2011

I work in an engineering design house and programming is not my actual profession. And I am relatively new to VB .net (previous i had worked in vb 6)

I am working on an in house application. I am coding a simple application in vb .net. This applications takes a few inputs from user and calculates a result. Now I want to implement a simple functionality that user should be able to save the input and results just like most of the windows programs can in a new file format. And user should be able to open the save file when desired.

View 10 Replies

Design Of Program Not Showing After Save

Jun 17, 2009

I've noticed that when I save a newly scripted program and attempt to open it after I close Visual Studio 2008, it no longer shows the layout/design of the program...how would I go about configuring it so it looks the same as before I closed visual studio?

View 3 Replies

How To Design Password Recovery Program

Jun 12, 2010

I want to Design a password recovery program, but I don't know how to go about it and do the code?

View 4 Replies

Application Design Suggestions For A HotKey Manager?

Jul 12, 2011

I simply want to create an application that can save each n every keystroke pressed from the keyboard and then user will be able to assign it a hotkey. And then whenever user presses that hotkey the data that is relevent/linked with that hotkey should be pasted into the active window e.g. notepad, ms word, email etc. I have developed it on my own everything is working fine but whenever I hit the assigned hotkey it wont stop sending data to the active window maybe because of timer.

View 8 Replies

Change A Classic Windows Application Design NET?

Jun 21, 2010

Using visual studio 2008 environment, i would like to change a classic windows application design, so i'm wondering if there is an idea a bout this. i've find some skins like irriskins ( www.sunisoft.com ), but i'ts not what i'm looking for.

View 1 Replies

FAQ Describing Its True Advantages In VB Application Design?

Jul 7, 2011

I simply leave the GUID text blank in Properties/ Application. Can someone give the advantages of using the GUID? I have done a few searches on Google and VBFORUMS but have not found a FAQ describing its true advantages in VB Application design.

View 3 Replies

.net - How Long Dose It Take To Analysis, Design And Program A CMS Using ASP.NET

Oct 4, 2009

I intend to choose developing a Web Content Management System using asp.net with VB.net 2008 but I'm not sure about how long it takes to program such system. Is 4 months enough for developing such system? This 4 months is the duration of this semester and Includes about two months for analysis and design and the rest is left for implementation.

View 2 Replies

Design Of Making An Interface System Program?

Jul 7, 2012

We have two systems, one is created in VB.Net 2003 and the other is created in VB6. Both systems are client/server desktop application system. There is a requirement that we need to send and response data to each systems. The data will come as result of process of each system and then transfer it to the other system. These is formatted in a message format. Is it likely to become socket programming? how can I send and response data between servers?

View 1 Replies

Design Program In ConsoleApplication About Phone Numbers?

Dec 1, 2011

I'm supposed to design this program in ConsoleApplication about Phone Numbers:

You are writing a program and you need to store telephone numbers. You'd like to be user-friendly, and let the users enter their telephone number in whatever format they like with parentheses and dashes, so long as they enter 10 digits. Assume that they won't enter any other characters. The user will only enter ( ) - spaces and numbers.So, these would all be valid inputs

[code]...

View 10 Replies

Design Program Simulate Assembler With Pass1

Nov 21, 2010

build a program using vb to simulate an (Alasmpelr with the pass1), i attempt to do the program and the program work when i use small Source Code and it's succeeded, but when i use the software with large Source Code it does not succeed i tried repeatedly to do, but I stopped at many points I did not know how can i solve it

Imports System.IO
Imports System.Data
Imports System.Data.OleDb

[Code]......

View 1 Replies

IDE :: Changes In Design Mode Not Showing Up When Running Program?

Apr 1, 2011

I have opened an existing project and made changes in the design mode. (For example, I added a new button.) But when I tested the program using Start Debugger, none of my changes showed up.

View 1 Replies

IDE :: Refactoring Does Not Work (enough) In VB

Sep 28, 2009

I use VS 2005 and VB.NET. I have a class A. This class A is an empty class(no functions, no members). I wrote the following code: Dim _a as new A(); Dim code as String = _a.GetCode() In the same situation, the C# refactoring tool in VS 2005 IDE propose me to create a method in the A class internal string GetCode(){ }

The VB.NET compiles does not propose anything. There is a way to implement the functions when I need it in code, or I need to planify all my methods before using the class?

View 4 Replies

Design Templete Of Application Software That Name Is InsordOutword System

Jun 21, 2010

I need the design templete of the application software that name is InsordOutword system..

View 1 Replies

IDE :: Design An Application In 2005 That Will Retrieve Pictures On A Form?

Aug 29, 2010

i need to design an application in visual basic 2005 that will retrieve pictures on a form. PS: All pictures should be located in a combo box! And the number of pictures are 2000.I've started with cmb.Items.Add("pic1") but that really tiresome to write 2000 codes.

View 9 Replies

Make An Application For Beta Testers In Design Group?

Sep 6, 2011

I'm trying to make an application for beta testers in my design group so that they can easily send their reports back to the developers. Designing the user interface is not the problem.it's the coding. What I want to do is let the user select a radio button for the project they are testing, then fill in some text fields, select options, etc regarding the project tests, then when they are done, click "submit" and it will either send the data to a specific email address (internally coded, not input by the user) or send the data in a text file to a directory on my server. (whichever method works/is easier) I'm not the best programmer, so don't yell at me if I'm slow to understand anything, LOL.

View 3 Replies

Students Trainings Windows Application - Database Design ?

Nov 24, 2010

I am developing a new application for Students Training. how the database design should be? And could you provide a sample application similar to my requirement? Following is the requirement of the Application, The objectives of the program or application are:

Get Information about the total number of students trained in all company's department

Get Information about the total number of students who were either withdrew/ apologized /rejected

Anticipate of the future needs for student's work placement opportunities (numbers of students as well as the majors)

On light of the objectives mentioned above I consider the following data for the application preparation: Company's Department Needs Department Major Number of students for each major Supervisor Mobile Number

If it is possible when entering students details the program will automatically register him/her in the Department that has vacant place and already fit the requirements of the certain department-Internship Information.

View 11 Replies

VB 2010 Program & Graphical User Interface Design

Feb 15, 2012

I'm trying to hone up on my (beginner) coding skills & I would prefer that the the 'Designer coding window', not the 'Design window', wouldn't interfere with these studies. Sometimes it's there & sometimes it's not. I don't understand it at this point & would prefer it wasn't there. All I need is the 'Design window' & the 'regular coding window'.

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved