|
|
In C++ I used CWinThread to create forms on separate threads. Is there a CWinThread equivalent for .NET?
|
|
|
|
|
System.Threading.Thread
only two letters away from being an asset
|
|
|
|
|
I'm made a RDLC report with .net 2005 and ms-access XP.
I've taken 8.268 x 11.698 inch (A-4) size of report area because it's not a list its a proforma,
and I've set all controls which covers whole page, means one record covers a single page.
I've manually desiged report and given blank area in report for initial margins in left,right,top,bootoms.
Report result is satisfactory and all data displaying properly.
But a little problem with printing. When I Print report
It print 4 pages which takes some data of left portion of first page
and second page takes content from right portion and also in
third and fourth page.
after Keen observation i've seen that the by default print dialog sets the
margin 1" for all sides. when we set page margins 0,0,0,0
in page setup dialog box, report printing is perfect as i want in one page.
Is any method to change page setup (Margin) by code in report viewer so
I can print my page every time correct and does'nt need to change page
setup every time I print.
Ashkumar
|
|
|
|
|
I can usually get up and running with a Forms control pretty quickly, but this one has me baffled. I can only conclude that I don't understand what it's for.
Basically, I need a control to display a list of items, one at a time. I need the ability to scroll through said items and change them on the fly. For example, say the user is using a program and types a new value into the DomainUpDown control. The new value replaces the old value at the currently selected index.
But that isn't how the DomainUpDown control behaves. It doesn't change the selected item to the value that's been entered. I'm not sure why.
Any clues will be appreciated. If there's another control I should use instead, I'd be happy if someone could point me in the right direction.
|
|
|
|
|
I did a finer reading of the documentation[^] for the DomainUpDown control class...
The user can also enter text in the control, unless the ReadOnly property is set to true (the string typed in must match an item in the collection to be accepted).
Well, apparently the DomainUpDown control isn't what I'm looking for.
|
|
|
|
|
I would just use a ListView or ListBox.
|
|
|
|
|
Hi.
I'm writing an application with Compact Framework 2.0 SP 1. I want to apply the [STAThread] attribute to the main method, but there seems to be no such attribute. I get offered the MTAThread attribute, but not STAThread. Of course, the compiler doesn't find either. It just seems to be missing in the referenced assemblies (System.dll). I didn't find anything about this problem on the web, so could anybody help me, please? I'm quite desperate. I already reinstalled the CF 2.0, no success. Nobody else seems to have had this problem, ever. Help!!!
Thanks!
rudiman
-- modified at 18:59 Saturday 2nd December, 2006
|
|
|
|
|
You can't do that. STAThreadAttribute is not supported in Compact Framework.
---
b { font-weight: normal; }
|
|
|
|
|
Hi....
I have devoloped website in asp.net.
I just upload the project using ftp. Its works,
but i dont know how to upload sql database on server.
Can anybody please help me, Pls give me full details.
I used connectionstring in web.config which works for localhost.
but what connection string i should use for uploding on net.
|
|
|
|
|
Don't cross post
only two letters away from being an asset
|
|
|
|
|
hi
i want to create a variable based connection string in sql server ,
i want to give data source field in the connection string after getting it from a computer name variable , is that possible . if so how ,, can any body tell me the syntax
hello
|
|
|
|
|
Data Source=[MachineName]; Initial Catalog=....
If the database in on the machine the application is running on you can use
Data Source=.; Initial Catalog=...
only two letters away from being an asset
|
|
|
|
|
|
pls help me that how i populate the data of a selected row from one datagridview to another datagridview.
i need your help.
thanks in advance
regards
taniya banerjee
mail me to -
taniyabanerjee@rediffmail.com
|
|
|
|
|
Hallo,
the data shown in a datagridview come from the datasource, which can contain e.g. a Dataset or a datatable. By modifing them the grid display is also altered.
To change data you can do e.g.
datatabel1.rows[23][53]=datatable2.rows[65][2]
//copy cell in row65 column2 to row23 column53 in datatable2
or
datatabel1.rows.add(somedatarow)
I hope it helps.
cu
|
|
|
|
|
Hello friends,
How can i make a web service interface which can access using HTTP POST Method (not by SOAP Method). Means request and response in xml format.
If anyone has idea about this please help me.......
Thanks
Rgds
Nithin
|
|
|
|
|
i want to add oracleDataAdapter in the data tab in the visual studio .net 2005
when press choose item then navigate to oracleDataAdapter check it and press OK.....surprisingly it doesn't appeared in the tool box
what is the solution?
thanks in advance
haitham
|
|
|
|
|
You did every thing right. Are you looking under the right tab in the ToolBox? I put them under the General tab and they popped up just fine.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
i did that under the general tab and data tab but it didn't work
when i search for a solution to this problem i read that there are controls should be registered before added to the toolbox
should it? and if how can i do that?
tanks for ur attention to answer me
haitham
|
|
|
|
|
i forgot to mention that i want to add these controls in web project not in windows project as i did it successfully in windows
thanks in advance
haitham
|
|
|
|
|
Hi,
Does anyone ever manipulate the L1, L2 cache directly when writing managed application for Windows? Is it possible to load the whole application in L1 or L2 cache. I was told by my boss I should load my application into L1 or L2 cache for performance reason. As I've never written such code before, I'm wondering whether it can be done. Hope you guys can give me a few pointers.
Thanks,
chew
|
|
|
|
|
AFAIK you can't do it directly, since the processor keeps whatever it used most recently in the cache. What you can do is make the inner loop of your most computationally intensive section of code small enough that it can fit in the cache entirely. You also want to write it so the working set of your data will also fit in the data cache completely.
--
Rules of thumb should not be taken for the whole hand.
|
|
|
|
|
Thanks. Does that also mean I can't manipulate the cache if I'm writing unmanaged application using language such as unmanaged c++.net?
chew
|
|
|
|
|
What kind of performance benefit do you think you'll get over the Windows Task Scheduler and the on-chip Cache Manager?
More importantly, without regard to its feasibility, what would it cost you to develop such a mechanism versus it's best POSSIBLE performance benefit? (Assuming there are no side-effects on the rest of the system, of course)
Now, recalculate that cost, throwing in developing fixes for the inevitable problems something like this will generate.
Is it really worth it?
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|