|
|
Hello,
I have a project that need exporting data from a datagrid to MS Word and add bullets on each line. I know how to export data to word but no idea how to add bullets to it. Is any one know how to do this? Please help me!!
Thanks in advance!!!
|
|
|
|
|
Hello,
I have DataGrid with the event defenition:
foreach( DataGridTextBoxColumn dataGridTextBoxColumn in this.styleStages.GridColumnStyles ) {<br />
dataGridTextBoxColumn.TextBox.Leave += new EventHandler(this.GridTextBoxLeave);<br />
dataGridTextBoxColumn.TextBox.Enter += new EventHandler(this.GridTextBoxEnter);<br />
<br />
<br />
<br />
}
In the Leave event I grab the current cell:
private void GridTextBoxLeave (object sender, System.EventArgs e)<br />
{<br />
DataGridTextBox dtb = (DataGridTextBox) sender;<br />
DataGridCell cell = this.dataGridStages.CurrentCell;<br />
int r = cell.RowNumber;<br />
int c = cell.ColumnNumber;<br />
int rowCount = this.getRowCount();<br />
<br />
this.dataGridStages.EndEdit(this.dataGridStages.TableStyles["Stages"].GridColumnStyles[c], r, false);<br />
Debug.WriteLine("Leave: "+r+" - "+c);}
So, if I click away the current cell is the cell that I just LEFT (which is good), however, if I use TAB key to move to the next cell, the current cell will be the one I just moved to.
How can I make TAB key press to act the same as the TextBox.Leave event?
Thank you
|
|
|
|
|
hello,
how can I convert a 24bpp Bitmap object (the I stored before in the memory) to a 8bpp?
I want to use LockBits...Thx!
|
|
|
|
|
When a TreeNode is deleted from any level in TreeView, suscribed events in TreeView are lost. Even contextual menus does not active. Any idea?
Daniel Velázquez
Mathesis Consultores
México
|
|
|
|
|
Hello,
In my datagrid, the pressing Tab key, generates ChangeCurrentCell event.
Is there a way of forcing a Leave event when you press Tab key?
Or saying the other way, can I change the event that is triggered by defualt when I press Tab key.
Thank you
|
|
|
|
|
You can call another event from the current event: Inside you code for ChangeCurrentCell, call Leave.
|
|
|
|
|
Hey Guys,
Does anyone know of any good commercial audio processing libraries which can be used with .NET (either natively or via COM)? I'm looking for something which can mix multiple input files (mp3 or whatever) into one output file.
I've already found one at http://www.nctsoft.com/products/NCTAudioStudio2/ but the only version which comes with support is $2000 which is out of our budget.
Cheers
James
|
|
|
|
|
Hello everyone.
It's similiar problem as the last thread I pasted.
Two tables invoice and order_details are related, invoice_no is the foreign key of the order_details table. When I delete an invoice, the corresponding order_details record will be deleted automatically because the delete rule is cascade. Then if I try to loop a field say "type" in order_details table like:
foreach(DataRow row in ds.Table["Order_Details"].Rows)
{
row["type"]....
}
an error happens which says "Can't access the deleted rows. Dynamic SQL generation for the delete command is not supported against a selectcommand that doesn't return any key column information".
I try to use like
ds.Table["Order_Details"].AcceptChanges();
or write the chances back to the database. But it still doesn't work.
I think it may have some concurrency problem, does anybody know how to solve the problem please???
Asura
|
|
|
|
|
Hello, everyone! I am writing a interface to manager a invoice system database in Access.
I have a customer table and address table. Every customer may have several addresses. The delete, update rules are cascade.
If I delete a customer, the related addresses will be deleted at the same time. An error happens when update the address table which says "Concurrency Violation: the delete conmmand affected 0 records". I know this could be caused by the constraint relation. But I don't know how to avoid this happen. Any idea please???
Thanks in advance!
Asura
|
|
|
|
|
Hi,
I have a hashtable which store the object key and the object itself. Lets say, the map store id and the Student object. And there will be other objects which will refer
to the student objects in the hashmap. And how can I know
that whether the student object in the hashtable are not referred by other object, so that I can remove the student in the hashtable ?
Thanks
|
|
|
|
|
Make a control object that contains a counter and a reference to a student object. Store the control objects in the hash table, and use the counter to keep track of the references to the object. Each time you add a reference to it, increase the counter, and each time you remove a reference, decrement the counter. All objects where the counter is zero has no references, and can be removed.
---
b { font-weight: normal; }
|
|
|
|
|
Hello, somebody can help me with a development that I am doing for pockets. porblema is that necisto to find the way to consult the external ram memory and memories of pocket PC}. somebody knows some libreria that it can consult this. I thank for the aid to them.
|
|
|
|
|
Hi
I want to implement logging framework in a .NET application. The logs should go in a SQL Server database.
How can I do that? Any reliable sample links? Thanks in advance.
Pankaj
|
|
|
|
|
It's already been done in the Enterprise Library, Logging and Instrumentation Application Block, found here[^].
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
|
HI all,
How to get match percentage between two string using c# or vb.net.I need it urgently.Thanks in advance.
Ashok Mohanty
|
|
|
|
|
Match percentage? Based on what comparison of the strings?
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
|
In a Windows Forms application we have a MDI area where multiple forms can be opened up at one time. Often the users want to toggle from one form to another and asked us to put some custom toolbar buttons similar to what you see on your web browser on the main application toolbar in order to achieve this behavior. I know that you can toggle nicely using the Control+Tab (forwards) or Control+Shift+Tab (backwards) Keys. However, I want to mimic that same exact behavior when the user clicks on the toolbar buttons.
I tried to achieve this by using the Activate() method on an individual MDI form after getting all of the MDI forms and determining which needed to be sent to the front. This works, but when you Maximize a single MDI Form and try to use Activate() it shows this distracting flashing when you are toggling between the MDI forms. Does anyone know how to fire the Windows key event for Control+Tab or Control+Shift+Tab from within the clicked event of a toolbar button?
Many thanks,
Lee
|
|
|
|
|
I guess you could try SelectNextControl on the MDI parent form (or is it the MDI client, I would guess). I don't know it if will work (probaby not), but try it.
If it doesn't work, you have the array of MDI children (in the MdiChildren property.) Find the current active child (ActiveMdiChild ) in the array, and then ActivateMdiChild the previous or the next in the array. It's not so hard:
void SelectNextMdiChild(bool next)
{
if(MdiChildren.Length <= 1)
return;
From current = ActiveMdiChild;
for(int i = 0; i < MdiChildren.Lenght; i++)
{
if(MdiChildren[i] == current)
{
if(!next && i == 0)
{
ActivateMdiChild(MdiChildren[MdiChildren.Length - 1])
}
else if(next && i == MdiChildren.Length - 1)
{
ActivateMdiChild(MdiChildren[0]);
}
else
{
if(next)
ActivateMdiChild(MdiChildren[i + 1]);
else
ActivateMdiChild(MdiChildren[i - 1]);
}
return;
}
}
} I just wrote that code and didn't test it, but it should achieve your desired effect.
Good luck!
-- LuisR
Luis Alonso Ramos
Intelectix - Chihuahua, Mexico
Not much here: My CP Blog!
|
|
|
|
|
Hello, all!
I have 2 comboBoxes with the same itemCollection: Px, Py and Pz. They where built so that if I choose Px in comboBox1 the itemCollection in comboBox2 is only Py and Pz. To do this I created an event (DropDown event) for each of the comboBoxes that clears the itemCollection of the other comboBox and rebuilts it without the selectedItem of the comboBox that triggered the event.
This works just fine if the comboBoxes are DropDown, but it doesn't prevent the user from writing anything in the comboBoxes!
To make the comboBoxes readOnly I had to make them DropDownList, but when I click one of them the selectedItem disappears, wich means I can leave the comboBox without any selectedItem!
Any ideas on solving this problem? Or do I have to keep the comboBoxes DropDown and create another event (which one?) that prevents the user from writing anything in the comboBoxes?
Thank you in advance,
Patrícia Gonçalves
|
|
|
|
|
Hello!
You'll have to set the SelectedIndex property of the ComboBox whose items you've rebuilt afterwards.
Regards,
mav
|
|
|
|
|
Thanks! I saved the selectedItem in a temporary string (t), rebuilt the itemsCollection and set the selectedItem of the comboBox to t.
Is this what you ment? Anyway... it worked! Thank you!
|
|
|
|
|
Hello,
I have:
foreach (DataRowView row in this.dataview) {<br />
for (int i = 0; i < row.Row.Table.Columns.Count; i++) {<br />
if (row["NumUnits"].ToString().Length == 0 || row["MonthsToService"].ToString().Length == 0) {<br />
<br />
break;<br />
}<br />
}
}
Is there a way of getting the index of the row within the IF statement?
Thank you
|
|
|
|