|
|
yea well ok I guess I deserved that, thanks for your help, I'll go re-read my books on networking
|
|
|
|
|
Dave Kreskowiak wrote: The new clinet would have to start a listener on a random port, telling the first client which port that is on the initial connection port. The first client would then open a connection back to the new client to start the communication channel
Won't NAT block that, if you have only setup port forwarding for the well known client port?
Great response, BTW. +5.
|
|
|
|
|
Well, you'd have to tell the NAT to allow that port also. I think they use UPnP for that if I'm not mistaken.
|
|
|
|
|
Ok, well, I think I've heard enough - I will just accept that it sometimes fails. Not ideal, but, well, NAT is not ideal itself (crazy hack..)
Thanks everyone
|
|
|
|
|
Hi All, I am kind of new in programming in c#. Recently I am working on a window base application. The Application has a dataGridView and it fills with data which comes from many diffrent source. The dataGridView display all the data in which order they come.
My Question is how do I print only the data i wanto print. for examlple, the dataGridView has 10 rows. within 10 rows there are three kind of data. I only want to print one kind of three.
Printing fucntion look for only those row that has same data value.
any rows that matches with my selected row should go to print rest should be ignored.
any help.
Thanks much in advance.
|
|
|
|
|
You can find an enlightening MSDN forum post here. That's got many different code snippets on, and a link to an interesting article as well. I would assume that if you only want to print certain rows, then you can go to the piece of code which iterates through each row and check if you want that row. If you do, then draw it; if not, continue to the next iteration
Between the idea
And the reality
Between the motion
And the act
Falls the Shadow
|
|
|
|
|
Take a look at DataGridView Printing by Selecting Columns and Rows[^].
It doesn't do precisely what you want, but it is near enough that you ought to be able to adapt it.
If you try to do that and get stuck, please make a new thread with the code you are stuck on, and exactly what the problem is.
As an alternative, you could give the user somewhere to enter the selection criteria, TextBoxes or CheckBoxes for example, and then only load that data into your grid. There are lots of articles on printing datagridviews.
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.”
|
|
|
|
|
Is there an API available that can control the sound card bass and treble?
|
|
|
|
|
IT probably depends on your sound card but not sure
|
|
|
|
|
Their is no direct API to provide equalization. What you have to do is write a DirectX filter and use it control treble/bass.
Check the DirectX API for more information.
|
|
|
|
|
Your sound card manufacturer may provide one, but there is no general standard for this as far as I know.
You can create your own audio player and provide your own DSP in that. Search for Audio DSP C# and you should find something to help you get started.
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn) Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia) Why are you using VB6? Do you hate yourself? (Christian Graus)
|
|
|
|
|
Take a look at Bass.Net[^]. I haven't tried it myself, but I've run across a few things that use it. It seems to have a pretty good reputation from what I can tell.
|
|
|
|
|
hi,
how can i make a differnt view in a form?
i tried to use MDI form to open each time a different form(new controls and view), but i couln'd open it in my designated area (a panel in the right side of the screen), it opens anywhere on the form.
is it the right way to do what i want?
many thanks,
Samy
|
|
|
|
|
The answer to this question depends on what you want to happen.
Do you want each view that you open, to remain open when you make a new selection in the TreeView? So that there could be many views open.
Do you want each view that you open, to be the only view open?
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.”
|
|
|
|
|
yes - i need that each node will show one view.
each time there will be only one view available.
|
|
|
|
|
In that case you do not need MDI (Multiple Document Interface).
Either design your different views as UserControls or as a Form. The process is pretty much the same.
Then in the code that you use when a node is selected (I don't know if you are using BeforeSelect/AfterSelect or something else), your code should look something like this.
I am assuming the Panel on the right is called displayPanel , and that you decide to use names for your views like WhateverView
this.displayPanel.Controls.Clear();
WhateverView newView = new WhateverView();
newView.Dock = DockStyles.Fill;
this.displayPanel.Controls.Add(newView);
This code should work for a single type of 'view'
If you are using Form descendants you might also like to set their FormBorderStyle to FormBorderStyle.None
Just to see if it works as you would like, decide on one node, for now, and therefore one 'view' and use the code above to test it.
Of course you will need a way to decide which type of view to use depending on the node selected, assuming that you have more than one. For that you might want to investigate the Factory Pattern
Put (very) simply, this is a class that will return the right sort of 'view' when asked.
e.g the line WhateverView newView = ViewFactory.GetView("mp3"); will give you a view for looking at MP3 stuff.
the line WhateverView newView = ViewFactory.GetView("folder"); will give you a view for looking at Folder stuff.
There are many ways to select which type of 'view', this is just one of them.
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.”
|
|
|
|
|
great it work.
but i could only do the WhateverView as usercontrol. if i try to do it with a form - the "this.displayPanel.Controls.Add(newView) " cant work.
many thanks!
|
|
|
|
|
I try to use Touch Screen control some motors, and motors run when received mousedown event ,and stop it when received mouseup.(picturebox control)
but i find that sometimes when My finger lifted form touch screen the motor do not stopped,and that means mouseup envent not always Captured by WinCE.
and what should i do to resolve it?
|
|
|
|
|
Don't double post and maybe you'll get an answer faster. The is the wrong forum for this question
only two letters away from being an asset
|
|
|
|
|
Hello everybody,
My application has a picturebox control. Now what I want is to move the source image file (to a different directory) without clearing the picture box.
Any suggestions?
Thanks in advance.
Excuse me for buttin' in, but I'm interrupt driven.
modified on Monday, June 1, 2009 9:21 AM
|
|
|
|
|
Hi
You want to move the picture box ?
|
|
|
|
|
No, I don't want to move the picturebox, I want to move the image file (the file from which the image into the picturebox was loaded).
Excuse me for buttin' in, but I'm interrupt driven.
|
|
|
|
|
Don't use Image.FromFile as it locks the file, use Image.FromStream instead.
Luc Pattyn [Forum Guidelines] [My Articles]
The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.
|
|
|
|
|
Thanks a lot.
Excuse me for buttin' in, but I'm interrupt driven.
|
|
|
|