-
Replied To a Post in Help understanding code
I decided to write the following piece of code in order for you to get a better understanding... public static void Main(string[] args) { Random randomNumbers = new Random(); int[] … -
Replied To a Post in Help understanding code
1.Correct 2-4. doesn't have to be frequency[1] it could be any number between [1,6](included) depending on the .Next C# integrated function. The function produces a random index. The whole purpose … -
Began Watching Help understanding code
using System; public class RollDie { public static void Main( string[] args ) { Random randomNumbers = new Random(); // random number generator int[] frequency = new int[ 7 ]; … -
Replied To a Post in Help understanding code
When i was learning C i remember that i wrote down something concerning that problem and with this writting you ll get a full understanding of it. example1: int y; … -
Began Watching Inserting the image
I am getting the error while inserting the image from win-form.Can anyone please tell me the in the code.I am using Visual Studio 2013 and MS Sql 2008 R2. Thanks … -
Replied To a Post in Inserting the image
string sql = "INSERT INTO STU(EID,FIRST_NAME,LAST_NAME,IMAGE)VALUES(" + textBox1.Text + "," + textBox2.Text + "," + textBox3.Text + ",@img)"; if (cn.State != ConnectionState.Open) cn.Open(); command = new SqlCommand(sql, cn); command.Parameters.Add(new SqlParameter("@img", … -
Began Watching How to get ID of SelectedValue in a combobox
So I have this: private void GetSuppliersList() { ds = oDAL.GetSuppliersList(); cmbSupplier.DataSource = ds.Tables["SuppliersHeader"]; cmbSupplier.DisplayMember = "SupplierName"; cmbSupplier.ValueMember = "SupplierID"; } And I need to display SupplierAddress from my SQL … -
Replied To a Post in How to get ID of SelectedValue in a combobox
-When your event fires just store the supplier ID into a variable; -Use that variable in your SQL query for example--> select address from table where id=@some_number. Since every value … -
Began Watching How do u use your program on the network
How do i use my program directly on the internet, instead of opening visual studio and running my program? -
Replied To a Post in How do u use your program on the network
Learn asp.net ... and find a hosting service that supports asp.net files. Free hosting services do not support asp.net but you can use php instead (example 000webhost) -
Replied To a Post in correcting words ?
Okay, now i realize that I misslead you. I tought that you were working in WPF(basically an upgraded winform framework). I' ve googled how to implement that on windows form … -
Replied To a Post in correcting words ?
I think not, Did you manage to do some extra work once you imported your dll? -
Began Watching projecteuler.net - Maximum path sum
Hey! So I am having trouble with this [problem](projecteuler.net/problem=18)! Basically you have to find the path that gives the largest sum down this tree: 75 95 64 17 47 82 … -
Replied To a Post in projecteuler.net - Maximum path sum
you will have to use another logic for you program. altough your logic is good at first if you lower your triangle (if you reduce the number of rows) then … -
Began Watching Auto Shutdowner
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Diagnostics; namespace ShutDowner { public partial class Form1 : Form { int i; … -
Replied To a Post in Auto Shutdowner
what is the problem? -
Began Watching help needed to snooze a C# alarm clock application
The alarm clock application works by setting a certain time and then it perform a certain task eg:sound an alarm, display a messagebox test message. But the problem comes where … -
Replied To a Post in help needed to snooze a C# alarm clock application
first of all you should make a new thread. I do know how your data is stored but neverless, you should specify for each one of them the snooze time … -
Replied To a Post in HELP ME COMPILING CODE
try this then: ` class Program { static void Main(string[] args) { cars.color = "blue"; cars.price = 0.2; cars.model = "volvo"; cars.mark = "volvo"; cars.WriteInfo(); //book parameters Console.ReadKey(); } } … -
Replied To a Post in HELP ME COMPILING CODE
class cars { public string mark; public string model; public string color; public double price; public cars(string markee, string modelee, string coloree,double pricee) { mark = markee; model = modelee; … -
Began Watching HELP ME COMPILING CODE
hello everyone i have wrote a code but i have problem compiling it ( making it run ) it's running but there are no any text's that i'm typing in … -
Replied To a Post in HELP ME COMPILING CODE
You arent calling the method from your class to the static vodi main() -
Marked Solved Status for free database hosting online
I have a database wich i made in SQL server managment studio (Microsoft based). I m curious on how would i export my entire database to a webserver? My application … -
Replied To a Post in free database hosting online
I ve found one for free, but it seems that i will have to buy a domain because this one does t offer migration from mssql to mysql but thanks. -
Began Watching c#
why do we have to seal a classes if we know that it's not going to inherit to any class. -
Replied To a Post in c#
Basically from my part I can tell you that it's just a smooth way of writting the code. If you know that you are not going to EXTEND your class … -
Began Watching classes
hi what is the difference between an abstract class, concrete class, partial class, and sealed class? -
Replied To a Post in classes
Google this yourself, and then you can write something yourself and if you dont understand it will help you out. -
Began Watching correcting words ?
Like what we see in the Microsoft office word, if i wrote "This is abble" will show me a red line under the word. my project is load text file … -
Replied To a Post in correcting words ?
[Click Here](http://msdn.microsoft.com/en-us/library/system.windows.controls.spellcheck(v=vs.110).aspx) I dont know if this is what you want but yes it should do the thing. Don't forget to import the DLL so that you can access the … -
Began Watching inserting splitted text to ms access?
How can I insert splitted texts to my ms access database? I can't seem to find the logic in it. :( Please help me. Here are my codes: This is … -
Replied To a Post in inserting splitted text to ms access?
Try this: OleDbConnection con; private void button1_Click(object sender, EventArgs e) { string items = textBox2.Text; string[] splittedText1 = items.Split(' '); string quantity = textBox1.Text; string[] splittedText2 = quantity.Split(' '); string … -
Created free database hosting online
I have a database wich i made in SQL server managment studio (Microsoft based). I m curious on how would i export my entire database to a webserver? My application … -
Began Watching free database hosting online
I have a database wich i made in SQL server managment studio (Microsoft based). I m curious on how would i export my entire database to a webserver? My application … -
Began Watching about getting unwanted default values in my rich text box
i retrieved my values in a default array from sql query ,, bt evn if i have one element in my array m getting a list of items ,, y … -
Replied To a Post in about getting unwanted default values in my rich text box
viewerlist.Lines = list.ToArray(); where does this come from? -
Marked Solved Status for Why does this code throw execption
if (ts1.CompareTo(DateTime.Now) == -1 && ts2.CompareTo(DateTime.Now) == -1) { MessageBox.Show("...."); } the function asks for a object, i gave an object... -
Edited Why does this code throw execption
if (ts1.CompareTo(DateTime.Now) == -1 && ts2.CompareTo(DateTime.Now) == -1) { MessageBox.Show("...."); } the function asks for a object, i gave an object... -
Created Why does this code throw execption
if (ts1.CompareTo(DateTime.Now) == -1 && ts2.CompareTo(DateTime.Now) == -1) { MessageBox.Show("...."); } the function asks for a object, i gave an object... -
Began Watching Why does this code throw execption
if (ts1.CompareTo(DateTime.Now) == -1 && ts2.CompareTo(DateTime.Now) == -1) { MessageBox.Show("...."); } the function asks for a object, i gave an object... -
Gave Reputation to deceptikon in Going to new line (sqlcommand class)_
Two options. One is a verbatim string: var query = @"select beggining_school, end_school FROM Student,student_weekend,Weekend WHERE Student.ID=student_weekend.studentID AND student_weekend.WeekendID=Weekend.ID" Note that indentation is significant in the string, as are newlines. … -
Marked Solved Status for Going to new line (sqlcommand class)_
cmd = new SqlCommand ("select beggining_school, end_school FROM Student,student_weekend,Weekend WHERE Student.ID=student_weekend.studentID AND student_weekend.WeekendID=Weekend.ID ", con); I just want to say that i don't have any problem concerning my code functionality. … -
Edited Going to new line (sqlcommand class)_
cmd = new SqlCommand ("select beggining_school, end_school FROM Student,student_weekend,Weekend WHERE Student.ID=student_weekend.studentID AND student_weekend.WeekendID=Weekend.ID ", con); I just want to say that i don't have any problem concerning my code functionality. … -
Created Going to new line (sqlcommand class)_
cmd = new SqlCommand ("select beggining_school, end_school FROM Student,student_weekend,Weekend WHERE Student.ID=student_weekend.studentID AND student_weekend.WeekendID=Weekend.ID ", con); I just want to say that i don't have any problem concerning my code functionality. … -
Began Watching Going to new line (sqlcommand class)_
cmd = new SqlCommand ("select beggining_school, end_school FROM Student,student_weekend,Weekend WHERE Student.ID=student_weekend.studentID AND student_weekend.WeekendID=Weekend.ID ", con); I just want to say that i don't have any problem concerning my code functionality. … -
Gave Reputation to 0914541592 in Questions
2. An integer greater than 1 is said to be prime if it is divisible by only 1 and itself. For example, 2, 3, 5 and 7 are prime numbers, … -
Marked Solved Status for (.xml vs .txt)saving
I have read pretty much about xml. I know that it is good to save data inside but i just can t get it why wouldn t I save my … -
Gave Reputation to deceptikon in (.xml vs .txt)saving
Let's start with one quick clarification, XML is a *text* format. So technically you can save XML to a .txt file. ;) > I just can t see xml being … -
Created (.xml vs .txt)saving
I have read pretty much about xml. I know that it is good to save data inside but i just can t get it why wouldn t I save my … -
Began Watching (.xml vs .txt)saving
I have read pretty much about xml. I know that it is good to save data inside but i just can t get it why wouldn t I save my …
The End.