VB6 To .NET 2008. Converting Design Before Coding?

Feb 2, 2011

i have to get this off my chest.Forgive me... I'm a relative newbie stuck in the vb6 world because of my job.vb6 to vb .net is a huge change in the way one has to program (and to think). I never could figure out the big picture of things with .net.Everything is a class..? What's with all of this... Class this, Interface to a class, inheritance (of classes) here, casting? polymorphism.

As a newbie to vb.net (I use 2008)... I just wanted to say this out loud and see if i can even get my terms correct. Vb6 is a good language for beginners but not a real professional language and (vb6) is effectively a watered down, lazy man's (quick and dirty) way of creating programs to solve some particular task.

[Code]...

View 6 Replies


ADVERTISEMENT

Hard Coding Vs Soft Coding

May 7, 2009

Say we have a DataGridView on the main form. I can chose to establish its properties by code or by selecting them in the Properties panel. Is there a difference between these two techniques, a loading time penalty in any of the cases especially?

View 5 Replies

VS 2008 Tic Tac Toe Coding?

Apr 22, 2009

I Have a project to do for the class and i start to do it but i am not able to do the last part which is ( if there is no win, it should say drew) i do not know how.lp me on that and if you can give me easier way ti am using visual basic 2008 express.here is the codeode

Public Class Form1
Dim player As Integer
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles

[code]...

View 2 Replies

VS 2008 Api Response Coding?

Aug 10, 2009

I have developed an application for Windows Mobile Devices using Visual Basic 2008. One feature of the application, allows users to view records that are stored online, on the device. The application sends encoded data to an API, which is simply part of a server. The process I am using to send the data to the API is extremely simple. When you press the "Send" button in the application, it pulls the information needed, encodes that information in base64, and then attaches that information to the end of a URL. For example, it would look exactly like this when it was ready to send.

[URL]

The data is then sent out by simply loading it into a webbrowser control. Once the data hits the API, the API Then sends a response back. And this is where my issue is coming into play. The API either sends a message back saying "Pass" or "Fail". If it Fails, It includes and Error Message. If it passes, it includes a "URL" which then has to be opened in a browser or in a webbrowser control.

I need to know: HOW DO I CAPTURE THE RESPONSE THAT THE API IS SENDING BACK. More Specifically, I need to know how to capture the URL that is being sent back from the API, so that I can open it in a webbrowser control.

Now, I feel like I need to be more specific as to what is going on. I am able to send the data to the API, and it is being sent exactly as it needs to be. It has been confirmed on the API side, that the response is being sent back to me. The only problem I am having, is trying to figure out what to do with the response, more specifically, how to view the response period. I'm extremely new to the entire API Deal. Without being able to view the URL That is being sent back, the feature doesn't work of course.

MY CODE I HAVE SO FAR:

Public Function VARRecEncode() As Object
VARRecEncode = p1 & AccessPin
TextBox2.Text = VARRecEncode

[code]....

View 1 Replies

Coding For Next And Previous Button In .net 2008?

Jun 5, 2011

This is my coding for button Next and Previous but when I click on next it just goes to next like from pictures 1 and 2 to pic 3 and 4 but not any more because i have pictures in two imagelist upto 20 but it doesnt work and the coding for button previous also doesnt work same problem.

Next Button Coding
Private Sub btnNext_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnNext.Click
Static imagenumber As Integer
Try

[code]...

View 2 Replies

VS 2008 VBNET2008 TreeView Coding?

Jan 29, 2011

The Sales Manager requested the customer Order transaction to be display like Windows Explorer.I am using TreeView controls and having problem doing the coding as I have not done it before.Listed beow are the SQL String and the result of it. And also the display on TreeView.

SQL String :
SELECT OrderID, OrderDate ProductID
FROM Invoices WHERE (CustomerID = N'Chops') Order by OrderID, Orderdate

[code].....

View 2 Replies

VS 2008 With Write To File Coding?

Dec 13, 2011

i have been working on a GUI to export verification data to a text file. I have it set up to work at home but I would like to adapt the code so that it will write the text file to the directory that I use at work also. I have the areas commented out where things that I have attempted do not work.

[Code]...

View 6 Replies

Css - Design A Webpage In Asp.net Design View Which Support Multi Resolution?

Nov 26, 2010

I have created my webpage in asp.net in 1024*768 resolution, my problem was that when i change my monitor resolution then the controls in my webpage will be displayed in unmanaged manner .

How to arrange items in my webpage which support multiple resolution ...

Whatever the resolution of my monitor the controls in my webpage will display as it is as managed in 1024*768 reolution !

