|
what are the methods of DataGrid Class?
|
|
|
|
|
Alamzeb khan wrote: what are the methods of DataGrid Class?
A lot of the questions you are asking here are ones you should be able to find out by searching
http://msdn.microsoft.com/library (or http://msdn2.microsoft.com is more direct)
or, if you have Visual Studio, the online help.
In general the best way to get your questions answered here is to try something first and then ask when you get stuck.
Kevin
|
|
|
|
|
hi
i want to know, may I set the opacity for a usercontrol? if yes how?!
thanks
Salmani
|
|
|
|
|
how to display collection of video continusly .
i used component that in .net (COM component)
Amal
|
|
|
|
|
how to search a specific record in C#
|
|
|
|
|
how to search a specific row in DataTable and DataView in C#
|
|
|
|
|
hi
i couldnt find out your mean! but i think it would be useful for u.
dt_authorsDetails.Rows[0][0]
|
|
|
|
|
How to Search a specific record in a table in C#
|
|
|
|
|
you use a simple SELECT :
odbcCommand.CommandText="SELECT recordname FROM tableX WHERE recordname='something'";
first u must connect to the dAta base
this is for ODBC :
odbcCon = new OdbcConnection("DSN=The Data Source");
odbcComm = odbcCon.CreateCommand();
odbcCon.Open();
but it depends what data base u have
|
|
|
|
|
how can i make my own inputbox in C#
|
|
|
|
|
The easiest way is to make a class that inherits the standard input box, and add the funcionality that you want.
---
b { font-weight: normal; }
|
|
|
|
|
i need an example code on delegates and thier functionality
thanx
|
|
|
|
|
Instead of sending more questions to codeproject, you can try to search it in google.
http://www.akadia.com/services/dotnet_delegates_and_events.html
|
|
|
|
|
|
they are the same as function pointer in C++. But in C#, it's much easier to use once you figure out the syntax. Very useful and powerful, if you want to unify your code. there are full of articles on it.
Donkaiser
|
|
|
|
|
is it possible to make a child consistently active? if it is activates, all other children should not be given focus. is this possible? THanks!
|
|
|
|
|
hi,
how can i stream the sound live from the microphone with directx.net???
directx has a capture sound (managed) sample...but the problem here is:
public CaptureBuffer applicationBuffer = null;
applicationBuffer.Stop();
CaptureData = (byte[])applicationBuffer.Read(NextCaptureOffset, typeof(byte), LockFlag.None, LockSize);
...the buffer only could read if the applicationBuffer.Stop() is called...thats not fine for a live stream....
any other idea? will i need a any graphBuilder??? how does it work?
best regards, surf
|
|
|
|
|
I have a project that uses a COM DLL. .NET created an interop assembly for me. I want to embed the DLL and the interop (Type Library ?) within my application so as to have a single file execution(the executable). Is this possible?
I have tried adding the files as embedded resources, but still get a file not found exception when I run the application.
Thanks
www.lovethosetrains.com
|
|
|
|
|
Hi!
You can't embed other assemblies in your executable as resources and expect the framework to find them.
Resources are for images, strings and so on, not for compiled code!
There is a tool, though, that can wrap all assemblies your application needs into a single executable: http://research.microsoft.com/~mbarnett/ILMerge.aspx
But if you access COM objects, these cannot be merged into your application at all, only the interop assembly.
Regards,
mav
--
Black holes are the places where god divided by 0...
|
|
|
|
|
Thanks for the suggestion...
Once I sober up and feel like working on real work again I'll give it a try.. I downloaded ILMerge at work, and breifly thought about working with it at home and then realized I don't get paid for it.
I'm sure the best will get later this weekend... once again thanks.. reads like what I am looking for.
www.lovethosetrains.com
|
|
|
|
|
Hey all,
I'm writing an application where a FileSystemWatcher is monitoring for the addition of new files in a specific directory. When new files are detected the handler for the FileSystemWatcher.Created event captures information about the file and stores it in another object. What I need to do at this stage is start a Timer, when the first file is detected, for 5 seconds. If another file is detected before the Timer expires then the Timer should gain another 5 seconds. This should continue until the FileSystemWatcher hasn't detected a new file for five seconds, at which time the batch of captured data is moved to another stage of processing.
I think a Timer would be the best way to handle this need but I'm not sure. Do you guys think I'm on the right track or can you think of a better way to handle this kind of batched capture-and-release? I've been working on it for couple of days now and am totally confused. Any advice would be greatly appreciated.
Thanks.
-- DDennison
|
|
|
|
|
I am wanting to add a blank line to a datagrid so the user can enter new info. I found an example online (Newbie here!) that shows how to do it, but it only uses one table:
protected void dg_bind() {<br />
<br />
System.Data.SqlClient.SqlConnection SqlCon = new System.Data.SqlClient.SqlConnection( "server=localhost;database=northwind;trusted_connection=true;" );<br />
System.Data.SqlClient.SqlDataAdapter SqlDa = new System.Data.SqlClient.SqlDataAdapter( "SELECT TOP 10 ProductName FROM Products", SqlCon );<br />
ds = new System.Data.DataSet( );<br />
SqlDa.Fill( ds, "Products" );<br />
System.Data.DataRow BlankRow = ds.Tables[ "Products" ].NewRow( );<br />
BlankRow[ "ProductName" ] = "<font color=\"red\">add new product</font>";<br />
ds.Tables[ "Products" ].Rows.InsertAt( BlankRow, 0 );<br />
dg.DataSource = ds.Tables[ "Products" ];<br />
}
Currently my own BindData function looks like this:
private void BindData()<br />
{<br />
strPartNumberInputReference = txtPartNumberInput.Text;<br />
string SQLString = "SELECT c.cost, pt.description, dd.DrawingNumber, dd.DrawingRevision, dd.DwgPath FROM costs c INNER JOIN Parts p ON c.PartID = p.Id INNER JOIN PartTypes pt on pt.ID = p.PartTypeID LEFT JOIN DraftingData dd on dd.PartID = p.ID WHERE p.PartNumber = @PartID";<br />
SqlCommand cmd = new SqlCommand();<br />
cmd.Connection = new SqlConnection(strConnectSQL);<br />
cmd.CommandText = SQLString;<br />
cmd.Parameters.Add ("@PartID", strPartNumberInputReference);<br />
SqlDataAdapter adapter = new SqlDataAdapter(cmd);<br />
DataSet ds = new DataSet();<br />
adapter.Fill(ds);<br />
dgParts.DataSource = ds;<br />
dgParts.DataBind();<br />
}
How do I convert that first code that I bolded to work with my program and multiple tables?
|
|
|
|
|
Hi i have a tab control with several tab. I want to each time when i enter a tab the font become bold. i couldn't find a property for that. I know i can handle it at the enter event but don't know how.
Any suggestion?
Donkaiser
|
|
|
|
|
I did something like that once. It went a little somethin' like this...
private Font boldFont;
private void tabControl1_DrawItem(object sender, System.Windows.Forms.DrawItemEventArgs e)
{
if( this.boldFont == null )
this.boldFont = new Font( this.tabControl1.Font, FontStyle.Bold );
TabPage page = this.tabControl1.TabPages[e.Index];
bool selected = page == this.tabControl1.SelectedTab;
StringFormat frmt = new StringFormat();
frmt.LineAlignment = StringAlignment.Center;
using( Brush brush = new SolidBrush( page.BackColor ) )
e.Graphics.FillRectangle( brush, e.Bounds );
e.Graphics.DrawString( page.Text, selected ? this.boldFont : this.tabControl1.Font, SystemBrushes.ControlText, e.Bounds, frmt );
}
HAPPY WEEKEND!!!
Josh
|
|
|
|
|
I pasted ur code and the event is not firing up. i even got to property and doubleclick on drawItem.
Donkaiser
|
|
|
|