Hi,
Paste your code here and the line triggering the error if you want us to help you.
User Profile
Collapse
-
What do you want to do exactly ? The MouseEnter event is triggered when the mouse is over your picture. Is it the event you want to manage ?Leave a comment:
-
Please provide more information on the error if you want us to help you.
What is the error message and what is the line it is appearing on?Leave a comment:
-
What code do you use to open the connection to the database?
If your database is hosted on an SQL server, you should use something like this:
Code:String strConnection = "Data Source=SQLSERVERNAME; Initial Catalog=DATABASENAME; User Id=USERNAME; Password=USERPASSWORD;Connection Timeout=30;" SqlConnection cn = new SqlConnection(strConnection); cn.Open();
Leave a comment:
-
I'd suggest you to use the RowsRemoved event on the dataGridView. See MSDN help.
You'll need then to detect which row(s) has been deleted (use ID of the rows), then write a query to delete the rows from your database.Leave a comment:
-
-
Lovro's solution should work, depending on what you want to do.
In what type of field do you want to insert the birthday value? In a database? In a textbox field on your form?
Maybe you want to create a DateTime variable, using that:
DateTime birthday = new DateTime(year, month, day)Leave a comment:
-
Hmm, ok. I asked that because it is not appearing in the code you pasted in your first post.
Do you get an error when running the program? How many files have you got and in which file is declared the forms1 structure ?Leave a comment:
-
-
Ok, I see.
Did you try unchecking the Allow trusted location on my network (not recommended) option under the Tursted locations tab?
Isn't it what you are looking for ?Leave a comment:
-
It's logical because strArrayCus contains 10 (=5*2, for example 5 rows by 2 columns) cells.
However, strArrayCus.Row s[0] should be equal to 2 (the first line contains 2 cells (=2 columns)).Leave a comment:
-
Hey,
Here's what I would do:
- Save the files list in an ArrayList
- Display the files (using foreach as you have done)
- Ask for the file to write in (as you have done)
- Check for the file (use ArrayList.Conta ins() method)Leave a comment:
-
First, paste your code into [ code ] tags, it helps the reader.
For your problem, I think you should use a switch{ case: } loop, and have a different process depending on the file you have to treat.
For example:
Code:private static void _AppendToUnSent(object obj){ switch (file_name ){ case "john.xml": append_packets_mutex_john.WaitOne(); case "tom.xml":
Leave a comment:
-
Which line raises the error ?
Code:if (checkedListBox1.CheckedItems!= null)
Code:if (checkedListBox1.CheckedItems != 0)
Leave a comment:
-
I don't understand your problem here. Could you be more specific? What doesn't work ?Leave a comment:
-
Just declare it as public in your form Form1, then refer to it as Form1.variable in your second form.Leave a comment:
-
I think this is more a MS Office question rather than a C# question.
But anyway, look around this post.Leave a comment:
-
Are you sure you didn't forget a " s1 = comboBox1.Text; " in the comboBox1_Selec tedIndexChanged method in Form1 ?Leave a comment:
-
First, you're right, PDFBox is a Java library. But it can be used in order to read .pdf files with C#.
The complete, simply and well documented solution to use PDFBox can be found here.
I'm sure it will help you to understand how it works. ;)
---
I don't know the pdfClown library, so I won't be able to help you on this solution.Leave a comment:
No activity results to display
Show More
Leave a comment: