189 Posted Topics
I' ve converted mssql database to mysql database (locally). I ve created a free subdomain and found a free webhoster on 000webhost.com. I m trying to import my mysql database onto the server using phpmyadmin interface but am unable to do this. I get the following error-->#1044 - Access denied … | |
Re: listBox1.Items.Clear(); // for removing all items foreach(ListItem listItem in listBox1.Items) /* adding items to another listbox*/ { if (listItem.Selected == True) { listBox2.Items.Add(listItem); } } | |
I m getting the following error when trying to add a .mdf file and .log file to my account on somee.com ERROR--> "You don't have the permission to open this file, contact the file owner or a administrator to obtain permission". I need to get my database on the server … | |
Re: Set your main form property IsMdiContainer to true private void toolStripMenuItem_Click(object sender, EventArgs e) { Form f1 = new Form(); f1.MdiParent = this; f1.Show(); } is this what you want? | |
1. For all the accounts that have authority="admin", set permision to modify all of the files (attribute changes is datatype YES/NO),,, so basically a user can set yes or no depends on his will. 3. For each directory, print out his name, in which directory it is located, and how … | |
There was a user named Mitja Bonca wich spent a lot of his time on the C# section. Before a year ago i ve seen a algorithm that he did for a guy providing him help in that way. This algorithm was tremendous (was then) and i can t locate … | |
Re: The reference .Speech.Synthesis; does not exist in the library? How can i fix that | |
Hy guys, I managed to upload my winzip archive online and unzip it. However I can not access my website (I have the Default.aspx file which should be automatically recognized as the startup page, and lots of other files that go with the webapplication upload) however I get an error … | |
Re: have a look at this [Click Here](http://csharp-video-tutorials.blogspot.com/2012/11/mapping-virtual-path-to-physical-path.html) [Click Here](http://csharp-video-tutorials.blogspot.com/2012/11/mapping-virtual-path-to-physical-path_6.html) | |
Re: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApplication14 { public class Grades { public static void Main(string[] args) { int[][] grades; grades = new int[3][]; grades[0] = new int[3]; grades[1] = new int[2]; grades[2] = new int[4]; for (int i = 0; i < grades[0].Length; i++) … | |
![]() | Re: The problem is the mutliple readkey() method call, you have to have a storage for you readkey()... try this static void Main(string[] args) { Console.WriteLine("Press Spacebar to fire the gun. You start with 8 bullets in the mag.\n"); int i = 8; while (true) { ConsoleKeyInfo info = Console.ReadKey(); if … ![]() |
Why isn't the Microsoft built in class Random class an type static class as the Math. class is. Why didn't they make this class static? | |
I ve been searching google for a long time now but I m not sure what kind of application (gps) should I develop. I would like from you guys to give me some trendy suggestions on what kind of gps app would be interesting to make and the most important … | |
Re: [Click here ](http://www.youtube.com/watch?v=Aun44YiNJXc) | |
Re: If you need introduction to it(plain theory) I suggest to write on another section of daniweb... | |
Re: If i understood correctly you want your form covered with another panel? If so then just make a new location for panel2 for example: panel2.Location = new Point(0, 0); Adjust your coordinates. | |
Re: You've listed a lot of things what exactly is the main problem that s keeping you behind? | |
Re: Consider talking to your professor at school, he will definetly give you some ideas based on your knowledge... Your current knowledge is the most important thing. Don't get into something that may be too hard to solve. Of course, you can always try to make something big. Anyways you can … | |
Re: You should post more code, your event is not defined as it is in VB | |
Re: -make two tables, first one(subjects or themes whatever this is called, for example geography, astronomy mathematics, medicine, physics... depending on your questions). Second one(questions, all sorts of questionS no matter the subject). -make a realtionship 1:n -well this is it concerning the database ( you could add some aditional stuff … | |
Re: What do you mean exactly when you say 'if the thext was an item' what else could it be in your case? | |
Re: 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", img)); On line 5 remove the monkey sign(@), on line 2 (line one but second row) look where you comma … | |
Re: Dont want to sound too smart here but it's the same as the output from the MessageBox.Show(string) you must have a string output otherwise you'll get an error ... For your other part I would just go and convert each element to a string comboBox6.Items.AddRange(new int[]{1,2,3,4,5}.Select(x=>x.ToString()).ToArray()); Afters you could just … | |
Re: 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; int x = 2; y = x++;// or y=x=(x+1) , y stores x imediatlly and THEN x is being incremented … | |
Re: -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 is unique you will get only one result. After you read the executed query table store your address in a … | |
Re: [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 required property. TO IMPORT THE DLL DO THE FOLOWING: view-->solution explorer--> right click refferences--> add reference --> search the framework … | |
Re: 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) | |
Re: 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 you 'll see that your solution isn't good [Click Here](http://whatis.techtarget.com/definition/greedy-algorithm) for instance: 5 1 2 9 4 5 9 7 … | |
Re: You arent calling the method from your class to the static vodi main() | |
Re: Google this yourself, and then you can write something yourself and if you dont understand it will help you out. | |
Re: 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 then seal it. Personally, I've never used it but I think that other members could tell you more about it. … | |
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 is built in visual studio 2012 with C# (c# complitely). It s a University database without cotaining the student's entity(Table) … | |
Re: 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 price = textBox3.Text; string[] splittedText3 = price.Split(' '); con = new OleDbConnection(@"Provider=Microsoft.ACE.OLEDB.12.0;Data Source=path_to_your_database_file; Persist Security Info=False;"); // have a look … | |
Re: viewerlist.Lines = list.ToArray(); where does this come from? | |
if (ts1.CompareTo(DateTime.Now) == -1 && ts2.CompareTo(DateTime.Now) == -1) { MessageBox.Show("...."); } the function asks for a object, i gave an object... | |
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. I would just like the design to be like the above example.That is, I dont'want my whole sql expression to … | |
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 data into a .txt file once finished with my program tasks. Is it because xml offers a structural and more … | |
Re: I think that this guy aint comming back, so it would be nice for Mike Askew to post his code, i m really interested on how he did it. I would definitly use here three loops one for normal concatenation second for reverse concatenation and third for removing digits. I … | |
I ve always had a problem with this but never coped with it. Let s say I bring a button to a form and click on it two times a event will appeaer in the code section. EXAMPLE: private void button1_Click(object sender, EventArgs e) { } Let s say i … | |
private void Form1_Load(object sender, EventArgs e) { cn.Open(); } ERROR:Cannot open database "Persons" requested by the login. The login failed. can anyone tell me how to fix this? | |
If someone can provide a link with the use of Parameters instead of concatenation | |
Re: [Here you go](http://hintdesk.com/c-rsa-encryption-and-decryption/) | |
I would like to convert Control objects wich are in my array to progress bar Objects if possible. I know that the reverse conversion can be done explicitly without a problem but this one seems tricky. If impossible then please suggest something else instead. TNX | |
Re: when the user inputs for example 2x+y, you then want it to be 2*xcor(enteredvalue)+ ycor(enteredvalue) or do you want to apply integrals to this equation since differetiantion is all about integrals. If you want to do the first thing then i would suggest to see check if the equation contains … | |
Re: I think that by copy and pasting each of you errors onto google searchbox you should get pretty good information on what could be going on. It s hard to see what the issue is without any code. Maybe if you copy and paste you lines we could see the … | |
I combined mouse events o move my drawn rectangle object. Everything was fine i could move it and when i released the mouse button it stopped moving and settled down. However after rotating that object and then trying to move it around I just could not perform the action again. … | |
The End.