|
hw can i use multithreading for doing that.
|
|
|
|
|
Use a BackgroundWorker or my ProgressWorker[^] that already combines a BackgroundWorker and ProgressBar .
|
|
|
|
|
Dear All,
I am trying to open reports which are in Ms Access.
I tried bellow code but it seems it opens full the database, what i want is to show only viewer inside my winform.
any ideas, suggestion or alternatives please?
MsAccess.Application app = new MsAccess.Application();
app.OpenCurrentDatabase(Utilities.DBFullPath, false, "password");
app.DoCmd.OpenReport("rptCommunity", MsAccess.AcView.acViewReport, Type.Missing, Type.Missing, MsAccess.AcWindowMode.acWindowNormal, Type.Missing);
app.Visible = true;
Abdul Rahaman Hamidy
Database Developer
Kabul, Afghanistan
|
|
|
|
|
Access will not open a report inside your own form. It does not have this option.
If you want to use your own form to display the report, you'll have to use some other reporting library and have it grab the data from the Access database.
|
|
|
|
|
You cant implement, Microsoft Access database does not support this.
Thanks
Md. Marufuzzaman
Don't forget to click [Vote] / [Good Answer] on the post(s) that helped you.
I will not say I have failed 1000 times; I will say that I have discovered 1000 ways that can cause failure – Thomas Edison.
|
|
|
|
|
how can i read an espcial address of bios or a location in ROM,
for example how can i read the content of adress 0x0ffff5. tnx
|
|
|
|
|
So far as I know, you must write it in C or C++ then compile it as DLL.
Then use "DllImport" to call the function in that C DLL from C#.
|
|
|
|
|
thank u, but may u tell me how can i do that in c or c++?
|
|
|
|
|
faraz34 wrote: how can i read an espcial address of bios or a location in ROM
Well it took me less than a minute to find this[^]. Try using the tools that are available to you.
|
|
|
|
|
would u please introduce some of those tools?
|
|
|
|
|
faraz34 wrote: would u please introduce some of those tools?
Did you follow the link I posted in my previous message? Have you looked at MSDN, Google, other coding websites?
Quite frankly, if you need to ask the above question, then I think trying to write a program to do what you want may well be too advanced for you.
|
|
|
|
|
Hello everybody,I use the datagrid control in almost all my applications that require it for displaying information. I think datagrid supports for user customization in deep. My question is, is it possible to scroll up and down only for the items(rows), I mean while the header remains stationary and if the provided space isn't enough to accommodate it fully. I'm just using it in web application. Thank you.
|
|
|
|
|
|
How can i do this. Really need this thing to be even immune to z-order changing. Almost like how a mouse cursor is drawn above everything else.
I need this because i'm working on a class project to in effect create 2 additional cursors on the desktop... windows only allows 1, but if i can fake it somehow?
|
|
|
|
|
How about a way to just draw on top of any desktop program... not actually using a circular window that is always topmost above the most topmost other window?
Wait!!! i remember i had a computer once where if you changed the volume using the keyboard, that some graphics showing the volume were drawn across the screen... i think they were visible even in a directx game...
modified on Monday, October 12, 2009 12:18 AM
|
|
|
|
|
Hi!!!!!!
How can I generate serial numbers automatically before each item in the listview as the items get added in the listview.
Kindly help me......... 
|
|
|
|
|
Create your own control derived from a listview, and put the code to generate the serial number in the overided Add event before you hand it to the base class.
No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced.
This message is made of fully recyclable Zeros and Ones
|
|
|
|
|
|
Hi,
I have an idle time monitoring class that works great by installing hooks to keyboard, mouse, ect. The problem is that when the application is minimized windows doesn't seem to send any messages to the application. Anybody has any ideas on how to trap this condition? I would like to application to timeout even when minimized!
Thanks,
Daniel
|
|
|
|
|
|
I am trying to put to gether a BaseTable helper class. This class is expected to be inherited by the TableClass (each table in the database has a class)
I have the feeling I may have the wrong handle on this but here goes:
T is the table class and oTable is the datatable with the rows I want to turn into a List<> of T
RowToObject<T>(oClass1, oTable);
This takes an empty copy of the TableClass and loads the datarow in, works well
My problem is trying to create a new instance of oClass
public List<T> ToList<T>(T oClass, DataTable oTable)
{
try
{
Type t = oClass.GetType();
List<T> ClassList = new List<T>();
foreach (DataRow oRow in oTable.Rows)
{
T oClass1 = new T();
RowToObject<T>(oClass1, oTable);
ClassList.Add(oClass1);
}
return ClassList;
}
catch (Exception)
{ throw; }
}
I get the following compile error that wants a new() constraint on T but this helper class should not know who is using it, indicating I am screwing it up.
Cannot create an instance of the variable type 'T' because it does not have the new() constraint
Enlightenment would be appreciated!
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
What the compiler is telling you is that nowhere in your generic type definition have you decided that type T must have a default constructor. What you need to do is change your class definition such that it has a new constraint[^] on the generic parameter. This will do two things: first, it will allow you to use new T() within your class (because you're specifying that type T must have a parameterless constructor), and second, it will only allow you to instantiate your generic class with types that have said default constructor. Without the new constraint, you would potentially be able to use a generic type that doesn't have a parameterless constructor, which would make new T() invalid.
Adam Maras | Software Developer
Microsoft Certified Professional Developer
|
|
|
|
|
Yup, got that from MSDN, so I trundled off to add a paramaterless constructor to the class (clsApp) that calls this one, made no difference to THIS class (TableBase) what I did to the calling class.
At which point I concluded I was screwing it up. TableBase , the class containing this method has no knowledge of the calling class clsApp and therfore how can it know there is a new() constraint on it.
So how should I put together a generic helper method that takes a table populates a List<> and can be inherited by all my table classes, I am considering passing the class instance into this method but it feels wrong.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
I think you got it wrong: you have to add the new constraint to you generic TableBase class.
Something like this:
public class TableBase<T> where T : new()
{
}
That tells TableBase<T> that T must have a parameterless constructor.
|
|
|
|
|
Your TableBase class will need to have the new constraint applied:
public class TableBase<T> where T : new()
{
}
Edit] note to self: refresh page to check if anyone else has responded before posting [/Edit]
|
|
|
|