|
Hi,
In C# you do not need to pass the pointer to the array. Your DLL Import line should look like:
<br />
[DLLImport("x.dll")]<br />
public extern void DoIteration(float[] xarray,float[] yarray,const int[] array);<br />
Do your best to be the best
|
|
|
|
|
|
Hope I am not asking the question at wrong place.
I have used CrystalReportViewer in Windows application.
I have a report wich has a SubReport inside it.
The report works well for few pages but when is exceeds 50 pages it becomes painfully slow.
And I suppose it is slow while rendering. Does anybody has any idea what I might be doing wrong.
Or is there any way to optimize its performance?
Thanks.
Every bit counts ADD
|
|
|
|
|
Guys what is the formula for the average brightness of and image and also the formula for the contrast of an image.
tony-yeyo
|
|
|
|
|
The average brightness of the image would be the average of the brightness of each pixel in the image. Add them all together and divide by the number of pixels.
The contrast is the difference between the lowest and highest brightness in the image.
---
b { font-weight: normal; }
|
|
|
|
|
Hi.
Im doing a VirtualListView using 1 ListView, 1 VScrollBar and 1 HScrollBar.
Where im just adding items that can actually be showed. This so it goes way much faster and has much less flicker when adding 58000 items one by one. (Has to be done this way as there is no way to know how many items that should be added or when it is finished, reading items from stream).
My problem is not to Scroll down/up with VScrollBar but to scroll to see other columns with HScrollBar.
In picture below A and C is my VirtualListView and B is standard ListView from .net. As you can see my VirtualListView:s are not showing correct display area.
VirtualListView.png
How can this be done?
|
|
|
|
|
I am not sure I quite understood your question but if you have derived your listview from the standard .net listview, you can use the Autoscroll property of the listview. This would by itself display the correct area.
|
|
|
|
|
I have tried the following with no result.
Not even if i change
new Point(hScrollBar1.Value, listView1.AutoScrollOffset.Y);
to
new Point(250, 1);
How should it be done?
this = UserControll
listView1 = ListView
hScrollBar1 = HScrollBar
void hScrollBar1_ValueChanged(object sender, EventArgs e)
{
Console.WriteLine("listView1.AutoScrollOffset: " + listView1.AutoScrollOffset.ToString());
listView1.AutoScrollOffset = new Point(hScrollBar1.Value, listView1.AutoScrollOffset.Y);
this.ScrollControlIntoView(listView1);
Console.WriteLine("listView1.AutoScrollOffset: " + listView1.AutoScrollOffset.ToString());
}
|
|
|
|
|
|
Im writing this so if anyone else search for it they will find my solution.
I have done a walk around for this problem.
By using the inbuilt Scrollers and just having one VScrollBar over the region the default one should be. all works good. hope someone see this as usefull
|
|
|
|
|
hi all
My Doubt might be a simple one .... how can we display the message Box in the center of the parent window?? i am passing 'this' in the arguments ... still its displayed in the center of the screen , not in the center of the parent window ...
Can anybody suggest an idea??
Akhil
|
|
|
|
|
I dont think that this is possible.
But you could always do your own MessageBox with a Form.
Example:
<br />
Form f = new Form();<br />
f.Size = new Size(100, 100);<br />
f.StartPosition = FormStartPosition.CenterParent;<br />
f.ShowDialog();<br />
|
|
|
|
|
Hy,
My idea is this. Suppose you have a windows form named frmMain and the TextBox txtTest. At form load event place this code:
<br />
txtTest.Left = frmMain.ActiveForm.Width / 2 - txtTest.Width / 2;<br />
txtTest.Top = frmMain.ActiveForm.Height / 2 - txtTest.Height / 2;<br />
Also at design time set the Anchors of txtTest to Right and Down. It should work.
Do your best to be the best
|
|
|
|
|
Thanx For the reply
But i dont really understand how do u relate messagebox and textbox...
|
|
|
|
|
Hi,
I want to start the system's favorite web browser from my c# app with an URL I specify.
How do I do this?
Regards,
Stefan
|
|
|
|
|
System.Diagnostics.Process.Start("http://www.youraddress.com");
|
|
|
|
|
|
Hey guys,
I'm monitoring the disc drive of my computer, now, when a CD was inserted, i want to check wether the disc is an audio disc or not. Is there a simple way to accomplisch that?
Thnx...
I love it when a plan comes together!
|
|
|
|
|
Hi all,
I finally got it right to populate a listview with all the availible printers. I want to user to be able to say:
When there is a report to be printed use this printer,
When it is an invoice/slip use this printer.
So now i can display all the printers and have the user select it according to their needs. But i only have the names of the printers thanks to this code:
public void Main()
{
ManagementScope scope = new
ManagementScope(@"\root\cimv2");
scope.Connect();
ManagementObjectSearcher searcher = new
ManagementObjectSearcher("SELECT * FROM Win32_Printer");
lvPrinters.Items.Clear();
foreach (ManagementObject printer in searcher.Get())
{
// MessageBox.Show("Printer", Convert.ToString(printer["Name"]));
// Console.WriteLine(printer["Name"]);
ListViewItem _printeritem;
_printeritem = lvPrinters.Items.Add(Convert.ToString(printer["Name"]));
}
}
I want to know if having the name is enough or would i need the path of the printer aswell?
I want to be able to send a file, like pdf and html, directly to the printer that the user selected.
"Many of life's failures are people who did not realize how close they were to success when they gave up." Thomas A. Edison
-- modified at 5:47 Thursday 10th August, 2006
|
|
|
|
|
Okay, i figured out how to get the path of the printer and added that into the listview as a SubItem.
as the user selects the printer, i store the path in the DB.
1. Is it possible to send a file(pdf) directly to the printer using the Report Printer(that the user selected)? <if it is a report that needs to be printed>
2. Is it possible to send a file(html) directly to the printer using the Slip Printer(that the user selected)? <if it is a slip that needs to be printed>
"Many of life's failures are people who did not realize how close they were to success when they gave up." Thomas A. Edison
|
|
|
|
|
Hi,
How to get treenode in treeview for given search string.
|
|
|
|
|
You must search it manually (recursive).
Node -> ChildNode -> ChildNode -> ...
|
|
|
|
|
Hi.
How can I write a modem command on it?
For example I receive a RING command, now I want write a "A" command for answering.
serialPort1.WriteLine("A") do't do this work.
why?
Best wishes
|
|
|
|
|
Keep your question in one thread...
It works.. just use your code and use com port toolkit
to capture your data.
Try Write not WriteLine.
|
|
|
|
|
Hi,
I am doing windows Mobile Instant Messaging Application in VS2005 using C#, How to Append a text as I dont have RichTextBox?
Anybody help me,
sarala
|
|
|
|