|
Hi Giorgi,
Thanks. Actually I never left, I continue reading CP articles and forums,
but I refrain from reacting or answering most questions since I am not happy
with the direction this site is taking (quantity seems far more important than
quality), and in particular I object to the black and-white voting system.
But occasionally I do enter a single message.
Regards,
|
|
|
|
|
I remember reading about it on your blog here, at CP. As for black and white voting system, the user who has asked the question can vote in the same way as it was in last.
|
|
|
|
|
|
This might help[^]
Regards,
Thomas Stockwell
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Visit my Blog
|
|
|
|
|
plz use Google before posting a question.
|
|
|
|
|
Dude, try google before asking a question
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
ths is 4rm, not msn/txt. plz dnt uz txtspk.
|
|
|
|
|
J4amieC wrote: ths is 4rm, not msn/txt. plz dnt uz txtspk.
Wtr fkn rs0l.
|
|
|
|
|
Can't use Google and is an annoying text speaker.
Blog link to be reinstated at a later date.
|
|
|
|
|
public void UpdateTextBox(String data)
{
if (this.InvokeRequired)
{
this.Invoke(new Action<string>
(UpdateTextBox), data);
return;
}
txtData.Text = data;
}
|
|
|
|
|
And again! Why are you posting random bits of meaningless code? If you have a question please spit it out, I don't do mind reading on a Friday.
Bob
Ashfield Consultants Ltd
|
|
|
|
|
ListBox1.EnsureVisible(index)
|
|
|
|
|
Is there meant to be a question here?
Bob
Ashfield Consultants Ltd
|
|
|
|
|
I'm not sure there's intelligent life there.
|
|
|
|
|
Pete O'Hanlon wrote: not sure there's intelligent life there.
Basing on how well formed the inquiry was, I am sure you are right on
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
1. You shouldn't use the default variable names. ListBox1 tells you nothing about the purpose of the listbox, and is unmaintainable - rename it to something more appropriate such as theProgrammerWhoPutThisListBoxInIsACompleteMoronWhoMustBeHuntedDownBeforeHeGetsTheChanceToReproduceNotThatHeStandsMuchOfAChanceOfMating.
2. Don't post snippets here. This forum is for questions, it's not notepad.
3. See suggested variable name in 1.
|
|
|
|
|
You got my 5 for the variable name. Hope you don't mind if I borrow for my next project
Bob
Ashfield Consultants Ltd
|
|
|
|
|
Feel free. And while you're at it, ask her if she's got a sister.
|
|
|
|
|
Pete O'Hanlon wrote: ask her if she's got a sister
LMFAO!
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia)
|
|
|
|
|
Hi all. In my application i have one data table what can be binded to control on one form and can be filled on another form.
<br />
<br />
this.cLIENTBindingSource.DataSource = this.dataSet1.CLIENT;<br />
<br />
....<br />
<br />
this.comboBox1.DataSource = this.cLIENTBindingSource;<br />
<br />
In proper moment i press a button to make refilling of CLIENT data table.
<br />
private void simpleButton1_Click(object sender, EventArgs e)<br />
{<br />
this.cLIENTTableAdapter.Fill(this.dataSet1.CLIENT);<br />
}<br />
In this case all work fine!
But when i bind this data table to control on one form and fill this one on other form like this:
Form 1:
<br />
<br />
this.cLIENTBindingSource.DataSource = this.dataSet1.CLIENT;<br />
<br />
....<br />
<br />
this.comboBox1.DataSource = this.cLIENTBindingSource;<br />
<br />
....<br />
<br />
private void simpleButton1_Click(object sender, EventArgs e)<br />
{<br />
Form2 form2 = new Form2();<br />
<br />
Form2.Show(this.cLIENTTableAdapter, this.dataSet1.CLIENT)<br />
}<br />
<br />
Form 2:
<br />
<br />
private void simpleButton1_Click(object sender, EventArgs e)<br />
{<br />
_dataAdapter.Fill(_dataTable); <br />
}<br />
<br />
internal void ShowDialog(System.Data.Common.DbDataAdapter DataAdapter, System.Data.DataTable DataTable, System.Windows.Forms.BindingSource BindingSource)<br />
{<br />
<br />
_dataAdapter = DataAdapter;<br />
<br />
_dataTable = DataTable;<br />
<br />
this.ShowDialog();<br />
}<br />
In this case all sad. Fill is make vary slow and even may fail. Where is problem here and what i can do to resolve it???
THANK
|
|
|
|
|
This doesn't quite make sense.
In case 1 you fill dataset and in case 2 you fill datatable. Also in case 2 the code is executed based on user input (button click) so it's not immediate.
Perhaps you should explain a little bit more what you are trying to achieve.
The need to optimize rises from a bad design.
My articles[ ^]
|
|
|
|
|
This just a sample.
Actually i use one static dataset in my application and can display in two diffrent windows forms (suppose parent and child) same data table in the same time, all work fine, till i start to fill this data table in one form, in this case Fill operation are maked very slow. But when i use so one form and fill data table exatamente in it all work fine. Example above just describe this situation.
|
|
|
|
|
There could be two reasons. Either the statement used for fill is slow or the existing binding is making it slow. Before filling the dataset, remove any bindings to it and rebind after the fill. Perhaps that would help.
The need to optimize rises from a bad design.
My articles[ ^]
|
|
|
|
|
Yes its a solution. But why when i fill this table in the same form where binded my control (either without rebinding) all work fine, but when in another all work very slow????? Thats the Point.
modified on Monday, October 27, 2008 3:52 AM
|
|
|
|
|
As I said in the first post, the scenarios are not the same.
In your first example you fill the dataset. So it seems that you don't have a datatable in the dataset, but it's created during fill.
In the second example, you already have a datatable and you're filling it. So it makes me wonder if you have existing event handlers, binding etc. attached to the datatable. If so, they can be the cause to the slow fill. Especially if binding is involved since existing binded objects must be refreshed when binding is done. This wouldn't be the case in example 1.
Without seeing the actual situation, it's merely guessing. However, the filling speed should be equal in both cases if the query is the same and the 'surroundings' are the same (eventhandlers etc)
The need to optimize rises from a bad design.
My articles[ ^]
|
|
|
|