|
What I meant by that statement was actually this: as far as I know SlimDX needs to be installed to the user's pc as a package. But using one or two extra dll is acceptable.
Thank you for explaining why I get black screenshots, but your answer brings another question, why do I get normal successful screenshots sometimes? How can I directly read from DX's buffer? I get the handle of the game I want to capture from and set it as a device but C# doesn't let me read the buffer of another application because .NET wants to protect inter-application boundries I guess.
|
|
|
|
|
SimpleData wrote: How can I directly read from DX's buffer?
No idea, I've never done such a thing. Every game I'm ever wanted a screen shot of always had it's own facility to do so.
|
|
|
|
|
Hi,
I am trying to access an Agilent oscilloscope via RS-232. This needs to use VISA to access the port.
I am looking for some sample code to open and close the port as well as issues some commands and queries. Nothing fancy at all.
I have asked Agilent for this several times and am still searching. To say they are unhelpful is as polite as I get.
I wouldnt have thought I was the first person to want to access the port using a PC since the RS-232 comms module is specifically designed for that and is an optional extra which I am sure they didnt design just for me ! So why are they being so difficult and vague.
I wouldnt have thought this would be very difficult to do, but I am new to C# etc (I used to be a programmer in 80s and 90s using Cobol etc).
If anyone has any sample code of help or advice I would certainly appreciate it, since I have been looking for this for several weeks now and my deadline is right over my head !
Many thanks, George.
|
|
|
|
|
|
|
Hi,
Yes I have actually tried Google too and I have found nothing so far that helps me at the level I am at with C#. In fact there does not
This manual, tho for the 6000 series, does use VISA but only giving examples in VB which I am even less familiar with than C#.
The equivilent manual for the DSO3000 series does not have any VISA references in it.
So I dont know which VISA components to use nor the information to use with them either.
So I am again stuck.
|
|
|
|
|
|
I'm tasked with helping a developer finish up a web page that collects information about an order and populates some SQL Server tables. ASPX with C#. I'm not a C# guy, but my main job here is to keep him on task, interface with the dept. that will need this, and validate the data design. At present, there are some issues with postbacks. He does a good bit of validation, mostly to ensure fields aren't blank, and posts back upon exit of a good many fields. One problem is retaining focus after postback. The user enters a value, presses tab, and a postback occurs. Instead of the focus moving to the next field, there seems to be no field with focus after the postback, which forces the user to click in the next field with the mouse. So instead of being able to tab to fields as expected, the user keeps having to use the mouse to get the focus to the appropriate field. This is not very desireable at all. Another issue is what fields cause a postback. An example would be a field that can be empty (zero), but if it's >0 another field needs to be populated. The postback occurs after the first field and an error message is displayed next to the second field saying it can't be empty, yet the user hasn't even had a chance to enter anything in that field. This is most likely a simple fix of where the validation originates from (the second field instead of the first), but the programmer seems to think this is hard to do or not doable. I may have to dig into C#, but some help here would be appreciated.
Thanks,
Russell
|
|
|
|
|
Try posting on the ASP.NET forum, you might have better luck.
|
|
|
|
|
Alright, I'll try that. Thanks.
|
|
|
|
|
Defination OF Glbalization in IT
Feature of Globalization In C#.Net
Feature of Globalization in Sun Java
Benefits of Globalization
DisAdvantage of globalization
images for glbalization
future of globalization
|
|
|
|
|
Got a new homework assignment?
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
Well it seems so, use google its much more easier hehe
|
|
|
|
|
|
|
This seems to be your first post and you didn't even bother write 'Globalization' down properly or ask the questions in a more 'inquisitive' manner, rahter than just copying and pasting :p
However, you are lucky, I just solved your first question:
Click Here...
|
|
|
|
|
Hi Rekha,
I'd like to tell you that there are a set of rules[^] that you must follow to post a query here. Unless which, you may not receive replies that you can use. However, since this is your first post, I'll attempt to answer your query.
Rekha Achariya wrote: Defination OF Glbalization in IT
Globalisation is the process of getting your software ready to be available for the global market (Or rather building it carefully such that it is international market ready, with the first release itself). MS Centric developers have a tendency to call this process as "Internationalisation". This may not mean opening offices around the globe, but means that you develop your software in a way such that it can "adapt" itself to be readily available (or morphed) for several different languages/cultures with very minimal efforts (usually a rebuild, specifying the new language and changing resource settings accordingly).
Rekha Achariya wrote: Feature of Globalization In C#.Net
Feature of Globalization in Sun Java
Probably you wanted to ask what features are offered by [insert language here] for making globalisation easy? Well, .NET offers aplenty such that there are books on this topic. It cannot be discussed in a forum reply like this. However, you could start here:
Introduction to International applications in C# .NET[^]
Globalising and localising applications (.NET)[^]
Additionally, search Google, Wikipedia and MSDN. There are plenty of resource and tutorials available. I'm sure you can find some.
Rekha Achariya wrote: DisAdvantage of globalization
I cannot think of any disadvantage of writing an application that is Unicode ready (or Internationalisation ready).
Rekha Achariya wrote: images for glbalization
Sorry?
Rekha Achariya wrote: future of globalization
The world is slowly moving towards Unicode. Visual studio does an Unicode build by default (this comment is with respect to native code. -- .NET is always Unicode ready). Globalisation is important if you would like to have international customers.
Also, I'm not a very kind guy by any stretch of imagination. But since this is your first post and I want you to come back to this community...
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
Pick any three of the list and work it out, 3 pages minimum per topic:
definition of search engines
advantages of solving problems yourself
research = creativity + sweat
benefits of Google
do I have any future in a creative domain?
how good am I at flipping burgers?
the interdependence of language features and programmer lazyness
the great challenges of the 21th century
|
|
|
|
|
Hi, all,
I am doing a project like this. I have ten or more PictureBoxes, and I have customed methods for both MouseDown and MouseUp of those PictureBoxes, then when I MouseDown one PictureBox and MouseUp the other, I need to change the color of those PictureBoxes between these two. I am thinking to do this by one method like ColorChanged() , and I want this method can always change color of those PictureBoxes even though user trigger the MouseDown and MouseUp events over and over, is this possible? Pls, give me some coding suggestions! Thank you! Best Regards.
------------------------
I won't never ever give up!
|
|
|
|
|
Leapsword wrote: Pls, give me some coding suggestions!
What have you tried already?
Show us some code that is giving problems with an explanation of the exact problem.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
Hi,
Here is part of the code for that user control which I am working on. Truely there are some bugs here, but never mind. What I need to know is how I can code in that ColorChanged() method so that I can change the color of those PictureBoxes in between. Thank you and BR!
public DateTime getTimeAt(int x, int y)
{
DateTime selectedTime = new DateTime();
Random rnd=new Random();
int hour = (y - 10) / 20 + 8;
int minute = Convert.ToInt32((x - 25) / 50) * 10 + rnd.Next(1,9);
if (minute>59)
{
minute = 59;
}
selectedTime = DateTime.Today;
selectedTime = selectedTime.AddHours(hour);
selectedTime = selectedTime.AddMinutes(minute);
return selectedTime;
}
private void OnMouseDown(object sender, MouseEventArgs e)
{
StartTime = getTimeAt(e.X, e.Y);
Updating();
}
private void OnMouseUp(object sender, MouseEventArgs e)
{
EndTime = getTimeAt(e.X, e.Y);
Updating();
}
public void ColorChanged(int x, int y)
{
}
public void Updating()
{
maskedTextBox1.Text = StartTime.ToString("hhmm");
maskedTextBox2.Text = EndTime.ToString("hhmm");
}
---------------------------
I won't never ever give up!!
|
|
|
|
|
There are two approaches that spring to mind, but before I suggest them would you please confirm the impression I got from your first post.
You want to do this when the user presses the mouse button in one picturebox (MouseDown), moves the mouse (without releasing the button) to another picturebox and then releases the button (MouseUp).
Please confirm that I have understood this correctly.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
Hi, Henry,
Thank you for your quick reply! YES! That's what I mean, I really need your help. Thank you so much.
I won't never ever give up!!
|
|
|
|
|
Option 1 (probably the easiest)
Declare two class level PictureBox variables, one for the first (mousedown) and one for the second (mouseup).
In the MouseDown and MouseUp event handlers, identify the PictureBox where the event occurred and assign it to the correct variable.
Add a call to ColorChanged() at the end of the MouseUp handler
I'll do the MouseDown , from that you can work out how to do MouseUp
private PictureBox firstBox = null;
private PictureBox secondBox = null;
private void OnMouseDown(object sender, MouseEventArgs e)
{
PictureBox pb = sender as PictureBox;
if (pb != null)
{
firstBox = pb;
}
else
{
firstBox = null;
}
StartTime = getTimeAt(e.X, e.Y);
Updating();
}
after making the changes to MouseUp your ColorChanged() should firstly check if firstBox or secondBox is null, and if so return (nothing to do if you don't have two PictureBoxes ). then it is simply a matter of firstBox.BackColor = Color.Blue; (same for secondBox), or however you want to set the color.
I won't give you the second idea unless you don't think this will work as it is far more complicated.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
Heh,
Great! Thank you, Henry! I will try this option now. After I do this, I will post what I got here then, pls keep an eye on this post. Thanks a lot.
Liang
I won't never ever give up!!
|
|
|
|