189 Posted Topics

Member Avatar for castajiz_2

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 …

Member Avatar for castajiz_2
0
2K
Member Avatar for samkri

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); } }

Member Avatar for Sulaiman_1
0
189
Member Avatar for castajiz_2

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 …

Member Avatar for JorgeM
0
377
Member Avatar for vishalonne

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?

Member Avatar for castajiz_2
0
196
Member Avatar for castajiz_2

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 …

Member Avatar for castajiz_2
0
222
Member Avatar for castajiz_2

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 …

Member Avatar for castajiz_2
0
239
Member Avatar for ddanbe
Member Avatar for kplcjl
5
563
Member Avatar for castajiz_2

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 …

Member Avatar for JorgeM
0
237
Member Avatar for Sifiso21031085
Member Avatar for maxpaine69

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)

Member Avatar for maxpaine69
0
142
Member Avatar for theashman88

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++) …

Member Avatar for Momerath
0
185
Member Avatar for lithium112

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 …

Member Avatar for lithium112
0
189
Member Avatar for castajiz_2

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?

Member Avatar for Ketsuekiame
0
368
Member Avatar for castajiz_2

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 …

Member Avatar for castajiz_2
0
202
Member Avatar for rody9
Member Avatar for BogdanCov
Member Avatar for Hanif_1
0
268
Member Avatar for AmrMohammed

If you need introduction to it(plain theory) I suggest to write on another section of daniweb...

Member Avatar for Momerath
0
118
Member Avatar for waseem1345

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.

Member Avatar for waseem1345
0
104
Member Avatar for darrylnuyda
Member Avatar for darrylnuyda
0
4K
Member Avatar for BogdanCov

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 …

Member Avatar for castajiz_2
0
137
Member Avatar for khair.ullah
Member Avatar for Kavitha_2
0
388
Member Avatar for Ajay_9

-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 …

Member Avatar for castajiz_2
0
259
Member Avatar for tanatos.daniel

What do you mean exactly when you say 'if the thext was an item' what else could it be in your case?

Member Avatar for tanatos.daniel
0
447
Member Avatar for Ajay_9

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 …

Member Avatar for Ajay_9
0
165
Member Avatar for tanatos.daniel

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 …

Member Avatar for castajiz_2
0
354
Member Avatar for theashman88

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 …

Member Avatar for castajiz_2
0
442
Member Avatar for nickurooo

-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 …

Member Avatar for castajiz_2
0
223
Member Avatar for Quast

[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 …

Member Avatar for Quast
0
177
Member Avatar for 21303359

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)

Member Avatar for castajiz_2
0
122
Member Avatar for Krokcy

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 …

Member Avatar for Krokcy
1
300
Member Avatar for Ajay_9
Member Avatar for fliponymous
Member Avatar for castajiz_2
1
138
Member Avatar for fmtelepe

Google this yourself, and then you can write something yourself and if you dont understand it will help you out.

Member Avatar for deceptikon
-3
61
Member Avatar for thapzizo
Re: 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 then seal it. Personally, I've never used it but I think that other members could tell you more about it. …

Member Avatar for deceptikon
0
101
Member Avatar for castajiz_2

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) …

Member Avatar for castajiz_2
0
153
Member Avatar for chenpaii

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 …

Member Avatar for castajiz_2
0
377
Member Avatar for Amanpreet_1
Member Avatar for castajiz_2

if (ts1.CompareTo(DateTime.Now) == -1 && ts2.CompareTo(DateTime.Now) == -1) { MessageBox.Show("...."); } the function asks for a object, i gave an object...

Member Avatar for ddanbe
0
175
Member Avatar for castajiz_2

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 …

Member Avatar for deceptikon
0
161
Member Avatar for castajiz_2

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 …

Member Avatar for deceptikon
0
224
Member Avatar for hxn xfir
Re: Help

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 …

Member Avatar for JOSheaIV
0
817
Member Avatar for castajiz_2

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 …

Member Avatar for deceptikon
0
144
Member Avatar for castajiz_2

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?

Member Avatar for castajiz_2
0
209
Member Avatar for castajiz_2

If someone can provide a link with the use of Parameters instead of concatenation

Member Avatar for JorgeM
0
146
Member Avatar for Abhijeet1990
Member Avatar for castajiz_2

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

Member Avatar for castajiz_2
0
322
Member Avatar for Start4me

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 …

Member Avatar for Start4me
0
711
Member Avatar for abdul.mudaser

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 …

Member Avatar for castajiz_2
0
2K
Member Avatar for castajiz_2

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. …

Member Avatar for castajiz_2
0
270
Member Avatar for ddanbe

The End.