|
Hai all
I am working on project inwhich i ahve to dislay the live telecast of an video capturing device at one corner of the winform.
Please suggest me a control which can slove my problem.
Advance thanks.
sukanyavarma
|
|
|
|
|
use directx.Capture namespace
Mess With The Best And Die Like The Rest
|
|
|
|
|
Dear snouto,
Thanks for your information.
I think it is an activex control.
I am trying to write wrapper for inter operability.
Regards
SukanyaVarma
Sukanyavarma
|
|
|
|
|
I have a system where several accounts can exist, in several flavours. I decided to use XML files for storage where each account gets it's own file. At startup, the system loads all accounts in memory.
Have a look at this class diagram.
When mass deserializing, I don't know how to specify of what type (Administrator, Business or Member) an account will be. I tried setting up the deserializer with the root type (Account) but any attempt throws an error about unexpected type.
XmlSerializer serializer = new XmlSerializer(typeof(Account));
Then I tried specifying extra types but the same error arises.
XmlSerializer serializer = new XmlSerializer(typeof(Account), new Type[] { typeof(Administrator), typeof(Business), typeof(Member) });
Any idea how this problem could be resolved?
|
|
|
|
|
I use raw data printing in an accountancy program. XP Clients has no problem with that , but i cannot print any report from Windows me client..
And i use Oki 520 and 310 printers, they have three mode for Fonts ("NLQ","HSD","UTILITY") to print. But i cannot choose which one will be used when printing. I s there any method. Thank you.
|
|
|
|
|
Cross-posting to multiple forums is considered rude, so don't do it please.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
hi!
i've a question about Trace.
i want to use the trace (System.Diagnostic nemaspace) mechanism to generate (on demand) error and/or state messages for the eventlog. but it's only possible to generate information messages (Type=Information), no warnings or errors?! or is it possible anyway?
here's my code:
TraceListener Listener=new EventLogTraceListener("myApp");
Trace.Listeners.Add(Listener);
...
void doSometing()
{
try
{
}
catch(Exception e)
{
Trace.WriteLine(e.Message,"Error");
}
}
thanks in advance!
|
|
|
|
|
If you're wanting specifically to work with the eventlog, try using the System.Diagnostics.EventLog class. This will provide all of the writing methods you will need -- including writing an "error" event.
|
|
|
|
|
Hai all
I want to use the serial port class of vsnet 2005.
Presently iam using vsnet 2003.
how can i get the corresponding Dll, so that I can add the Reference and use it in my project.
If above procedure is not feasible suggest me any new way.
Please help me
varmag
|
|
|
|
|
You can't use the classes from the .NET Framework 2.0 in your VS.NET 2003 project's.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Thanks For your information.
I am new to .Net.
Please suggest me any alternative.
Thanking You
|
|
|
|
|
Just Google for "VB.NET Serial Port", and you'll find a bunch fo home-brewed solutions. One of which can be found here[^].
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
hi
how can i get array value form arraylist of arrays?
<br />
<br />
ArrayList objXLIST=new ArrayList();<br />
objXLIST.Add(arrXValue);
<br />
<br />
<br />
how can i get values from objXLIST?
|
|
|
|
|
Just use an index on the list:
gotTheArray = objXLIST[0];
---
b { font-weight: normal; }
|
|
|
|
|
Hello,
Method 1: Array theArray = objXLIST[0] as Array;
Method 2: IList theList = objXLIST[0] as IList;
HTH. Cheers.
Maqsood Ahmed - MCAD.net
Kolachi Advanced Technologies
http://www.kolachi.net
|
|
|
|
|
Hi all,
I would like to know how to convert Dataview to a DataSet.
I have a library which takes only DataSet as parameter, and therefore, I need to convert the a Dataview to a DataSet in order to use this library....plz help
Kayne
-- modified at 2:02 Friday 14th October, 2005
|
|
|
|
|
If you already have a DataView (presumably with data "in" it), don't you have the DataSet too?
Can't you just do this:
public DataSet GetDsFromDv(DataView view)
{
if (view != null && view.Table != null)
{
return view.Table.DataSet;
}
return null;
}
DataViews act on DataTables, after all. They're a tool for manipulating the data in tables.
There's no way of creating a brand new DataSet directly from a DataView, but then again, the DataView wouldn't have much meaning without the DataTable and DataSet.
Hope this helps.
The most exciting phrase to hear in science, the one that heralds the most discoveries, is not 'Eureka!' ('I found it!') but 'That's funny...’
|
|
|
|
|
Hi,
Thanks for the reply
But it is the records in the Dataview that I must pass to my function in my library.
PS: I did a filtering on my Dataset and obtained a DataView like this:
dv = new DataView(ds.Tables["Query5"], "LOAN_TYPE = '10/10/2004'", "",DataViewRowState.CurrentRows);
|
|
|
|
|
First off, you're initializing your DataView twice in the code above:
DataView dv = new DataView();
dv = new DataView(ds.Tables["Query5"], "EVENT_DATE='14/10/2005'","",DataViewRowState.CurrentRows);
...and the answer to your question is no. The method I sent will return the DataSet containing the DataTable upon which the provided DataView is based.
DataSets do not implement filters or custom sorting - they are collections of DataTables, whereas a DataView is a customized view on a DataTable that allows sorted viewing and finer control over what DataRowStates the consumer can "see".
Is this a case where you are wanting to take the results as they appear in the DataView and feed them to this other component that only accepts DataSets? If so, then you could just create a table that matches the view (or original table) and copy the contents of the view's rows into the new table, then pass the table's DataSet into the component in question. I should mention at this point that doing something like that is bound to affect performance, but since you asked:
Example (crude but hopefully effective):
using System;
using System.Data;
class Class1
{
[STAThread]
static void Main(string[] args)
{
DataTable t1 = new DataTable();
t1.Columns.Add("Age", typeof(int));
t1.Columns.Add("Name", typeof(string));
t1.Columns.Add("SomeLetter", typeof(string));
for (int x=0; x<10; x++)
{
DataRow row = t1.NewRow();
row[0] = 10-x;
row[1] = "John " + x.ToString();
row[2] = new string((char)(65 + x), x + 1);
t1.Rows.Add(row);
}
DataView view = new DataView(t1, "Age > 5", "Age DESC", DataViewRowState.CurrentRows);
DataTable t2 = new DataTable();
t2.Columns.Add("Age", typeof(int));
t2.Columns.Add("Name", typeof(string));
t2.Columns.Add("SomeLetter", typeof(string));
for(int p = 0, pc = view.Count; p<pc; p++)
{
DataRow newRow = t2.NewRow();
DataRowView rowV = view[p];
newRow.ItemArray = rowV.Row.ItemArray;
t2.Rows.Add(newRow);
}
Console.ReadLine();
}
}
The most exciting phrase to hear in science, the one that heralds the most discoveries, is not 'Eureka!' ('I found it!') but 'That's funny...’
|
|
|
|
|
Thanks a lot turbochimp. That solved the problem for me
|
|
|
|
|
Currently im have 9 projekt in one projekt. 7 of them is generating dll'sa dn 2 is generating exe-files. If a change a dll-projekt, like adding a new function. I compile the whole thing, and i don't get access to the new funktin in the dll. I have to remove the reference to the dll in the exe file projekt and add it again to get it to work. Is there a work around so that i dont have to do this all the time.
Happy coding from Sweden
|
|
|
|
|
Don't reference the dll file, reference the project.
---
b { font-weight: normal; }
|
|
|
|
|
That solved my problem
|
|
|
|
|
Hai every body,
I am working on project related to industrial security.
I have to display the camera input in a windows form.
Is there any control available for live video display in dotnet frame work.
If no control is aavailable in the dotnet frame work please suggest me a good third party control.
Please healp me.
Varmag
varmag
|
|
|
|
|
Hi!
I've a problem...I'm developing an application in which i've to do some drawing stuff. Application is related to Carpet Designing. I created a panel to draw the carpet design on it. When i select to draw a line on it, line is drawn but when i minimize the wonidow and restore it, drawing is lost. Also whenever the paint() is called. Line drawing code is written in MouseMove handler. WHAT IS THE SOLUTION???
-- modified at 23:22 Thursday 13th October, 2005
|
|
|
|