View 1 Replies

Coding Palindrome Checker In VB 2008 Express?

Mar 9, 2009

I am having problems getting this program to run. It is a palindrome checker, you are suposed to enter a word or a phrase and determine weather it is a palindrome. The code is suposed to contain a Boolean valued function, and should display true or false if word(s) are palindrome.

Here is my code

Private Sub btnAnswer_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnevaluate.Click
Dim Input As String
If IsPalindrome(Input) Then
txtAnswer.Text = "True"

[code]....

View 10 Replies

VB 2008 Coding Datagrid Checkbox Column?

Mar 11, 2010

logic on coding a checkbox column on a Datagrid on a Windows Form. What I want the Datagrid to do, is once the checkbox is checked on the Datagrid, to enable several other columns also on the Datagrid. I think I almost have it, but I cannot figure out how to id the checkbox.

View 3 Replies

VS 2008 Coding An If Statement From An Array To An Event?

May 1, 2010

I'm trying to make a show/hide button. I want the show hide button to be attached to an object on a form. Right now I just have separate show/hide buttons set the 'visible' property to true/false respectively. I want to code something that will consolidate the two properties. But I don't know how to code an if statement into an event, in this case the click event.

I'm thinking I'd have to do something like create an array (which I'd have to read a tutorial on first) that would hold two numbers. So, if the object on my forum's default visible property is true then if the button was clicked once it would be set to false (1) and clicked again it would be true (2). So, the array would only remember two values (1 and 2) and I'd have to create something else that would remember the previous value (say, 2) and than get the array to spit out the only other value (say, 1) it holds. Then finally strip the value the array spit out and have it go through some kind of if statement that would set the true/false value.

Without posting the exact code I'd need to pull it off, how would I go about doing this? Am I on the right track, or is there a simpler way? I'm new to programming.

View 5 Replies

VS 2008 Coding Multiple Buttons At The Same Time

Jan 23, 2010

I have 80 buttons and each of them will have the same code. I've coded one of the buttons. The code is a long one and is there any other way to code all of them at the same time or should I code it by copy and paste? The names of the button are in sequence, Button1 - Button2 - Button3 - and so forth until Button80

View 2 Replies

VS 2008 Devexpress Tabcontrol Set Focus Coding?

Nov 30, 2009

I have a created a program that allows the user to select an option button and that button takes them to the correct tab. Ive set all the tabs to visable = false untill the option button has been selected. The problem i am having is setting the focus, so the button sgoes to the tab instead of just making it visable again.

View 2 Replies

VS 2008 Form/BLL Communication, Best Coding Practice?

Apr 18, 2010

Question is related to rather simple programs typically presenting some data in a few datagridviews, charts etc. And consisting typically of a main form and one or two settings forms.I'm trying to program in a layered structure, pulling every bit of code out of any form class, and having a seperate "program class" for any form that I make. Now.. So far you can't complain on that I guess, but how to do this in best coding practice? In the form class I make a member object of the program class, hence making the program class a child of the form. Now I'm able to create events in the child class, and have handler methods in the form, without writing delegate classes (it seems). Now, that is fine, as it enables me to update the form controls with such events happening in the program class. However, how do I send events the other direction, from the form (parent) to the program class (child)? I guess I don't have to use events, I could just use the member object to access public methods in the program class directly, with passing of parameters from the form controls.. however, is that good practice? Or should I use events also that direction, and how to make that work, do I need to introduce delegate classes

View 21 Replies

What Is The Coding To Blink Label.text In Vb 2008

Mar 21, 2010

i want to blink my label.text by using a timer..

View 5 Replies

Form Design - Cannot Expand Vertically In Design View

Jun 27, 2011

I seem to have reached a limit on the size of the form. I cannot make the form longer and I need to add more fields. Is there a limit on how many fields can be included in a form?

View 1 Replies

VS 2008 Any Coding For Which It Disables Entire Form Until Process Is Completed?

Jul 23, 2009

My form contains lots and lots regular expression and other things in one button. whch when pressed takes some time to process.. so the form kind of gets stucked while the processing is bieng done.is there any coding for which it diables the entire form until the process is completed? like disabling the entire form and showing a text "please wait ... processing data" so user can not use other buttons or features at the same time or it might get crashed.

View 5 Replies

C# - Design Reference And Object Oriented Design Of A CRM

May 25, 2011

I searched codeplex and google. I have found so many such as tustena but unfortunately they are not domain driven based and in these solutions I could not find a good modelling documents or references. i am a newbie in CRM but I am sensetive to design it with solid object-oriented fundamentals. Any reference or open source solution especifically for CRM design and implementaion in .NET? Cheers

View 1 Replies

Coding Pagesetup, Print And Preview In MDI Text Editor So That It Works (2008)

Jul 17, 2010

How do you go about coding pagesetup, print and preview in MDI text editor so that it works (VisualBasic 2008)

View 7 Replies

Can't See Design View Mode In 2008

Apr 13, 2010

How can I get back the design view mode in Visual Studio 2008? I closed the design view mode and I can't see any option to view my form in design mode.

View 10 Replies

IDE :: Vb [design] Not Viewable In VB Express 2008

Sep 26, 2010

I had saved a file in VB Express 2008, Windows 7, but when I opened it the next time, everything showed up, but Form.vb [design] wasn't there. I can't find it when I showed all files in the solution explorer, and there's no error in the code because the project can be debugged.

I have tried to see other solutions to this problem, but since I have tried those solutions as well without success, I made an account. Since I'm new to using VB, I think that I have accidentally pressed a wrong button, but I don't think there's a button that prevents your Form.vb [design] from showing up ;). I hope this is enough info and I have posted it into the right forum...

View 4 Replies

Make And Design A Game In VB 2008

Mar 20, 2009

I have have to make and design a game in visual basic 2008 for college i also started colleage late... i dont kow how to start my game. the way the game is blackjack (21)

View 1 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

VS 2008 Checking Forms Design?

Aug 3, 2009

I'm very green with VB Express 2008 and am going through the tutorial. I'm skipping over a lot of the exercises as some of it is review for me - I've a fairly solid background in MS Access VBA and forms design there. But I have a simple question on VB Express forms design (I'm not worried about data handling or anything yet).How do I test a form? In my first form on my project, I just press F5 (Start debugging) and it opens just fine. However, I'm playing around with a second form in design mode and can't seem to get it to open to test some of the code (simple msgboxes associated with buttons).

