|
What you are talking about is a splash window.
There are a lot of examples out there, now you can search for them.
---
single minded; short sighted; long gone;
|
|
|
|
|
There are two ways to implement them and one of the ways is very wrong. Splash screens must be in a seperate thread from the main application if they are to be effective, unless they are just eye candy.
File Not Found
|
|
|
|
|
if i model robot in 3d max than can i do real time simulaton on XAML?i mean i want to control robot arm that is modelled in 3d max etc.angle variables will be in visual c#.my mechanic robot arm's any axesses are rotated than simulation will be rotated too.XAML can do it???.when i make this steps so can i do this simulation?
1)modelling my robot arm in 3d max or like this programme.
2)get angle variables from visual c#.
3)use these angle variables in XAML and rotates robot arm.
Are these steps true?
|
|
|
|
|
When you use the ObsoleteAttribute it generates a nice compiler warning when implementers use an obsolete method.
I would like to be able to create my own attribute that, if placed on a method and then referenced in a similar fashion, generates a customer compiler warning, or even error.
Ie.
[MyAttribute]
public class Foo{}
public void SomeMethod(){
Foo foo = new Foo();
}
Would generate my own compiler error or warning.
File Not Found
|
|
|
|
|
Looking at the code for the Obselete attribute under Reflector there's nothing special inside it but I was wondering if you inherited from it. It's sealed sorry, can't do that.
|
|
|
|
|
Plus I want custom warnings as well. Theres got to be some way for an attribute constructor to detect if the runtime is a compiler and then register a warning with it but I do not know. Web searches have been fruitless and I have been lazy
File Not Found
|
|
|
|
|
I know, it would be interesting to know how to do this so I did some Googling and nada. The only way I can think of is possibly building an add-in but that'd only work for VS and is no where near as elegant or reliable. I shall keep looking though.
|
|
|
|
|
Is there a way to control Voltage output of a USB Port. I'm trying to connect a custom made circuit through USB and send power on request to it.
|
|
|
|
|
I don't know but if you can the answer would be here http://www.usb.org/developers/docs/
File Not Found
|
|
|
|
|
AFAIK a USB can only supply a maximum of 5V anyway and I think it's fairly constant, that's why big devices such as printers have to be plugged into the mains.
|
|
|
|
|
Yeah... 5V is plenty ...however, I need to know if I can trigger the supply voltage on and off somehow. I don't need the USB to supply me with any power, but just act as a switch. I haven't had much time to research this, thanks for the replies so far.
|
|
|
|
|
I'm pretty sure that the power is supplied constantly in most cases, it'd probably be wiser to use the data line and when it's on transmit 0xff continuously and when you want off transmit 0x00.
|
|
|
|
|
Interesting. If I recall correctly the Data lines supply 3.3V when transmitting and 0 when not ? If so that's great. Now I have to find away to communicate with the USB Port itself via code. Thanks for the replies.
|
|
|
|
|
Might want to take a look at #UsbLib[^].
|
|
|
|
|
|
What is GetHashCode method for? More importantly what is HashCode and why would we need it ? Thanks in advance.
|
|
|
|
|
From MSDN[^]:
A hash function is used to quickly generate a number (hash code) that corresponds to the value of an object. Hash functions are usually specific to each Type and must use at least one of the instance fields as input. A hash function must have the following properties:
- If two objects compare as equal, the GetHashCode method for each object must return the same value. However, if two objects do not compare as equal, the GetHashCode methods for the two object do not have to return different values.
- The GetHashCode method for an object must consistently return the same hash code as long as there is no modification to the object state that determines the return value of the object's Equals method. Note that this is true only for the current execution of an application, and that a different hash code can be returned if the application is run again.
For the best performance, a hash function must generate a random distribution for all input.
/ravi
|
|
|
|
|
I know now to set a break point on my web method from VS 2005, but how do I get the web method to actually stop at that break point and when I access it?
Thanks
|
|
|
|
|
By navigating to that page. You can either run the website with F5, or you can attach the IDE debugger to the aspnet process.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
hello
i want to make an ocr in the .net... but can't find a dip dll around... plz if some one knows a link forward it to me
thanx
haseeb
|
|
|
|
|
I don't think there are any OCR solutions in .NET. It's a complex problem.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
I'm writing a class that represent one connection ( with remote host) informations.
public class ConnectionInfromation
{
public Socket socket;
public int ConnectionStatus;
}
and then creating an array from that class, so every element in the array carry an
information for one connection
private ConnectionInfromation[] ConnInformations = new ConnectionInfromation[10];
but the poblem occur's when i try to assign an instance of Socket class to socket member
in ConnectionInfromation class
ConnInformations[0].socket = server.AcceptSocket();
the exception NullReferenceException is thrown with the comment(Object reference not set to an instance of an object )
what is the solution for this, how can i assign an instance for socket member in
ConnectionInfromation class.
|
|
|
|
|
Hussam Fattahi wrote: private ConnectionInfromation[] ConnInformations = new ConnectionInfromation[10];
This creates an array, but the items in the array, are all null. You need to call new on each item to create it, as in ConnInformations[0] = new ConnectionInfromation ( that's a typo in your code, BTW )
Why not use a list ? Must you have exactly 10 ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
thanks alot, it works.
and for the 10, i was just testing the code.
and i was thinking about using an ArrayList.
|
|
|
|
|
If you're using C# 2005, you should never use arraylist, it's outdated crap. Use a generic List instead.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|