4,439 Posted Topics
Re: 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 … | |
Re: 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. | |
Re: Have you absolutely no idea what to do? Database? Web application? Game perhaps? It's hard to think for someone else. | |
Re: 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 … | |
Re: [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] | |
Re: 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. | |
Re: 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! | |
Re: [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] | |
Re: You are in the wrong forum. Post your question in the C++ forum. | |
Re: Strange indeed, but setting the font size (say 72)of this control does set the Height also. | |
Re: If you want more info on the subject you can google CREATE DATABASE or CREATE TABLE SQL commands. | |
Re: 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 … | |
Re: [url]http://www.regular-expressions.info/email.html[/url] | |
Re: This may help you out [url]http://www.daniweb.com/code/snippet1041.html[/url] | |
Re: [url]http://msdn.microsoft.com/en-us/library/system.data.dataset.begininit.aspx[/url] | |
Re: 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 … | |
Re: 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? | |
Re: 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... | |
Re: 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 … | |
Re: 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 … | |
Re: 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! | |
Re: 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. | |
Re: Just do if ( name.Length > 30 { Console.WriteLine("name too long"); } | |
Re: 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]. | |
Re: 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 | |
Re: 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. | |
Re: 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' … | |
Re: 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 … | |
Re: 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 … | |
Re: [QUOTE=Narue]Mistakes, as they say, become experience.[/QUOTE] An expert is a person who has made all the mistakes... | |
Re: 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 … | |
Re: Look up some information about BigNums. An integer or long integer can only hold a vast amount of bits. | |
Re: [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 … | |
Re: 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 … | |
Re: '\' is not a character litteral. A character is always one character symbol enclosed in single quotes. | |
Re: 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. | |
Re: Is this an Excel issue or a C# issue? Excel-->VBA-->VB forums here. C#-->let's see what you already have. | |
Re: The latest newsletter from the codeproject site provided me with [url]http://www.codeproject.com/KB/system/HIDAche.aspx[/url] it might help perhaps? | |
Re: You have a Screen cass which exposes a property GetBounds. You can use it to set the size of your form. | |
Re: 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. | |
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 … | |
Re: 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. | |
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 … | |
Re: 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. | |
Re: Handle the KeyDown and KeyPress events of a textbox. Check if every key pressed is numeric. | |
Re: fseek32( filepointer , positie , SEEK_SET ) What is the value of positie or is it a typo? | |
Re: You never seem to be doing a [B]new [/B]on DataTable dt. | |
Re: NewcomplaintForm.vb ----> Visual Basic? ----> VB.NET | |
Re: I would suggest a DataGridView for that. It is primarily designed to work well with a database but it can be customized. | |
Re: 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. |
The End.