4,439 Posted Topics

Member Avatar for Mr.MJ

All depends on your microprocessors intruction set. This is info for a 8086 microprocessor: Unsigned multiply. Algorithm: when operand is a byte: AX = AL * operand. when operand is a word: (DX AX) = AX * operand. Example: [CODE=asm]MOV AL, 200 ; AL = 0C8h MOV BL, 4 MUL …

Member Avatar for Mr.MJ
0
131
Member Avatar for gluttonous

I think your MY_TYPE2 class needs a constructor where your struct array can be initialized. For the moment it has no constructor so a default constructor is called : [CODE=csharp]MY_TYPE2() { }[/CODE] This does not initialize your struct array as far as I can see.

Member Avatar for gluttonous
0
104
Member Avatar for zeeshan_kust

Have you absolutely no idea what to do? Database? Web application? Game perhaps? It's hard to think for someone else.

Member Avatar for skatamatic
0
144
Member Avatar for localp

This is as basic as I will get. [CODE=csharp]using System; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { string MyString = "A @string & and 2."; Console.WriteLine(MyString); for (int charpos = 0; charpos < MyString.Length; charpos++) { Console.WriteLine(Char.IsLetter(MyString, charpos)); } //Keep the console on screen Console.WriteLine("Press any …

Member Avatar for ddanbe
0
83
Member Avatar for Spanki

[QUOTE=VernonDozier]can't remember the length of time[/QUOTE] I believe it is 15 minutes. btw: >Spanki : line 25 or so of your code [B]while [COLOR="Red"](!(sales<=0||sales>=0))[/COLOR][/B]------> very fancy way to say [B]while [COLOR="Red"]false[/COLOR][/B]

Member Avatar for ddanbe
0
95
Member Avatar for nie86

The following has some source code to calculate eigenvalues [url]http://www.codeproject.com/KB/recipes/psdotnetmatrix.aspx[/url] The only problem : it's in C# not VB. But math code often consists of for loops and arrays so it should not be that difficult to translate it to VB.

Member Avatar for ddanbe
0
61
Member Avatar for ferloko

Some code would be higly appreciated. If you could put this code into code tags and add a little more explanation that would be heaven!

Member Avatar for ferloko
0
77
Member Avatar for eugineHax

[QUOTE=ITech]form2 frm = new form2();[/QUOTE] This will never compile! Should be : [COLOR="Red"]Form [/COLOR]frm = new [COLOR="Red"]Form();[/COLOR] Meaning : make an object frm of type Form. Type form2 may exist, but I don't believe it exists in this context. This might also help : [url]http://www.daniweb.com/code/snippet1008.html[/url]

Member Avatar for ddanbe
0
156
Member Avatar for PCli
Member Avatar for ddanbe
0
84
Member Avatar for konczuras

Strange indeed, but setting the font size (say 72)of this control does set the Height also.

Member Avatar for ddanbe
0
135
Member Avatar for papuccino1

If you want more info on the subject you can google CREATE DATABASE or CREATE TABLE SQL commands.

Member Avatar for papuccino1
0
140
Member Avatar for db11

I assume you are using Visual Studio. Make a form application. Put a TextBox control on the form. Go to the code produced in ...Designer.cs and see how it is done. Remove the textbox. Go to the form class and add the textbox variable as an array and fill in …

Member Avatar for papuccino1
0
2K
Member Avatar for ITech
Member Avatar for ITech
Member Avatar for ddanbe
0
106
Member Avatar for serkan sendur

[url]http://msdn.microsoft.com/en-us/library/system.data.dataset.begininit.aspx[/url]

Member Avatar for serkan sendur
0
434
Member Avatar for brianknott844

The Array class has no public constructors so [B]Array Numbers = new Array(Last_Number, true);[/B] will not work. ( Is this Java?) What I would do : [B]bool[] Numbers = new bool[Last_Number];[/B] And initialise all the elements to true in a for loop. If you insist you can use something like …

Member Avatar for ddanbe
0
111
Member Avatar for ctrl-alt-del

Tic-Tac-Toe? Try to imitate MineSweeper. The Game of Life? The only limitation is your own imagination. Why not invent a totally new game?

Member Avatar for hieuuk
0
168
Member Avatar for foxypj

Check out this: [CODE=csharp]string dateString; DateTime dateValue; Console.WriteLine("please insert a date"); dateString =Console.ReadLine(); if (DateTime.TryParse(dateString, out dateValue)) { //it is a date } else { //error }[/CODE] Flush goto's...

Member Avatar for foxypj
0
150
Member Avatar for BobLewiston

You can even do things like s += String.Format("{0:F2} ", num1); s += String.Format("{0:F3}", num2); This would give you a string of two numbers separated by a space. One with 2 digits after the decimal point(which is the default, you don't have to mention it if you like) and one …

Member Avatar for ddanbe
0
189
Member Avatar for EDanaII

This is the right place. It could be called C#.NET but then again there are other C# compilers out there. A DataGridView1 has a Rows collection, you can set values in it with an indexer(this is a TextBox example) MydataGridView[1, 2].Value = "new value"; Set the value of the second …

Member Avatar for EDanaII
0
874
Member Avatar for ProgrammersTalk

Belgium. If you can't find it on the map, it is just above France. By the way : WE invented the fries and not the french people!

Member Avatar for Ezzaral
0
602
Member Avatar for tintincute

Look up the members of the String class. From the code I see you use some Visual Studio. In the menubar you will find something called "Help" Click on it and choose Search. In the window that appears type [B]String members[/B] You will find what you where looking for.

Member Avatar for LizR
0
264
Member Avatar for asafoatse
Member Avatar for asafoatse
0
81
Member Avatar for papuccino1

The DateTimePicker has a Value property which returns a DateTime. DateTime has an overloaded substraction operator which returns a TimeSpan. Use it like [B]TimeSpan Span = DateValue2 - DateValue1;[/B] [B]Span [/B]will give you the difference in days : [B]Span.Days[/B].

Member Avatar for ddanbe
0
89
Member Avatar for learner2

If you googled it you would already had it eg : [url]http://search.live.com/results.aspx?q=8088+pin+configuration&src=IE-SearchBox[/url] I typed in 8088 pin configuration

Member Avatar for ddanbe
-1
75
Member Avatar for MJV

What kind of error do you get? Throwing code and saying "error" does not help very much. decimal.TryParse works fine when I use it.

Member Avatar for Rashakil Fol
0
113
Member Avatar for Abhishek_Boga

A radio button is just one way to represent gender in a user interface. What about a combobox with 2 options : male, female? How to store that info in a DB depends on the designer of the DB. You could use a boolean, one character 'M' for male 'F' …

Member Avatar for ddanbe
0
82
Member Avatar for netveano

There is still a confusion with Visual Basic and Visual Studio and .NET. As I see it : .NET is an application framework that contains a huge library of already coded "things" to make the life of a programmer much easier. Visual Studio is an IDE (Integrated Development Environment) which …

Member Avatar for Rashakil Fol
0
261
Member Avatar for apease11

Just for the fun of it: (this is perhaps your own tutorial!) Start up a Console application and add the following in main: [CODE=csharp]for(int i = 0; i < args.Length; i++) { Console.WriteLine("Argument {0} = {1}", i, args[i]); } Console.ReadKey();[/CODE] Raskahil laid the bottom but perhaps you needed one more …

Member Avatar for apease11
0
201
Member Avatar for JMChurch25

[QUOTE=Narue]Mistakes, as they say, become experience.[/QUOTE] An expert is a person who has made all the mistakes...

Member Avatar for Rashakil Fol
0
152
Member Avatar for 3pid

Weuw heavy! I am afraid you cannot overload the = operator. Think about it. Would it make any sence to do that? You can overload the + operator for Customer. But then again what would be the meaning of Customer A + Customer B. If you want to assign A …

Member Avatar for Rashakil Fol
0
86
Member Avatar for Lotus_2011

Look up some information about BigNums. An integer or long integer can only hold a vast amount of bits.

Member Avatar for siddhant3s
0
110
Member Avatar for Egypt Pharaoh

[QUOTE=Naik Dhiren]string m = "";m1 = "";m2 = "";[/QUOTE] Will never work. My C# compiler must first know the type of m1 and m2 before he will assign something to it.(Perhaps you have a more advanced one?) Better is to use string m ="", m1="" , m2=""; Or still even …

Member Avatar for ddanbe
0
164
Member Avatar for Rashakil Fol

First of all let me tell you I'm not here to collect as much reputation points as possible. What purpose would that serve? My own ego? I'm here to help people if I can or to get help for myself if I'm stuck in some programming issue. Why can't reps …

Member Avatar for happygeek
0
169
Member Avatar for sonia sardana

'\' is not a character litteral. A character is always one character symbol enclosed in single quotes.

Member Avatar for ddanbe
0
168
Member Avatar for Dewey1040

The syntax is called a ternary operator. It acts on 3 "things". [COLOR="Green"]condition [/COLOR][B][COLOR="Red"]?[/COLOR] [/B]do something if [COLOR="Green"]condition [/COLOR]is true[B] [COLOR="Red"]:[/COLOR][/B] do something if [COLOR="Green"]condition [/COLOR]is false. It is some kind of "shorthand" which is quite handy when defining macros.

Member Avatar for Dewey1040
0
73
Member Avatar for sid.coco

Is this an Excel issue or a C# issue? Excel-->VBA-->VB forums here. C#-->let's see what you already have.

Member Avatar for ddanbe
0
110
Member Avatar for musicman45241

The latest newsletter from the codeproject site provided me with [url]http://www.codeproject.com/KB/system/HIDAche.aspx[/url] it might help perhaps?

Member Avatar for musicman45241
0
150
Member Avatar for comp_sci11

You have a Screen cass which exposes a property GetBounds. You can use it to set the size of your form.

Member Avatar for sknake
0
425
Member Avatar for learner2

Analytical comes from the old greek word analuein which means "to resolve". A chemist would say I have a sample and I analysed it, it contains the following compounds... In math it means : to prove something from "things" already known with methods involving algebra or trigonometry etC.

Member Avatar for learner2
0
111
Member Avatar for ddanbe

Say I have two classes : a provider A and a consumer B. My question : who should do the error handling, validation etc.? Example : a Garage class and a Car class. Should the Garage class tell the Car class : "He Car you are to big to enter …

Member Avatar for ddanbe
0
98
Member Avatar for thegreatkk

You have object sender in your functionname method. Just cast it to a DataGridView like this [B](DataGridView)sender [/B]and then call function2 with it.

Member Avatar for thegreatkk
0
104
Member Avatar for ddanbe

Hi everyone, I have the following : [CODE=csharp]using System; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { double d = Convert.ToDouble("23.4"); } } }[/CODE] When I run this with Visual C# 2008 Express in the debugger I get the value 234 for d instead of the expected …

Member Avatar for ddanbe
0
105
Member Avatar for sid.coco

This site has a search option. Try [B]import data from excel[/B] Most of the time you will find the answer to your questions there, although I must admit that it may take some searching effort... Your problem not solved? Come back here you are welcome.

Member Avatar for sid.coco
0
122
Member Avatar for Trekker182

Handle the KeyDown and KeyPress events of a textbox. Check if every key pressed is numeric.

Member Avatar for Trekker182
0
2K
Member Avatar for Georges5
Member Avatar for Georges5
0
249
Member Avatar for JulesBonnot
Member Avatar for wnmichaud
Member Avatar for MJV

I would suggest a DataGridView for that. It is primarily designed to work well with a database but it can be customized.

Member Avatar for ddanbe
0
81
Member Avatar for moiseszaragoza

If I am able to understand your english I think this is what you have to do: Make a Click eventhandler for the ctHead button, in it call ctBody button stuff.

Member Avatar for moiseszaragoza
0
56

The End.