answersLogoWhite

0

📱

VBNET

VBNET is an object-oriented programming (OOP) language developed by Microsoft. It is the .NET version of Visual Basic, which supports OOP concepts like aggregation, modularity, abstraction, encapsulation, inheritance and polymorphism.

325 Questions

Can visual basic 2010 save as visual basic 2008?

No you cannot, furthermore you will have to run a conversion tool when trying to open the file.

However, it is not a perfect conversion the majority of the time and unless you are converting some pretty basic code it may require some modification to the code (Or it may just not convert at all).

What is foreign key?

In the context of relational databases, a foreign key is a referential constraint between two tables.[1] The foreign key identifies a column or a set of columns in one (referencing) table that refers to a column or set of columns in another (referenced) table. The columns in the referencing table must be the primary key or other candidate key in the referenced table. The values in one row of the referencing columns must occur in a single row in the referenced table. Thus, a row in the referencing table cannot contain values that don't exist in the referenced table (except potentially NULL). This way references can be made to link information together and it is an essential part of database normalization. Multiple rows in the referencing table may refer to the same row in the referenced table. Most of the time, it reflects the one (master table, or referenced table) to many (child table, or referencing table) relationship. The referencing and referenced table may be the same table, i.e. the foreign key refers back to the same table. Such a foreign key is known in SQL:2003 as self-referencing or recursive foreign key. A table may have multiple foreign keys, and each foreign key can have a different referenced table. Each foreign key is enforced independently by the database system. Therefore, cascading relationships between tables can be established using foreign keys. Improper foreign key/primary key relationships or not enforcing those relationships are often the source of many database and data modeling problems.

What is an Attribute in OOPS?

•Attributes define the characteristics of a class.

•The set of values of an attribute of a particular object is called its state.

•In Class Program attribute can be a string or it can be a integer

LEarn Design Pattern,C#,ASP.NET,LINQ,Sharepoint,WCF,WPF,WWF

What does DML stand for?

data manipulation language, belongs to databases and sql. queries like insert/update/delete. in contrast, queries like create/alter/drop are called ddl (data definition language)

How do you write main menu pseudo code?

====

'-----------------------------------------------

'*** PROGRAM: Main Menu

' LANGUAGE: QBASIC: VERSION: QB64

'-----------------------------------------------

'------------------------------------------

'*** Global variable declarations list...

'------------------------------------------

userKeyPress$=""

'-----------------------

'*** Main Program...

'-----------------------

DO 'this is a menu driven program...

GOSUB clearScreen

GOSUB printMainMenuTitleHeading

GOSUB printMainMenuOptionsList

GOSUB printMainMenuInstructionsHeading

GOSUB printMainMenuUserInstructions

GOSUB awaitUserKeyPress

GOSUB checkUserKeyPress

LOOP UNTIL UCASE$(userKeyPress$) = "Q" '...UCASE converts lower case to upper

END '...END of program/halt program code execution

'----------------------

'*** Sub-routines...

'----------------------

clearScreen:

CLS '...(CL)ear the output (S)creen

RETURN

printMainMenuTitleHeading:

PRINT "MAIN MENU"

PRINT "========"

RETURN

printMainMenuOptionsList:

PRINT "Hit key: <1> for Program 1: 12 X Tables Square"

PRINT "Hit key: <2> for Program 2: Select a times tables to print out"

PRINT

PRINT "Hit key: <Q> to Quit!"

PRINT

RETURN

printMainMenuInstructionsHeading:

PRINT "USER INSTRUCTIONS"

PRINT "=============="

RETURN

printMainMenuUserInstructions:

PRINT "In order to select from the above Main Menu options list..."

PRINT

PRINT "First, chose the type of program you wish to run..."

PRINT "by, carefully, reading it's description."

PRINT

PRINT "Then, hit a corresponding single number/letter key, either: '1'/'2';"

PRINT "or, alternatively, hit key: 'Q' to Quit!"

PRINT

PRINT "-Thank you!"

RETURN

awaitUserKeyPress:

DO '...keep looping until when user presses any key...

userKeyPress$ = INKEY$ '...store any IN-coming KEY press

LOOP UNTIL userKeyPress$ <> ""

RETURN

checkUserKeyPress:

IF userKeyPress$ = "1" THEN GOSUB program1 '...GO to named SUB-routine

IF userKeyPress$ = "2" THEN GOSUB program2 '...GO to named SUB-routine

RETURN

program1:

GOSUB clearScreen

