Forum: C# Aug 1st, 2008 |
| Replies: 9 Views: 2,350 Paste this before the save code and try modifying the first row in the DataGridView(I am assuming that you have two or more rows),
int selectIndex = this.listBox1.SelectedIndex;
... |
Forum: C# Jul 29th, 2008 |
| Replies: 9 Views: 2,350 Hi,
Try refreshing the DataGridView control programmatically(DataGridView.Refresh()) right after inserting the new row and if it doesn't then copy and paste the code as appear in you application... |
Forum: C# Jul 28th, 2008 |
| Replies: 9 Views: 2,350 Hi,
In this code
DataRow[] drAdded = dtRemarks.Select("", "", DataViewRowState.Added);
DataRow[] drModified = dtRemarks.Select("", "", DataViewRowState.ModifiedCurrent);
I think that... |
Forum: C# Jul 28th, 2008 |
| Replies: 7 Views: 4,104 Hi,
A littler late but this is all you need to do.
dataTable.Rows.RemoveAt(this.listBox.SelectedIndex);
of course like a said in one of the above posts this will update... |
Forum: C# Jul 25th, 2008 |
| Replies: 9 Views: 2,350 Hi,
If you had used the DataSource property it should not let you modified the ListBox. Can you post some code.
Regards,
Camilo |
Forum: C++ Jul 22nd, 2008 |
| Replies: 16 Views: 4,291 .
Hi,
Just because a named it 'arrays' doest mean that it is not a pointer ;-). Also a read the material on this site http://www.cplusplus.com and I now why to use 'nothrow'.
In this... |
Forum: C# Jul 22nd, 2008 |
| Replies: 6 Views: 2,098 Hi,
The reason is that every time you drag and drop a control into the designer. What happends under the hood is that a private property is created(say private MenuStrip menuString1 ). just change... |
Forum: C++ Jul 22nd, 2008 |
| Replies: 16 Views: 4,291 Hi niek_e,
Yeap, I've changed it. Thanks for your coments. Although I used your idea but without the 'initialize all elemets to zero' part and works fine. Now I am reading a manual and saw this... |
Forum: C++ Jul 22nd, 2008 |
| Replies: 16 Views: 4,291 Hi,
I was trying a thing but it didn't work. When will I learn tha array's size most be constant an compile-time :-).
Regards,
Camilo |
Forum: C# Jul 22nd, 2008 |
| Replies: 7 Views: 4,104 Hi,
I don't know if this is the best way to do it but my idea is to create a class for mapping the results that you get from the database and since the ListTextBox.Items.Add takes an object as... |
Forum: C++ Jul 21st, 2008 |
| Replies: 16 Views: 4,291 Hi Narue,
Thanks for your sugestions. Actually this is my first day at C++.
"So should you. If you want to talk about how things should be done, just go ahead and do them instead "
In case... |
Forum: C++ Jul 21st, 2008 |
| Replies: 16 Views: 4,291 Hi,
Hire is the code.
#include <cstdlib>
#include <iostream>
#include <sstream>
#include <string> |
Forum: PHP Jul 21st, 2008 |
| Replies: 18 Views: 783 Hi,
Cange this line of code:
$result = mysql_query("SELECT * FROM autoalto_mail where mail_id='".$_REQUEST[$a]."'" );
for this one |
Forum: PHP Jul 21st, 2008 |
| Replies: 18 Views: 783 Hi,
Ok we are moving forward. Now remove the 'where' clause.
Camilo |
Forum: PHP Jul 21st, 2008 |
| Replies: 18 Views: 783 Hi,
Try this to see if you are getting any rows.
echo mysql_num_rows($result) ;
you can also do $row[0] that way you wouldn't have to worry about the spelling. |
Forum: C# Jul 21st, 2008 |
| Replies: 4 Views: 2,121 Hi,
Make sure that your From has the same namespace as the class from where you want to cosume it.
Regards,
Camilo |
Forum: C# Jul 21st, 2008 |
| Replies: 8 Views: 1,977 Hi,
Try this
int id = 2;
string idStr;
idStr = id.ToString().PadLeft(4,'0'); |
Forum: C# Jul 20th, 2008 |
| Replies: 7 Views: 4,104 Hi,
"Microsoft supports thi datasource for us, why dont we use it? Could you explain to me?"
I think that the logic is like fallows. When you bind a DataTable to a ListBox what you get is a... |
Forum: PHP Jul 19th, 2008 |
| Replies: 8 Views: 531 Hi,
What program are you using for debugin your application?. I am using PHP Designer. I think that it would be useful to see what warnings does it give you.
Camilo |
Forum: PHP Jul 19th, 2008 |
| Replies: 8 Views: 531 Hi,
I am as newbie to PHP as you but in this line you missed teh '$' symbol.
sql="SELECT login,id FROM tblDealer WHERE login='".$email."' and password='".$password."'";
in front of the sql... |
Forum: C# Jul 19th, 2008 |
| Replies: 1 Views: 451 Hi,
Seems to me that you need to change the
AttachDbFilename=D:\WindowsApplication1\Database1.mdf;
to the path where is the database on the server.
Regards,
Camilo |
Forum: C# Jul 19th, 2008 |
| Replies: 4 Views: 716 Hi,
Check out this video that shows how to paging using LINQ to SQL
http://www.scottgu.com/blogposts/video/linqtalk1.wmv
Regards,
Camilo |
Forum: C# Jul 19th, 2008 |
| Replies: 1 Views: 522 Hi,
Go to this link.
http://blogs.msdn.com/xna/archive/2008/05/07/announcing-xna-game-studio-3-0-community-technical-preview-ctp.aspx
Regards,
Camilo |
Forum: C# Jul 19th, 2008 |
| Replies: 7 Views: 4,104 Hi,
The anwer is in your post. Simply don't use binding.
Regards,
Camilo |
Forum: C# Jul 19th, 2008 |
| Replies: 4 Views: 716 Hi,
I'v found this link. If is not exactly what you are looking for al least should point you in the right direction.
http://blogs.x2line.com/al/archive/2005/11/18/1323.aspx
P.S I've been... |
Forum: C# Jul 18th, 2008 |
| Replies: 3 Views: 396 Hi,
Write is with capital letter like
Console.Write("Hello");
. Remember that C# is case-sensitive.
Regards,
Camilo |
Forum: C# Jul 18th, 2008 |
| Replies: 3 Views: 7,856 Hi,
For connecting with the backend database you need ADO.NET, although you can use LINQ tp SQL to. It's your call. An you can add values dinamically to the ComboBox like this
... |
Forum: C# Jul 18th, 2008 |
| Replies: 3 Views: 3,714 Hi,
This is how to delete it from the CheckBoxList :
private void buttonDeleteItem_Click(object sender, EventArgs e)
{
for (int i = 0; i < this.checkedListBox1.CheckedItems.Count; i++... |
Forum: C# Jul 18th, 2008 |
| Replies: 4 Views: 1,055 Hi,
I assume that when you say "getting the docuement formatted differently is not an option" you mean that you don't want to change the original document. So here is my idea
1.Get the XML... |
Forum: C# Jul 18th, 2008 |
| Replies: 4 Views: 1,166 Hi,
I don't quite get your quetion. Can you post some code?.
Regards,
Camilo |
Forum: C# Jul 18th, 2008 |
| Replies: 4 Views: 716 Hi,
I have found this link
http://www.codeproject.com/KB/database/sqldodont.aspx
You should find articles about multithreading and Background Worker.
>I want to just send data in blocks... |
Forum: C# Jul 17th, 2008 |
| Replies: 4 Views: 739 Hi,
Find anything about OpenFileDialog, SaveFileDialog, RichtTextBox controls.
Regards,
Camilo |
Forum: C# Jul 17th, 2008 |
| Replies: 5 Views: 1,331 Hi,
Wha you missed was 'a in', here is the correct way.
XDocument test = XDocument.Load(dataPath + "c:\\test.xml");
var result = new XElement("a", from a in... |
Forum: C# Jul 17th, 2008 |
| Replies: 5 Views: 1,331 Hi,
In this links there are some videos. Are in VB.NET but you should be able of understand them.
http://www.asp.net/learn/linq-videos/
Regards,
Camilo |
Forum: C# Jul 17th, 2008 |
| Replies: 5 Views: 1,331 Hi,
You have syntax errors. It has nothing to do with importing any namespace.
Regards,
Camilo |
Forum: C# Jul 17th, 2008 |
| Replies: 18 Views: 1,093 Hi,
Thanks for sticking with me. Believe me I will never say tha C# and C#.NET are the same thing.
Regards,
Camilo |
Forum: C# Jul 17th, 2008 |
| Replies: 18 Views: 1,093 Hi,
>How many times do I have to mention Mono before you actually read it?
Sorry I forget the word 'serious'
>Are you simply trying to be selectively stupid, or are you really that dense?
... |
Forum: C# Jul 17th, 2008 |
| Replies: 3 Views: 475 Hi,
You can call MessageBox.Show("The test you want to display");
Hope this help.
Camilo |
Forum: C# Jul 17th, 2008 |
| Replies: 1 Views: 322 Hi,
Here is my idea. Paste this into the Main method in a Console App to see it working.
string name = "camilo";
Stack<string> s = new Stack<string>();
string temp... |
Forum: C# Jul 16th, 2008 |
| Replies: 11 Views: 6,860 Hi,
Try this code tha use JavaScript.
<html>
<head>
<title>Test</title>
</head>
<body>
<form> |