|
AFAIK, you can't. How is the application going to "see" if the flicker is acceptable to you or not?
You can enumerate all the modes that the video card supports. You'll have to check to see if that includes the refresh rates that are supported too. You might have to interrogate the monitor driver to see what refresh rates are supported (I have no idea how to do this!)
Then it's a matter of selecting the best rate. I don't see how you could possibly do this in code. My Mitsubishi DiamondPro can handle refresh rates up to 120Hz at 1360x768, but that doesn't mean it looks good doing it!
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hi,
I wonder could anyone help me. Basically, I need to use reflection to get all the classes, methods and parameters of an assembly which im going to use to output NUnit tests. Problem is for some reason when i call Type and MethodInfo i get all the information no problem, when i try to call ParameterInfo for a given Method it's giving me a System.IO.FileNotFoundException. I can see nothing I'm doing differently for ParameterInfo. These things always end up being something silly, you anyone sees what im doing wrong please point it out, Thanks
The error seems to occur on m.GetParameters() by the way.
foreach(Type t in mytypes)
{
OutputLabel.Text += "CLASS: " + t.Name + System.Environment.NewLine;
MethodInfo[] mi = t.GetMethods();
foreach(MethodInfo m in mi)
{
OutputLabel.Text += "-- Method: " + m.Name + System.Environment.NewLine;
foreach(ParameterInfo p in m.GetParameters())
{
OutputLabel.Text += "Parameters: " + p.Name + System.Environment.NewLine;
}
}
}
|
|
|
|
|
My bad, a mistake in my references, sorry for wasting time
|
|
|
|
|
Please help me out with this problem using C# programming:
using my method(GetData) , i have to locate and read an xml file.After reading from the file,i have to search the value of an element in that file.
Then i have to get the data corresponding to that element value in string format.This data will also include the type of value object.Then deserialize that string into valueobject.Return the valueobject.
kindly mail the solution to my mail id saptarshi_basu@infosys.com as i dont have internet connection.
|
|
|
|
|
Hi,
I need to send a request to a server (a XML file or stream) and recieve a response to that request.
Now I know that there are WebRequest (or HttpWebRequest) and WebResponse, but with them I can only use e.g. WebRequest.Create("http://www.google.com") and recieve the response.
What I need is where I can specify the URL, send data to that URL and recieve a response.
Can anyone help me?
Regards
|
|
|
|
|
You specify the url when you create the WebRequest object.
The data that you send has to be a proper request, in order for the server to recieve the data at all. Send the xml as a value in a field in the form data in the request.
The response that you recive from the WebRequest will be exactly what the server returns.
---
b { font-weight: normal; }
|
|
|
|
|
Guffa wrote:
Send the xml as a value in a field in the form data in the request
Sorry for the stupid question, but how do I do this? I can't find any proper functions in WebRequest for putting values to the request...
Regards
|
|
|
|
|
The GetRequestStream property returns the stream object that will be used to send the request stream. Put a key in front of the value and htmlencode it.
theStream.Write("code=" + Server.HtmlEncode(theXml));
---
b { font-weight: normal; }
|
|
|
|
|
Ok, that worked. Thank you
|
|
|
|
|
plz help me how to add comboBox in datagird.
|
|
|
|
|
|
|
Hi,
I want to get content of an url web page. Before, I used xmlhttp activex control in Javascript and could get it easily.
Like this:
<script language = javascript><br />
function getData()<br />
{<br />
var xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");<br />
xmlHttp.open("GET", "http://search.yahoo.com/search?p=abc", false);<br />
xmlHttp.send();<br />
xmlDoc=xmlHttp.responseText;<br />
document.write(xmlDoc);<br />
}<br />
</script>
Now, I want to do this in C#, what dll should I add in to my project, also how will I use it?
Thank alot.
Cheers.
|
|
|
|
|
hi
how do i make sure that user cannot create New Customer Profile if there's already one in Access database?
thanks
|
|
|
|
|
hi there,
That depends on which field(property) need to be checked for duplicate.
Assume that each customer has his id and the id must be unique in whole system. So that before creating a new customer, ur application will validate the id if it's already existed or not.
<< >>
|
|
|
|
|
yes, yes.. that's what i want to do (to check if that id is already in my database) how do i do that?
also, how to check for repeated data just based on three particular fields though i've other fields in that row... that means if 1 or 2 of the particular fields are repeated data, it's not considered as duplicates. but if all three of the particular fields have repeated data, it IS duplicate and how can i prevent that??
lastly, how to check for repeated data if based on all fields on a row?? meaning, all fields are the same then it's considered duplicate.
thank you for your time! =)
|
|
|
|
|
hi there,
ur question can be devided into 3 parts:
nidhelp wrote:
check if that id is already in my database
=> to validate: just execute "select id from customer where id= m_sID". If the returned result is not NULL, that means it's duplicated
nidhelp wrote:
if all three of the particular fields have repeated data
=> the similar thing u need to do:
"select id from customer where field1 = field1Val and field2 = field2Val and field3=field3Val"
nidhelp wrote:
if based on all fields on a row
=>similar to the second one with all fields need to be verified in WHERE clause
Happy programming
<< >>
|
|
|
|
|
I've a strange question: how to get the handle of the window that is behind my app's window and in a specific point.
Is it also possible to get the name of the Win32 control (I mean the UI control), if there is one, in that point?
Thanks
[ITA] Tozzi ha ragione: Gaia si sta liberando di noi.
[ENG] Tozzi is right: Gaia is obliterating us.
|
|
|
|
|
Look at this: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/windowing/windows/windowreference/windowfunctions/getforegroundwindow.asp
You can use the Spy++ tool in Visual Studio to get the lpClassName.
You could also use this tool:
http://www.codeproject.com/dialog/windowfinder.asp
|
|
|
|
|
I want to add an arrow cap to a line. So I use pen.EndCap = LineCap.ArrowAnchor. But the arrow is so small. How can I add a larger one? I try to use CustomLineCap, It is so troublesome and I failed.
Any advice?
Regards!
Radic
|
|
|
|
|
AFAIK CustomLineCap is the only way. I know it is difficult to get it working.
Maybe you can try to draw *manually* the arrow by filling a Shape.
[ITA] Tozzi ha ragione: Gaia si sta liberando di noi.
[ENG] Tozzi is right: Gaia is obliterating us.
|
|
|
|
|
I thought the manual way. But you know the slope of the line changes sharply and the arrow has to change. So it needs much calculation work and I doubt if the effect is good.
Radic
|
|
|
|
|
Another RAW way:
1. draw the line only (without arrows)
2. apply a scale to the Graphics object (ScaleTransform)
3. Draw a short line (few pixels long) with the default arrow cap.
you should try and try to get the correct scale and 2nd line's length.
[ITA] Tozzi ha ragione: Gaia si sta liberando di noi.
[ENG] Tozzi is right: Gaia is obliterating us.
|
|
|
|
|
In what way is the CustomLineCap class troublesome? I think that it probably is the easiest way to do it, so any other method would be even more troublesome.
---
b { font-weight: normal; }
|
|
|
|
|
Any easier way? Before you construct a CustomLineCap, you need construct GraphicsPath, FillMode, etc, which, I think, is troublesome. Will you be kind enough to show me an easier way? Thanks, thanks, thanks!
Radic
|
|
|
|