as part of my alevel course i had to learn Pascal and now moved on to VB.NET.in Pascal there was a data type called 'real' where a number could have floating point values) my question is this; what in VB.NET is the equivalent to the Pascal real??
I need to create an application that creates Pascal's triangle the user would enter the number of rows, and using the formula (which i do not know... :/) would create the triangle. For example: the user enters 5 rows triangle:
1 1 1 1 2 1 1 3 3 1 1 4 6 4 1
as you can see the numbers are created by adding the 2 numbers above it starting with 1 at the top
I've done many attempts but still didn't succeed in making a logic for pascal's triangle, I want you guys to get me start this task and I'll code it myself. url....
I am trying to find out if anybody know if tab pages on a form can be programmed to be moved by the user. For example I have 3 tab pages on a form and I was wondering if the user wanted to move the first tab page to the last and so forth, is the way to allow the user to do this?
[code] Why doesn't the Patching Code work? (It doesn't move "fs" to the right position) [code] The code is suppose to use a FileStream to write bytes to another file. The part where it's suppose to write bytes works fine, but the part where it moves the FileStreams position isn't.
Possible Duplicate: Which language should I pick up: VB.Net or C# I'm trying to make a descision on learning VB.NET or C# as my first .NET language. I'm aware that bith languages can achieve the same things since both ultimately use the .NET framework. I'm also aware that C# has a similar syntax to both Java and C/C++, so I definitely see the benefits with this.
But how about the future of VB.NET? Will it be maintained in the years to come?I do know a bit of python, so would that make C# easier to learn?
I am looking to switch to C#. I come from a C / C++ background but C# is a little different for me. I am switching mainly because of Silverlight and MVVM; all examples are in C#. Any information is in C# and I am confused when I read through it all.
What is a good place to start learning C# when starting with existing C / C++ knowledge?
I'm a C# programmer who needs to pick up some VB. The syntax differences are easy enough to figure out, but there are other things I'll need more of a tutorial on. For example, VB's "strict" mode in Visual Studio is something essential to me, but something I wouldn't have learned just by comparing language syntax. Any recommendations on how to pick up VB quickly, yet thoroughly? I can't stand to work through a 1000 page book introducing VB to novices.
How would i go about stopping a form from being moved. I have the form border style set as FixedSingle and would like to keep it this way because it looks good in vista :)
Basically what I want to do is create a program with a simple interface where you select one or more directories, and it'll look for files that are in the directory that aren't currently in a folder, and make a folder to house the file in, with the same name as the file. But if they're already in a folder, I want the program to ignore them.Videos folder, there's 3 videos that aren't currently in a folder, 1 that is.Video A, Video B, and Video C.I want 3 folders to be created, and I want each file moved into the corresponding folder.I want the Video D folder/file ignored.I know how to do this in DOS but I'm having trouble translating it to VB.In DOS you would navigate to the directory and enter:FOR %i IN (*.*) DO (IF NOT EXIST "%~ni" MD "%~ni") & (MOVE "%i" "%~ni").I have no clue as to where to start.
I am wanting to learn more about databases and how to code them into my VB application. I've been searching the forums and I see a lot of examples of code with OleDB.OleDBConnection, OleDBCommand and same with SQL. How did you learn how to work with databases? What resources would you recommend? Any online tutorials that you found helpful?
One of the particular issues that I am having is that I've set up a table with approximately six columns. I have this shown on the main form as a datagridview with only two of the columns shown. To edit / add a new record, I have set up a button to load a new form with the details of the datagridview showing in textboxes (for all six columns). So, if the user were to select an entry on the main form page and then click on the edit/add button it would bring up the row's information in their respected textboxes. From there the user would be able to edit and then save the changes. I'm having difficulty bringing up the form with the selected row's information.
I've been an ASP.NET VB.NET Web Developer for the past 4 years, but its been mainly self-taught so I think theres a fair few basics I have probably not learnt along the way.I'm interested in switching to C#, and was wondering what book would be best to buy to learn this.Is Jon Skeet's 'C# in depth' book a good place to start learning, or would this be too difficult for me to start with?
I'm using VS 2005 and .NET framework 2.0 SP2 to build an application with a datagridview in it. I'm using Microsoft Word 11.0 Object Library to do the spelling checker on one of the field in datagridview. When it detected a spelling and grammar window would pop-up open on top of the datagridview.
The problem I got was when I moved the pop-up window to the new location, there's still an image of the pop-up window left behind the previous location. The more I moved the more of those copied image would be created on screen.
any simple coding that uses 2 buttons, allowing the items in listbox to be moved either up or down?I have been finding complex codes rather than simple ones. can someone help me on this?
I know you have to use WM_EXITSIZEMOVE or whatever it is, but I'm just not really sure how to use messages properly...I've read a few things online but just can't get it to work properly.
I'm looking into making child forms dockable inside my parent form and want to know when to hide my dock labels again (after the child form has stopped being moved).
Why are my new (moved to) text files deleting after the move?
If TextBox1.Text = "* DISPLAY SCROLL 10 *" Then Dim D10A As StreamReader = File.OpenText("LINE 3 UNITS.txt") D10A.Close()
[code]....
the file "line 3 units.txt" contains 3 choices. what I need to do is write one of these selections to the new file "line 3 units new.txt" then recognize the contents of this file to control a boolean statement.
Dim W As String = (D10B) If W.ToLower.Contains("load") Then LIN3LD = True
[code]....
I end up with 2 known problems.
1) The new text files delete
2) if the file doesn't delete (for whatever reason) the CONTAIN statement doesn't recognize either "load" or "speed"
I am not sure if this is the correct forum to post. I sometimes train Excel VBA. I would like to learn the language to a developers level. What relevant qualifications do Microsoft offer since I cannot find anything on their site?