|
Samir Ibrahim wrote: and I can grantee to you
Wow. That's ballsy. A computer guy who uses that term is taking an awfully big risk...
Support for XP isn't going to last that long. You won't get an more patches to close security holes and fix things long before that 10 year limit.
|
|
|
|
|
One more component is there similar to datagrid.
Name is MSFlexGrid Control.
This one is easy to handle.
code to add a content is
MSFlexGrid1.TextMatrix(Row Index,Col Index)= "content"
ex:- MSFlexGrid1.TextMatrix(0,0)= "Purvas".
|
|
|
|
|
There is Microsoft DataGrid Control 6.0 (SP5) (OLEDB) Activex available if you have VS6 + SP5
But using Datagrid, which is used to populate data from database source, so you have to save the found files you search in Access mdb and then display it in DataGrid.
Do you need to save the search result?
If no, I suggest using Listview.
Samir R. Ibrahim
|
|
|
|
|
Hi,
I am in need of a sound file
i would like to use in my multiplayer
card game application(Blackjack).
How do i go about it ?.I dont even have
any sound file at the moment.
akpakwu
|
|
|
|
|
Well, you can play mp3s with a media player control, you can play mp3s or wavs with DirectX.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
|
Hi to All,
Could anyone please tell me how to lock a particular data grid columns (from updating or editing by users) in vb.net2005.
Thanks in advance
I am a learner Always
|
|
|
|
|
|
|
try reading on how to ask questions here. 'pls help me' is a retarded subject, everyone wants help.
what part is the problem ?
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Don't delete your f-ing messages!!
|
|
|
|
|
i want user to enter only 0 to F in a textbox..
if the user enter except 0 to F, it will replace by 0..
that is what i have programmed..
but i got a problem where after the replacemnt with 0, the cursor indicator is go the starting, supppose the cursor indicator ddnt go anywhere unless the the user clicks at another option.
can u help me plss!!..thanks..
beginner VB user.
learning is lifetime.
|
|
|
|
|
Hi,
when will you start searching for the things you need, rather than just ask here?
one possible way uses keywords: KeyEventArgs, SuppressKeyPress
Luc Pattyn [Forum Guidelines] [My Articles]
- before you ask a question here, search CodeProject, then Google
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get
- use the code block button (PRE tags) to preserve formatting when showing multi-line code snippets
|
|
|
|
|
hii..
how to make a new line in an enable mulitipleline textbox?..txx
|
|
|
|
|
you may use Environment.NewLine or vbCrLf to separate the text or you may pass an string array to Lines property.
Calin
|
|
|
|
|
thanks!!..
|
|
|
|
|
Hi,
I am experiencing a strange proplem which is a property doesn't return a value when I try to use the class explicitly as shown below. I have checked to make sure if property has a value inside a class and the anawer was yes. However when try to use MetaData class inside the form Artist name returns nothing. Where do I make mistake?
Any Idea?
<br />
'FORM<br />
<br />
MetaDataFactory.GetMetaData ("FileNameGoesHere")<br />
<br />
Dim XData as New MetaData<br />
<br />
Artist = XData.Artist 'Doesn't return the value.<br />
<br />
'----------------------------------------------------------<br />
'SUB CLASS USES AN INTERFACE<br />
<Serializable()> _<br />
Public Class MetaData<br />
Implements IMetaData<br />
<br />
Private _Artist as String = Nothing<br />
<br />
Public Property Artist() As String Implements IMetaData.Artist<br />
Get<br />
Return _Artist<br />
End Get<br />
Set(ByVal value As String)<br />
_Artist = value<br />
End Set<br />
End Property<br />
<br />
Public Interface IMetaData<br />
Property Artist() As String<br />
End interface<br />
<br />
'-----------------------------------------------------------------------------<br />
'METADATAFACTORY CLASS<br />
Public Class MetaDataFactory<br />
Public Shared Function GetMetaData(ByVal filename As String) As MetaData<br />
Dim XX as new MetaData<br />
xx.Artist = "BOB MARLEY"<br />
End Function <br />
End Class<br />
<br />
<br />
<br />
What a curious mind needs to discover knowledge is noting else than a pin-hole.
modified on Sunday, February 15, 2009 11:30 AM
|
|
|
|
|
Why would it have a value when the GetMetaData() function is not called by this code:
Dim XData as New MetaData
Artist = XData.Artist 'Doesn't return the value.
Another thing is that GetMetaData needs to return xx i.e. a MetaData object.
Regards
David R
|
|
|
|
|
Sorry I forgot to type it. Just assume that it is there. It is still not functioning.
What a curious mind needs to discover knowledge is noting else than a pin-hole.
|
|
|
|
|
Try this where the changes are in bold:
Dim XData as New MetaData
XData = MetaDataFactory.GetMetaData ("FileNameGoesHere")
Artist = XData.Artist 'Doesn't return the value.
....
Public Class MetaDataFactory
Public Shared Function GetMetaData(ByVal filename As String) As MetaData
Dim XX as new MetaData
xx.Artist = "BOB MARLEY"
GetMetaData = xx
End Function
End Class
Regards
David R
|
|
|
|
|
JUNEYT wrote: Sorry I forgot to type it. Just assume that it is there. It is still not functioning.
Paste the actual code that you are using. It's very hard to find the error in the code that you are using by looking at some other code that you are not using...
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
In the GetMetaData method you create an instance of the MetaData class, put some data in it and throw away the instance.
Then you create a new instance of the MetaData class, and you expect it to contain the data that was in the instance that you threw away.
Do you see the problem?
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
Hi,
I have passed several types of variables as (Byte,String,int32 and etc.) into a function. The my aim is to get the value of passed variable and check to see if it is null or not. If it is null, The function should return "Undefined" as a string. If it is not, it should assign the variable's original value to function.
I have no idea how to run the function for several types of variable and get their value and assign it to the function. The vb.net is no longer supporting variants.
Thanks.
What a curious mind needs to discover knowledge is noting else than a pin-hole.
|
|
|
|
|
I'm assuming that there is only one function with one parameter.
Make the function's parameter an object. Then in the function use a series of if statements with typeof...is operator.
The function would have to return an object since you don't know whether it is a string or other type.
It's not pure OO but would do the job. Some sample of your code would help to get a better answer.
Regards
David R
|
|
|
|
|
Public Function ToStringStuff(ByVal someNumber As Nullable(Of Integer))
If (someNumber.HasValue) Then
Return someNumber.ToString()
Else
Return "Undefined"
End If
End Function
Public Function ToStringStuff(ByVal someBool As Nullable(Of Boolean))
If (someBool.HasValue) Then
Return someBool.ToString()
Else
Return "Undefined"
End If
End Function
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim a As Nullable(Of Integer) = Nothing
TextBox1.Text = ToStringStuff(a)
End Sub
Something like this?
I are troll
|
|
|
|