|
Thanks for your quick reply. I am not entirely sure we have understood each other correctly, my explantion beeing anything but good. However, my interpretation of you answear is that looping over all relations and filtering out the interseting ones using the matrices in memory is likely to be more efficient than placing the same information in a DB and retrieve them from there?
|
|
|
|
|
I'm not really clear on how your data is organized, or what you use it for, but I think that putting it in a database could really improve performance.
A database is built to extract information from large collections of data based on certain criterias. That sounds very much like what you are trying to do.
The example you mention where you group elements and select groups on the number of users, can easily be achieved with a single database query. And there is quite a lot of work put into the database to make these operations fast, so you might have a hard time to write anything that can match it.
---
b { font-weight: normal; }
|
|
|
|
|
Thanks for your reply. You are right, I should not try to reinvent the wheel. =)
|
|
|
|
|
I paint the form on form_paint event. Form has some labels.when i paint the form, labels r still systemcolors.control colored. what can i do to force them changing theirs colors. The Transparency Background is not working on Desktop forms.
|
|
|
|
|
you should use a panel to paint into it...
anyway, you have to change the labels background color manually, for example setting it to Color.Transparent
[ITA] Tozzi ha ragione: Gaia si sta liberando di noi.
[ENG] Tozzi is right: Gaia is obliterating us.
|
|
|
|
|
When i set labels background to Transparency , IDE says "This control doesnt support"
and i think there must be better way to achive this than adding panels to form.
|
|
|
|
|
hi
how import the dll of vc++ or c++ in c#, and how to use the function of that dll in c#.
plz reply me as soon as possible.
bye
|
|
|
|
|
first you have to know the exact signature of the functions you want to use.
See MSDN about the [DllImport] attribute. Here an example:
suppose you want to import the following function
int computeVal(int v)
that is inside YourDll.dll
in C# you should write:
[DllImport("YourDll")]
static int computeVal(int v);
I don't remember if {} is needed before the semicolon.
Please note that .NET Framework manages the data type marshalling automatically, but sometimes (very rarely) it may fail...
[ITA] Tozzi ha ragione: Gaia si sta liberando di noi.
[ENG] Tozzi is right: Gaia is obliterating us.
|
|
|
|
|
Hi
I was about to design a form witha datgrid and some buttons with certain operations namely first, previous ,next and last and some text boxes
I have to read two xml file( each xml file has one table)with data in it.
Now I have to create a relation between the two tables and display it in the datagrid.
Now using databinding I have to show the data from the datagrid columns to each text box
when teh next, previous ...etc buttons r clicked.
that is values from one column
for ex:
column name :DESC
values :MR BROS, VT BROS, CT BROS
when next is clicked, the values should be shown from the desc in to the textbox one by one.
This i have did it
this is the folowing code
private DataSet ds = new DataSeyt();
retrieve button click
private void RetrieveButton_Click_1(object sender, System.EventArgs e)
{
DataSet xml1 = new DataSet();
xml1.ReadXml("C:\\CDEV\\Relation\\cost_code.xml");
DataTable dt1 = xml1.Tables["cost_code"].Copy();
DataSet xml2 = new DataSet();
xml2.ReadXml("C:\\CDEV\\Relation\\cost_type.xml");
DataTable dt2 = xml2.Tables["cost_type1"].Copy();
ds.Tables.Add(dt1);
ds.Tables.Add(dt2);
DataColumn parentCol = ds.Tables["cost_type1"].Columns["cost_type"];
DataColumn childCol = ds.Tables["cost_code"].Columns["cost_type"];
DataRelation relTable1Table2;
relTable1Table2 = new DataRelation("cost_typecost_code", parentCol, childCol);
ds.Relations.Add(relTable1Table2);
this.dataGrid1.DataSource = ds.Tables["cost_type1"];
fnDataBindingforTextBoxes();
fnSetCurrencyManager();
}
private void fnDataBindingforTextBoxes()
{
this.ultraCostPaid.DataBindings.Add("Text", ds.Tables["cost_code"],"desscost_paid_by_us");
this.ultraCostType.DataBindings.Add("Text", ds.Tables["cost_code"],"cost_type");
}
private void fnSetCurrencyManager()
{
currManager=(CurrencyManager)this.BindingContext[ds.Tables["cost_code"]];
}
everything is working fine
but databinding on the grid is not used. that is if u select a row from the datagrid it should change the values in the textbox that i have already added data bindings for. if u notice just selct a row from the grid, now the values in that row should show in your textboxes you have put below.
Give a dataview for dataset
pls help me to do this
j o hn
|
|
|
|
|
How can you determine if a string is in fact a valid filename for the system I am on?
What i want to do is have a textbox where a user can edit a string, and then opening a save dialog where the text from the textbox shall be proposed as the name of the file, provided it is a valid filename. Otherwise I want to propose a standard default filename for him/her.
any ideas? I tried to use the path class and call one of it's static members since the documentation seems to say that all static members of Path check this for you. This does not seem to be the case however since I do not get an exception from for example Path.IsPathRooted(path), but when calling the showdialog() for the SaveFileDialog I get the argumentexception...
/Bjørn
|
|
|
|
|
|
I have a problem when using Combobox in C#. I know that in Foxpro, we can display more than one columns in the Combobox. Can we do this in C#?
Help me please!
|
|
|
|
|
|
Thank you very much for your reply! Nice day
|
|
|
|
|
I've used this control in my project, and it's exactly what I need. But I meet another problem!
When I opened the (drop-down) listbox by clicking on the Combobox, there was no problem; but when I opened it by pressing [Alt + ArrowKeyDown], the listbox also appeared, but with the drop-down portion (of the Combobox) over it!
How can I solve this problem? Thanks a lot!
|
|
|
|
|
How can I crop an audio file given it's starting and end positions...
|
|
|
|
|
it depends from the audio format. search CodeProject, there are some articles about that.
[ITA] Tozzi ha ragione: Gaia si sta liberando di noi.
[ENG] Tozzi is right: Gaia is obliterating us.
|
|
|
|
|
|
If the textbox resides in another application use the GetwindowText API.
If the textbox resides in your application create a public readonly property with returns TextBox.Text;
Programming is a way of thinking ... its a way of life. Some people have it and some people don't. Well at least thats what the voices in my head tell me.
|
|
|
|
|
Create The object of that form on which textbox residea.Than with the help of that object u can access every control which is placed on that form.
|
|
|
|
|
as above reply said you can use somthing like that
Form2 form= new Form2();
string text=form2.textBox1.Text;
MCAD
|
|
|
|
|
Hi,
i have an applications that runs on a pocket pc.
i'm trying to maximized the application by setting the FormBorderStyle = FormBorderStyle.None and
WindowState = FormWindowState.Maximized and ControlBox = false.
But when i add a main menu it doesn't work.
Any suggestions?
Please help.
Shay.
|
|
|
|
|
Hi Shay
The space on the PDA has haunted us all! Removing the boarder does not make to much difference as you are still stuck with the windows menu ontop of your form (unless you are not allowing access to the OS).
This being said I dont think that the menu is available without the boarders. I found the easiest thing to do is: find out the pixle size of the screen, subtract the height of the menu and set the form size to that. set the position to (0,0).
If you need more space on the screen try usings a tab control, decreasing the font sizes and maybe even squashing your controls some more (make your buttons smaller).
If the reason for the menu is only the SIP then rather not use the menu. Call the SIP Control when focus is set to a text input control.
Programming is a way of thinking ... its a way of life. Some people have it and some people don't. Well at least thats what the voices in my head tell me.
|
|
|
|
|
Hello Friends,
I want to add windows button to a particular cell of DataGrid of Winform on click of that cell.
Can you help me for the same.
Sachin Gedam
(Software Engg.)
Pune India
|
|
|
|
|
hi,
To add button to a paricular cell of DataGrid
we have to use ButtonColoumn class
With Regards,
Maheswararao.
|
|
|
|