In Access 2003 and earlier, there was a design mode and form view. The Access design mode was the equivalent of the design tab in the VB project, but I can't seem to find the equivalent of the Access form view in VB so that I can open that form. VB F5 only seems to open the first form.BTW, is VS 2008 the correct tag/prefix for this question on VB Express 2008? I see there's a separate tag list - is there an approved list of tags aside from the prefix before the title in the posting screen?

View 6 Replies

VS 2008 Design View Missing?

Feb 17, 2010

Just a quick questio with what I'm sure will recieve an incredibly simple answer.Problem: After saving and restarting Vb the project I am working on seems to lose design view. In the 'view' drop down menu where you would see 'code menu f7' 'design view shift + f7' I only see the code view and not the design view. The tab for my project which would normally say form1.vb (design) now only says form1.vb. The coresponding window for that tab does not show the GUI I had created just a blank white page.

View 8 Replies

VS 2008 Form Design At Runtime?

Jul 24, 2009

I have a question regarding the manipulation of a form at runtime. Let's say I created a simple form in the form designer before runtime containing a couple of buttons, text boxes and labels. While the program is running, I would like to change properties of these controls, while having the ability to move them around, along with the addition of newer controls, say a listbox.

After the form is 're-designed', I would like to save the new settings of my form, in either a database or settings file. Whats the best way to implement this?

View 4 Replies

VS 2008 How To Design / Code A Form

May 25, 2009

I need some info how to design/code a form, that only refreshs some parts of the content. Like a frame inside a webpage, that's loaded with AJAX, and the rest of the page maintains the same aspect.I know an application that acts exact the same way that i'm trying to do, but i don't know if i can refer the name.I want my form splitted in three, the top (unchanged), the middle that changes with the options of the user, and the bottom.

View 1 Replies

[2008] Form Outside Design View

Jan 24, 2009

I often get this problem. I open a form in design mode and the form is not in view and scrollers can't get to it. Sometimes it's cut in half and the other half is outside the window but there's no way to move the form inside the design space to see the form in full. Sounds like a lame problem but I can't find a way to properly open the form

View 1 Replies

Getting Express 2008 Design View Error

Sep 13, 2010

Design view shows an error message with projects that I open and with new projects. I can create or edit a project using code and properties. I just can't see anything but the error message in design. I can double click a label or text box and it will be added to the form, and I can edit it, just not see the form in design view.

View 2 Replies

Guided Missile Design Using Microsoft 2008

Sep 6, 2009

I have produced the Analysis of Antitank Guided Weapon Parameters by using Microsoft Visual Basic 6.

View 4 Replies







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