|
Ok, does anyone out there know why the ComboBox in .NET Highlights the Text in the Edit area when the Control is resized at Runtime (i.e. when it is Anchored Top, Left, and Right)? This is VERY annoying! Especially when the Control is disabled and it looks Highlighted!!! I'm tried Combo.Refresh and maybe other SubClassing techniques which don't work at all! ARGHHH!
|
|
|
|
|
Hi folk,
I have my form class with the
public sub openformmodify(BYVal form_modify_Objname as string)
The problem is if the name of the object is product generally I must crate the object:
dim form as product = new product
But I want that the name of the class must be pass as string and the object must be create by the string value es.:
public sub openformmodify(BYVal form_modify_Objname as string)
dim form as (form_modify_Objname)?? = new (form_modify_Objname)??
End sub
?? How can make this?
|
|
|
|
|
|
Yes, I found an example of VB.NET but seems too complicate. Is there a way more fast and more simple? Could you provide an example?
Thanks you
|
|
|
|
|
Hi folks
I have made an application server in visual Basic.NET whose responsibility is to continuing checking the mobile connected to the PC.
I have used the Nokia Model 6210 and the connecting cable DLR3p and have used the libraries from Nokia site and the packege of that library name is Nokia SDK ver 2.1.
This package provides the libraries for the programming in VB or vb.NET.
Now My question is that i want to connect Multiple mobiles to the PC HWO DO I DO THAT.
is their any one to help me
|
|
|
|
|
I can fill a datagrid from SQL.. I can do this with ADO/JET but I am at a loss on how to get a single record to display on my form from an SQL database using my current connection.
I am looking for a clear and simple example. Thanks
Gollnick
|
|
|
|
|
There should be lots of examples out there of how to return multiple records, looping through records, returning one record etc. But here's a simple example of how I get back a record from a SELECT statement:
Private Function GetCustName(ByVal CustNum As String) As String<br />
Dim strConn As String = ConfigurationSettings.AppSettings.Item("connectionstring") 'Read connection string from web.config<br />
Dim conSQL As New SqlConnection(strConn) 'Create the connection<br />
Dim cmdSQL As New SqlCommand("SELECT CustName FROM Customers WHERE CustNum ='" & CustNum & "'", conSQL) 'The query I want to run<br />
Dim Rdr As SqlDataReader<br />
conSQL.Open() 'Open the connection<br />
Rdr = cmdSQL.ExecuteReader() 'Execute the query<br />
Rdr.Read() 'Read the record (only returns ONE record!)<br />
GetCustName = IIf(IsDBNull(Rdr("CustName")), "", Rdr("CustName")) 'Read the value from a field called 'CustName'<br />
conSQL.Close()<br />
End Function
This function returns a value from a record when you pass it a search criteris. If you want to populate text boxes on your form, then after the 'Rdr.Read()' line, you could do something like:
myName.text = Rdr("Name")<br />
myAddress1.text = Rdr("Address1")<br />
myAddress2.text = Rdr("Address2")<br />
etc...
Hope this helps,
Regards,
John.
www.silveronion.com[^]
|
|
|
|
|
I am working on an image editor app for a VB.NET class in college. I have been looking for code for a image display control that can zoom, pan, and be scrolled. Our professor is allowing us to use other people's controls as long as they are cited as being the creators of the control.
I've tried writing a UserControl to do this, but it's ugly. I get a lot of flashing (from Invalidating) when I scroll, and I know there's errors in my math somewhere because I can't always scroll back to where I started.
I'd also like to get a good old magnified pixelated look when I zoom, but instead I'm getting the bi-linear or tri-linear filtering. Is it possible to get around this and just get blockiness?
Thanks in advance for any and all help.
To not know is bad.
To not wish to know is worse.
|
|
|
|
|
I am 3/4 finished with one but unfortunately it is in VB Classic. If you want to help me, (porting it or just finishing it to be used in .NET thru interop) just let me know.
"Do unto others as you would have them do unto you." - Jesus
"An eye for an eye only makes the whole world blind." - Mahatma Gandhi
|
|
|
|
|
I'd be up for both helping finish it and porting it. If you like, I can send you my code as well, goofy as it is, so you can see where I was coming from.
To not know is bad.
To not wish to know is worse.
|
|
|
|
|
I'm going to finish my viewport myself and maybe I'll send a copy to you. Too bad the .NET scrolling support is so lousy, but what they didn't give us, we can make ourselves.
"Do unto others as you would have them do unto you." - Jesus
"An eye for an eye only makes the whole world blind." - Mahatma Gandhi
|
|
|
|
|
I am writing code for Messenger Type Application in VB.Net, the Problem is that How to Send and Recive File Between two or more client using HTTP without involving Server That Mean On the base of IP Adresses like DCC Chat.
Plz If U have any Example in VB.Net of Above Problem Send meSource Code at
"ahsanbintaj@hotmail.com".Thanks.
Ehsan Malik ( Developer SharpClub)
|
|
|
|
|
Hello,
Does Anyone know how to find the index of the First Visible
Row in the .NET Datagrid
would help, thanks
Gregory J Lynch
Hack
|
|
|
|
|
I have a usercontrol and one of it's members is a type safe collection (inherited from CollectionBase.DictionaryBase).
Now I want this collection to be bindable (read-only) to a datagrid. I have added the attribute Bindable(True) to the property and implemented IListSource in the control and returned this list from GetList() overloaded function but it doesn't show up in the datagrid's bindings.
What step(s) am I missing?
Thanks in advance,
Duncan
'--8<------------------------
Ex Datis:
Duncan Jones
Merrion Computing Ltd
|
|
|
|
|
It trurns out I should have implemented IBindableList not IListSource.
Now the datagrid lists my control as a source in the DataBindings but it doesn't show any columns - I take it it doesn't know what the type safe collection type looks like? How do I add property descriptions to my existing class so the data bound grid can pick them up?
'--8<------------------------
Ex Datis:
Duncan Jones
Merrion Computing Ltd
|
|
|
|
|
It turns out I should have implemented IBindableList not IListSource.
Now the datagrid lists my control as a source in the DataBindings but it doesn't show any columns - I take it it doesn't know what the type safe collection type looks like? How do I add property descriptions to my existing class so the data bound grid can pick them up?
'--8<------------------------
Ex Datis:
Duncan Jones
Merrion Computing Ltd
|
|
|
|
|
Hello
I want to dial a number using modem in VB.NET
e.g
I gonna use a function like that
Dial "9089740987398"
When the other side answer, I would speak to microphone and hear the person from speakers.
How can I do that?
Please help
Success on your works
Regards
Best Regards
Emre YAZICI
|
|
|
|
|
Hello
When I place a control at design time, normally, I can move the control by pressing UP DOWN LEFT RIGHT keys after selecting.
But nowadays I can't. When I press UP or DOWN or LEFT or RIGHT button; Vb.net moves the form, not the control.
Also when I right click one of the controls the commands wihch are Cut Copy Delete are disabled in the popup menu.
Sorry I can't use remotepicture linking. Because my site does not support it. You can see it http://www10.brinkster.com/eyazic/a/main.htm
Please help me it is very important, I can't design anymore
Thank you
Best Regards
Emre YAZICI
|
|
|
|
|
You haven't said what control your trying to place. Is a standard toolbox control or a user control.
Also, is this a web or windows form and does this happen to all controls you now place?
It is possible to lock a controls position but the outline normally looks different to that shown in your screenshot but just check the controls properties and you should find a property named locked.
Regards
Wayne Phipps
|
|
|
|
|
Thank you for your answer.
I already know the Lock property (in the popup menu)
But the problem is not connected with it. There is no problem on placing.
After placing when I try to move one of "ALL" objects it causes.
They are not locked.
Also I cannot use "CTRL+C" keys to copy or "Delete" keys to remove a control when this happens.
Best Regards
Emre YAZICI
|
|
|
|
|
How can you define the length of a MenuItem in pixels in vb.net when you set... Ownerdrawnmenu to TRUE.
Problem: a MenuItem have a font (... Arial 8).
This MenuItem contains a Icon
This MenuItem contains a text (perhaps also a &-sign)
This MenuItem contains perhaps a Shortcut
This MenuItem refer to another Menu
Can this also in the menuheader?
(I think yes... I'm sure for the Icon... but I'have problemes with the length when I got the cursor on It...
...
Vriendelijke groeten
Gilbert (Belgium)
|
|
|
|
|
Hi,
I am new to vb.net and to this forum. Can anyone let me know how i can hide a listview column?
I am using the standard listview control available in the windows forms. I have set the view of the listview as Details. I need to hide the first column and for that i set the width property of the first column to zero. This makes the list view column invisible during the runtime. However if i place my cursor on the listview header and drag the same, the first column appears.
Is there anyway to hide the firstlistview column?
Thanks in Advance
Subha
Subha Narayanan
|
|
|
|
|
Hello,
There is no other way to do it. You implemented is right thing. I just have a additional to tell you.
Assign ColumnResize value to none means one can not resize the column. Then while filling data in ListView calculate the length of the record which you are filling currently. Then assign the record lenght value to the column width. By doing this, you will able to see full length data in your ListView without facing problem.
Example for consideration:
Dim iLenght as Integer ' Lenght of the record
Dim iPrevMaxLength as Integer ' Length of previous record
iLength = 0
iPrevMaxLength = 0
While(rs.EOF != NULL)
'Todo part
.....
.....
.....
.....
iLength = len(rs.CurrentRecord)
if iLength > iPrevLength then
ListView.Column(index).width = iLength
iPrevMaxLength = iLength
end if
' Todo part
.....
.....
.....
.....
Wend
Let me know if this works or not.
Regards,
Vilas Shewale
|
|
|
|
|
Retana Padilla has wrote a fine tool.
But...
(Excuse me, but my Englisch is not so good...)
I 'll try to use this code...
And make it better and better...
So I have set the EvMeasureItem.ItemHeight = 20
That is just enough to sign a rectangle round a icon (16*16) of 2 pixels width...
For instance I want tot use it in the header...
Then it goes wrong...
The second item in the header comes over the first item...
When I go over the first Item with the cursor
than you can't see the Icon in the second item in the header...
I think that the code have problems with:
The sub MeasureItems...
I don't understand very good how it's works.
Especially...
EvMeasureItem.ItemWidth = CInt(EvMeasureItem.Graphics.MeasureString (GetRealText(Mi), m_Font, 10000, sf).Width) + 10
(I have make it like this...
EvMeasureItem.ItemWidth = CInt(EvMeasureItem.Graphics.MeasureString (GetRealText(Mi), m_Font, 10000, sf).Width) + 30
It is better but not good enough...
And...
Also with the function GetRealText...
Can it be that sometimes the code don't got the real length in pixels?...
Another question is...
Is it also possible to manipulate the Item -----------------
I hope that someone can help me ...
Vriendelijke groeten
Gilbert
|
|
|
|
|
HI,
I've a collection which contains a couple of object I've created.
Is there a simple method to sort this collection or should I code a standard sort algorithm ?
|
|
|
|