PRINT "PROGRAM 1"

'(...program 1/code goes here...)

GOSUB awaitUserKeyPress

RETURN

program2:

GOSUB clearScreen

PRINT "PROGRAM 2"

'(...program 2/code goes here...)

GOSUB awaitUserKeyPress

RETURN

How many types of user defined exceptions are there and list them?

They are user-defined. In other words: You & Me (Users) define them (make them). There is an endless number of user-defined exceptions

How to declare scalar variable in ASP .Net?

you must have forgotten to add parameters , in sql and asp.net when u want some queries u must add parameter to your query like cmd.Parameters.AddWithValue("@student_name", txtName.Text); if u dont add @student_name it will show u a error needing to declare sclar variable

How do you make a clear text button on Visual Basic?

You can make a clear text button just by dragging the textbox from toolbox window and drop on form design window,then you can modify the text button by either enlarging it or decreasing the size

Why access keys are use in visual basic?

We use these to make ur project respond through the keyboard

How to get Crystal Report control in VB6?

What version of Crystal reports?

Assumptions:

  • If you have Crystal Reports installed on the development machine, then you will already have all the dll's required for your VB6 project.
  • You're using Crystal Reports v8 or v8.5.
  • You will name the crystal report object 'rpt'.

Configuring the project:

  • In your VB6 project, Select 'Project'->'Components' and check the checkbox for 'Crystal Report Control' and click 'OK'
  • Open the 'Form' view for the form you are coding and drag the 'Crystal' control onto the form.

Coding the project:

  • You can now reference the 'Crystal' object from within your code. Take note of the name of the report object, or change it to something useful.
  • Set the WindowTitle, Connect, ReportFileName and SQLQuery properties to values relevant to your setup.
  • Optionally, you can set the following values: (DiscardSavedData [I recommend setting this to True as it speeds things up in most cases; in fact, I recommend saving your crystal files without any saved data in the first place.], ProgressDialog, and if you have Formulas in the report that you wish to pass in, you can do so using the Formulas(x) property.
  • Once all properties are set, launch the report using the following code:

"rpt.Action = 1"

Sample code:

rpt.WindowTitle = Me.Caption

rpt.Connect = "[Insert ADO Connection String here]"

rpt.ReportFileName = sReportsDirectory + "\SomeReport.rpt"

rpt.DiscardSavedData = True

rpt.ProgressDialog = True

rpt.SQLQuery = "select field1, field2, field3 from tbl1 where field4 = 'Y'"

rpt.Action = 1

What is common dialog box in visual basic control?

The common dialog box in visual basic is an insertable control that allows users to display a number of common dialog boxes in their program. These include Open and Save As file dialog boxes; the Find and Replace editing dialog boxes; the Print, Print Setup, Print Property Sheet, and Page Setup printing dialog boxes; and the Color and Font dialog boxes.

How do you convert text into binary in vb or c sharp code?

C# EXAMPLE

String text="My sample data";

System.Text.ASCIIEncoding encode=new System.Text.ASCIIEncoding();

//convert to binary and store in a byte[]
byte[] binaryArray=encode.GetBytes(text);

How to make grading system in visual basic 6.0?

first you must have a visual basic if not how can make this??

jsut simply follow this code:

end

that's it..

thank you/..:)

i hope i help..

Real time example for user defined exceptions?

class My_Exception {};

void f (int x) {

if (x==0) throw My_Exception;

// ...

}

int main () {

try {

f (42); // ok

f (0); // will throw

} catch (const My_Exception& err) {

std::cerr << "Invalid argument in f()\n";

}

}

What keyword is using to create objects?

In C# and Visual Basic.NET the keyword is "new". C doesn't have such an animal, but you generally use the library call to malloc to get new memory.

What is vbnet built on?

VB.Net is a "re-imagined" syntax of the Visual Basic language, built to target the .Net CLR (Common Language Runtime). It is a fully object-oriented language with similar syntax of older VB versions.

What is YouTube automation system?

I don't believe there is a specific feature called "YouTube Automation System". YouTube does, however, have an automated Content ID System that helps copyright owners identify content used without their permission.

What are NET Applications?

.NET Applications are any application developed in Microsoft Visual Studio in any .NET language (including C# and VB.NET).

.NET applications can be both windows applications and web applications.

What is self introduction for computer programmer?

A self introduction is when a person introduces themselves to another person or group. A computer programmer would begin by stating their name, state their interests and skill sets in programming.