|
Tancev Sasa wrote:
Do not send answers like "You have to hold a reference to the CarsCollection in the CarItem"
You already know the answer, you just dont like it (for some reason)
|
|
|
|
|
Hi,
I am using collection to bind data to datagrid.
Dim oCars as CarCollections = New CarCollections
DataGrid1.DataSource = oCars
Everyithing work fine but there is a sorting problem.
If I do so, there is no sorting features in DataGrid. When I bind DataSet to Datagrid I can Sort data in DataGrid by clicking on columns header. DataGrid automaticly sort filled data according to clicked colum.
When I bind datagrid to Collection that features is missing.
What should i do, in Collection class - CarsCollection, to have sorting features back
Thanks in advance
P.S. Sorry for bad English
... Never argue with an idiot, they will drag you down to their level and beat you with experience
... Never argue with an idiot, they will drag you down to their level and beat you with experience
|
|
|
|
|
Hi everyone, I am totally fed up of this, see if anyone can help me out..
1. I have a datatable which is bound to a datagrid,
2. I have a datepicker placed on the 2nd column in the grid,
3. I am able to assign the datepicker values to the particular cell.
4. but, when the use clicks the clear buttton in the datepicker, I have to clear the cell(which already has some date in it)
I am unable to do it. I searched everywhere (msdn, codeproject articles..)
In one case they have mentioned that the empty() property will clear the values, But it does not work with the date field.
so, if anybody has the solution for this prob, help me out.
KingVikram
|
|
|
|
|
how do I run a .WAV file through a voice modem ?
Thanks
|
|
|
|
|
Try SndPlaySound function:
Public Declare Function sndPlaySound Lib "winmm.dll" Alias "sndPlaySoundA" (ByVal lpszSoundName As String, ByVal uFlags As Long) As Long
Find more help on the MSDN.
|
|
|
|
|
This function only works with sound cards, not TAPI compliant modems...
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
You'll need to use TAPI 2.0 to get it to work. Search the User Samples at www.GotDotNet.com for the term "TAPI" to find a project that wraps the TAPI 2.0 API into a nice little .NET Framework class library.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
i want to use TAPI in VB.NET to play a file .wave throught a voice modem
do you have a sample ?
|
|
|
|
|
No I don't. I've never used TAPI and, more than likely, never will.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Ok, this is simply amazing. I have been a user of VB for years and can not belive that MS took a step backwards.
It took me 30 minutes to figure out how to add a custom toolbox icon to my usercontrol and I cannot belive the hoops I had to jump through to do it.
I had to add an attribute to my usercontrol class to point to an embdeded resource in my project that was an ico file the same name as my usercontrol class.
Simply amazing.. where the heck is the 'Toolbox Bitmap' property of my darn usercontrol in the designer!?!
UGH!
Paul Watson wrote:
"At the end of the day it is what you produce that counts, not how many doctorates you have on the wall."
George Carlin wrote:
"Don't sweat the petty things, and don't pet the sweaty things."
Jörgen Sigvardsson wrote:
If the physicists find a universal theory describing the laws of universe, I'm sure the a**hole constant will be an integral part of that theory.
|
|
|
|
|
when i view a from from another one .. if i closed this form from the x buttom on the top courner .. how could i show this form again ..
or if theres away that i can prvent the user from closing the form and hide it instead ..
any one have an idea about how to solv this problem .. reply me plz
لا اله الا الله محمد رسول الله
|
|
|
|
|
Dunno what's possible in VB, but once you click the X, the form is destroyed. If you can catch the close event, you can set the form to be invisible. It will need to be modeless, otherwise it will maintain the focus and your main window will not be responsive.
Christian
I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer
|
|
|
|
|
The reason the child form is destroyed is becuase you loss all references to it.
if your working in vb.net you need to create a variable in a different class, holding a reference to your created form, or the reference can be 'Shared' (which i don't reccommend)
if you are working in vb6, you can try do the same as for the .net (but i'm not sure if it would work) or try to create the form in a different parent form.
you can also monitor the form's 'Closing' event(.net) or 'QueryUnload' event(vb6) and then you can cancel the termination of the form and just hide it. in both cases you need to set the 'Cancel' parameter to 'True'.
Fade (Amit BS)
|
|
|
|
|
Inside of the form_close event (or form_closing in VB.NET), you can cancel the unload, and hide the form instead.
Just remember to actually unload the form somewhere else in your code, or you will be sitting with a hidden form in memory.
my blog
|
|
|
|
|
How to cancel the unload event ..???
i tried to do this befor but i just dont know how to cancel the unload event
لا اله الا الله محمد رسول الله
|
|
|
|
|
What language are you using, VB6 or VB.NET?
my blog
|
|
|
|
|
VB.net theres no problem with showing forms after closing it in vb6 .. but i cant do it with vb.net hope you reply soon ...
and thanx for care.
لا اله الا الله محمد رسول الله
|
|
|
|
|
If the program is still running, then on the form you are on use a button or a file menue option or some kind of event and recal the form you would like to open up. Its just like calling a form for the first time.
if that doesnt make sence feel free to email me at iamydd@bellsouth.net
|
|
|
|
|
How do a messenger server/clients updates the online/offline stat. in real time?
If the server has a connection for all the clients, (and there is a lot, 33000+ clients), you would need two or more computers??? I’m I right????
No good.
Server pings all of the clients??? Takes a lot of bandwidth from the internet line, and takes a lot of time.
Also no good.
Any ideas?
|
|
|
|
|
I'd have thought that there is a central database, which there needs to be to store IP addresses from login to login, and that each client requests the info for the users they have in their contacts.
Christian
I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer
|
|
|
|
|
But what if the client's internet connection is lost?
The client is stille online via. the database.
|
|
|
|
|
Our internet connection at work drops out quite a bit, and I've noticed it takes messenger about a minute to work out that I am no longer online.
Christian
I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer
|
|
|
|
|
So the server should ping all of the clients??? via. the ip address from the database??
Or???
|
|
|
|
|
My guess - the client checks regularly to see if it's still online, and what users on the contact list are still online. If the check is not recieved, the user is offline.
Christian
I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer
|
|
|
|
|
Ok, thanks for the reply.
|
|
|
|