|
I want to take very fast screenshots of my full screen with a timer. I hope this can be done with DirectX.
On this page[^] is an example of doing this in C++. But... the rest of my project is in C#, so I hope it also can be done in C#. I need the screenshot as a Bitmap variabele, it won't be saved as a file.
Hopefully, someone got a full sourcecode example, because I don't know much of DirectX.
|
|
|
|
|
A generic collection i.e. cCurves is populated with data.
The collection has several fields.
I am interested in two of the fields i.e. Name and Name2
As a test, the following return data from the collection.
cCurves[0].Name1
cCurves[0].Name2
cCurves[1].Name
cCurves[1].Name2
cCurves[2].Name
cCurves[2].Name2
...
How can I use a loop to populate a simple array with the
data (Name, Name1 fields for each row) in the above collection please?
Thanks
|
|
|
|
|
for(int i=0; i<numElements; i++)
{
cCurves[i].Name1 = whatever;
cCurves[i].Name2 = whateverelse;
}
|
|
|
|
|
Can you please simplify the code as it seems to have syntax error. thanks
|
|
|
|
|
arkiboys wrote: Can you please simplify the code as it seems to have syntax error.
Ah... That is because I forgot to HTML encode the < symbol
for(int i=0; i<numElements; i++)
{
cCurves[i].Name1 = whatever;
cCurves[i].Name2 = whateverelse;
}
|
|
|
|
|
Please note that I am trying to create and populate a simple array from an existing collection. I just realised that I think you are not doing that in your earlier code. Thanks
|
|
|
|
|
You can try using foreach loop over this collection.
|
|
|
|
|
doing this at present
for (int i = 0; i <= cCurve.Count; i++)
{
}
not sure how to declare and populate an array from this collection (cCurve)
|
|
|
|
|
Array curve = new Array(cCurve.Count);
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
i want to do software updation for the application, i.e., when click Update button , if there is any new version is available it should update automatically, if there is no new version is available it should prompt a msg like " There is no newer version to update"
for this i tried with the following code
private void Updates_click(object sender, EventArgs e)
{
if (ApplicationDeployment.IsNetworkDeployed)
{
ApplicationDeployment CurrentDeploy = ApplicationDeployment.CurrentDeployment;
if (CurrentDeploy.CheckForUpdate())
{
CurrentDeploy.Update();
DialogResult dr = MessageBox.Show("Update Downloaded,Restart the Application", "Application Update", MessageBoxButtons.YesNo);
if (dr == DialogResult.Yes)
{
Application.Restart();
}
}
}
else
{
MessageBox.Show("No Updates are available", "UpDate Info");
}
}
but it is working fine for some applications but for my application it is not working.
Please Help me on this(is there any other methods to fullfil my requirement)
Thanks in advance
Praveenkumar Palla
|
|
|
|
|
How is it not working? Are you getting an error of some kind?
|
|
|
|
|
https://secure.ltcg.com/citrix/metaframexp/default/login.asp?ClientDetection=On'
http://www.dasblonde.net/PermaLink,guid,aa492057-3a39-4ab4-87c4-5adb36d3d41f.aspx
My Application(LaserControlSoftware) is giving this error- when i select appplication from startup menu.
LaserControlSoftware has encountered a problem and needs to close. We are sorry for the inconvenience.
Error Signature
EventType : clr20r3 P1 : lasercontrolsoftware.exe P2 : 1.0.0.0
P3 : 46231a32 P4 : mscorlib P5 : 2.0.0.0 P6 : 4333ab80 P7 : 32f8
P8 : d8 P9 : system.io.filenotfoundexception
PraveenKumar Palla
|
|
|
|
|
Is there a "details" button that shows the error details? You should look at the stack trace and see where the error is occurring -- is it happening in your code?
|
|
|
|
|
I would guess your issue has to do with your Application.Restart and your ApplicationDeployment object. The methods you are using assume that you are using clickOnce deployment. I am guessing that you are trying to update your application outside of ClickOnce. If you are there is a good chance that you have missed some settings. Things like the UpdateLocation. If you are using click once, then you don't have to write this code your self it will just get the latest version automatically.
Hope that helps.
Ben
|
|
|
|
|
Yes Ben
I agree with you
i will try again.
And expecting suggestions from u
Thanks in advance
PraveenKumar Palla
|
|
|
|
|
plz tell if you know :->
nims
|
|
|
|
|
Hi,
I am making a desktop application. The main problem i am facing is that its GUI affects adversely system resolution is changed. Can any body tell me how can i make resolution independent application? I have already seen many ready made components but we are not yet final what to use.
Any kind of link, suggestion and specially expert advice would be highly appreciated.
Thanks in advance...
Wasif Ehsan.
|
|
|
|
|
A sample web based solution code in C#, asp.net to diaplay Google Map and overlay my wmf or emf icon over the map. I want to and drag and reposition the icons.
--Himanshu
Dr.H.S.Mazumdar
Sr.Member IEEE
|
|
|
|
|
For someone who is a doctor and a senior member of the IEEE I would have thought you would have the ability to pose a question and give sufficient detail that we can help with your problem.
|
|
|
|
|
Real doctors have unclear handwriting. It stands to reason that nature is compensating for this person's use of the keyboard by gifting them with unclear thinking.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Hi everyone,
I am facing the following problem while working on my app:
I need to display large amount of data in a newly opened dialog window.
The dialog contains nothing but single dataGridView and Close button.
It takes about 10 seconds to load the data from the database so I decided to use BackgroundWorker to fill the table adapter. Unfortunately, the contents of my DataGridView is not properly refreshed (there are no rows displayed in the grid;
They appear if user for instance clicks on the column header, etc.)
The following is a part of my source code:
private void FormB_Load(object sender, EventArgs e)
{
backgroundWorkerDataLoader.RunWorkerAsync();
}
private void backgroundWorkerDataLoader_DoWork(object sender, DoWorkEventArgs e)
{
...
RefreshNotScannedObjectList();
...
}
private void RefreshNotScannedObjectList()
{
// suspends DGV's layout
InvokeMyDelegate(this.mySuspendDGVLayoutDelegate, null);
try
{
this.JKTableAdapter.FillByLocCode(
this.dataSetBS.JKDATA,
this.locationCode);
}
catch (System.Exception ex)
{
...
}
// resumed DGV's layout
InvokeMyDelegate(this.myResumeDGVLayoutDelegate, null);
}
I also tried to move resuming the DGV's layout to backgroundWorkerDataLoader_RunWorkerCompleted() but it didn't helped at all.
I would appreciate any help or hints.
Best regards
Robert
|
|
|
|
|
try filling one instance of dataset in background worker and then in background worker's completed event set the filled dataset to the dataset that is rowsource for the datagridview through binding source..
bindingSource.DataSource = dataSetB;
dataGridView.DataSource = bindingSource;
---------------
bw.doWork {... fill dataSetA ... }
---------------
bw.completed {
...
dataSetB = dataSetA;
bindingSource.DataSource = dataSetB;
...
}
life is study!!!
|
|
|
|
|
I need help with a program I am trying to do. It is asking to use a TextActor and make a digital clock that inherits from a regular clock. it has hours, minutes, seconds and states whether it is Am or PM. For some reason, my program will not build. Is there any way someone can help me figure out what I did wrong?
|
|
|
|
|
Standard question #2:
What error message do you get?
---
single minded; short sighted; long gone;
|
|
|
|
|
it is not showing an error sign, it builds but when it builds nothing is in the world
|
|
|
|