|
how can i forcast the wheater with nn ?
|
|
|
|
|
I don't know what "nn" is, but the rest of your question can be answered here[^].
/ravi
|
|
|
|
|
|
Ah. There's a wealth of information out there on using ANNs to model weather forecasts, including this NOAA paper[^].
Sorry, I can't help you with specific code, although my interest in ANNs is in a similar space (financial trend analysis).
/ravi
|
|
|
|
|
I have two Datagrids, one above the other with the same width and X starting point. Is there a way that when the horizontal scrollbar of one is moved right-left, the scrollbar of the other moves to the same position as well?
Thanks!
RABB17
"Nothing fancy needed, please just solve all our problems as quickly as possible."
|
|
|
|
|
Handle the scroll event on one and set it on the other. If you do it for both, you need to set a flag to say it's autosetting, or you'll go into an endless loop.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Hello everyone:
What is the difference b/w
int x = (int)MyValue;
and
int x = System.Convert.ToInt32(MyValue);
which should be used when and why? Thanks.
We are using an automated tool for standard validation and its fussing about (int) way of type conversion, can someone plz explain the difference b/w the two. Thanks.
Robert
|
|
|
|
|
Hi Robert
Both ways do similar things, but it depends what the actual Type of MyValue is.
(int)MyValue is casting MyValue to type int. This means that MyValue has to be an int in the first place, or a type inherited from int (which isn't possible of course!). This is a faster method, because very little has to be checked or changed in memory, but you have to know that MyValue is actually an int.
Convert.ToInt32(MyValue) allows you to create an int from other types, e.g. a string like "56". This is useful if you aren't sure what type MyValue is. Because it has to work out what to do with the value tho, this method can be a lot slower than casting directly.
For more info, see MSDN:
Casting in C#: http://msdn2.microsoft.com/en-us/library/ms173105(VS.80).aspx
Convert Class: http://msdn2.microsoft.com/en-us/library/system.convert.aspx
Hope this helps
Phil
|
|
|
|
|
philip_cole wrote: (int)MyValue is casting MyValue to type int. This means that MyValue has to be an int in the first place, or a type inherited from int (which isn't possible of course!). This is a faster method, because very little has to be checked or changed in memory, but you have to know that MyValue is actually an int.
Some remarks and I would appriciate your input.
(int)Something conversion is applicable when Something is a numeric type. It just does the convertion without caring what data is lost.
I did sometesting and here is what i came across
string a1="5";<br />
int b1=(int)a1;
result in a compiler error
object a1="5";<br />
int b1=(int)a1;
result in runtime casting exception Error.
|
|
|
|
|
i want make program like voice chat in Lan but I cant !
which stream shoud be use???
pleas Help if you know
tanx & Regards
Mati
|
|
|
|
|
yes it is possible. But you need to have a SDK for your software. Are you reffering in VoIP? If yes, there are SDK available on the net that your can integrate in your software.
OR
You can create your own SDK by using your OS messaging and communication.
|
|
|
|
|
hi jack
please Describ your answer, how I can use Sdk?
tanx
Mati
|
|
|
|
|
ok, so when you run cmd.exe you can let it print out your systems directory structure... now i'm looking for a way the execute it from within C#, make it store it's results, so i can call it in another function(which already works)... so how do i do that?
tree C:/downloads /A /F c:/contents.txt <-- command in CMD
with this command i would be storing it in a temp file(content.txt) which i would delete later. can this also be stored in a variable?
thx anyone for answering 1 of these questions (any suggestions that would achieve the same without using the tree function are also welcome)
cheers
|
|
|
|
|
See this[^] article.
/ravi
|
|
|
|
|
Perhaps you can launch cmd.exe via System.Diagnostics.Process. Send it input via Process.StandardInput to do the tree listing, then get output via the Process.StandardOutput . Don't know for sure if that will actually work, but it's worth a shot.
|
|
|
|
|
Hi,
I have a Form class (Form1) in Which there is a method "Load_TreeView" which papulate the tree as soon as user create a new Fodler.
Now Folder Operation Create,update,delete are defined in a separate Class "Group", Now What I want is to put "Load_TreeView " method in Group Class.
But I am Having trouble with the Load_TreeView Method as it uses the Form Control (TreeView). Is there Any way I can Define this method in The Group Class?
Q@!$3r
|
|
|
|
|
It's actually a bad idea to mix your view and your model. When you have a clear separation, you can change the view or add additional views without having to worry about how they impact the model. If you search the web for the Model View Controller pattern, you will get a clearer understanding of how this works.
This article might help as a starter. Clickety[^]
the last thing I want to see is some pasty-faced geek with skin so pale that it's almost translucent trying to bump parts with a partner - John Simmons / outlaw programmer
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
I've seen may deployments of System Tray applications that slide a window into view then slide it back off the desktop. If I set a position that is on the desktop and just show it...it works. But if I set it below the taskbar location ( this.Top = Screen.PrimaryScreen.Bounds.Bottom ) and then place a Windows.Forms.Timer to a 100 millisecond loop to move the position and Show() the form again, no animation of the screen move occurs. It looks like I may have to do a Win32 call to send a 'move form' message to the form but that is beyond my knowledge right now. Has anyone done an animation like this that can give me good direction for getting this to work??
Thanks
|
|
|
|
|
|
Hello!
I'm trying to do a program that logs all the key presses of the keyboard. The application runs smooth (VisibleInTaskBar = false, Visible = false), but, by doing that, i lose the focus on my form. So, i would be interested if there is a way to "intercept" the key strokes from code. I've searched www.pinvoke.net -> and found this: GetKeyState, but, unfortunately, i wasn't able to implement this.
I've also searched the articles, still... nothing relevant to this ... GetKeyState method or ways to implement it.
Thanks a lot,
Catalin David.
|
|
|
|
|
why not create a windows service project? I think this should do the trick.
|
|
|
|
|
drc_no1 wrote: I'm trying to do a program that logs all the key presses of the keyboard.
What key presses do you want to log; only those of your application or system-wide?
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook www.troschuetz.de
|
|
|
|
|
System-wide, that's the problem. Because on the application would be quite easy. But i don't know how to implement it system-wide.
Thanks a lot!
|
|
|
|
|
How can the contents of an assembly be viewed?
Thanks...
Vasini
|
|
|
|
|
Try Lutz Roeder's .NET Reflector[^].
Or, programatically, look up "Reflection" on MSDN.
"Throughout human history, we have been dependent on machines to survive. Fate, it seems, is not without a sense of irony. " - Morpheus
|
|
|
|