|
Ummmmmmm i am basic at graphics, but you can use panels and labels for customizing Sample you place two labels "Main Properties" and "Program Info" then you place on it image for mouse over and click and when click that it shows panel1 or panel2 so you can also add images on panels as background and so on... I don't know how much memory it takes and that but i am sure it works and that you need to dispose all at form or program closing. Hope it helps...
|
|
|
|
|
Here is a good article about it:
A .NET Flat TabControl (CustomDraw)[^]
all is done by inheriting your own tab control from TabControl, setting userpaint & allpaintinwmpaint styles and then colorize it using OnPaint method.
|
|
|
|
|
Hi Everyone,
i m developing application using vb.net (Winforms).
i wnt to add row at bottom (after my existing rows) , in my datagridview when user clicks on edit button.
i wrote following code on my edit button after adding all records from my database.
dgvTaskList.Rows.Add()
but it is adding row at top of all rows & i wnt it at bottom.
will anyone tell me wht shuld i do?
priya
|
|
|
|
|
I think in the grid property's you can select whether a new row is inserted at the top or bottom. I don't use WinForms very often though so I'm not sure.
Apparently it's not OK to start a bonfire of Microsoft products in the aisles of CompUSA even though the Linuxrulz web site says so
|
|
|
|
|
you can do some things like "Me.DataGridView1.Rows.Insert(..."
or check sorting options of your binding source/your datagrid.
|
|
|
|
|
Hi,
Im having two columns in two datatable,for eg: dt1 and dt2, in the datatable dt1the columns Object_type and Object_name are there and also in the datatable dt2 the columns Object_type and Object_name are there...Is will in the view of like this
Datatable dt1 Datatable dt2
object_type object_name object_type object_name
---------------- ------------------ ---------------- -------------------
function function_name package package_name
package package_name table table_name
index index_name view view_name
Here i want to check these all available row in the dt1 is to compare with dt2,if it found means then i need the display in the datagrid is like this with dt1 records with additional column of isavail...
object_type object_name isavail
--------------- ------------------ ---------
function function_name no
package package_name yes
index index_name no
How to check this..Help me Plzzz...
Thanks and Regards
Kanna...
|
|
|
|
|
Hi Kanna,
Easiest is to do it with SQL, something like this:
SELECT object_type, object_name
FROM dt1 INNER JOIN dt2 ON dt1.object_type = dt2.object_type AND dt1.object_name = dt1.object_name
This SQL statement will only return records from table dt1 that are also in table dt2.
Johan
My advice is free, and you may get what you paid for.
|
|
|
|
|
Hi Dear freinds.
How can I add a bitmap picture(existing in my project resource) for my control toolboxbitmap?
|
|
|
|
|
Mansourgh wrote: my control toolboxbitmap
What kind of control is it, a toolbar, or a custom control?
My advice is free, and you may get what you paid for.
|
|
|
|
|
Johan Hakkesteegt wrote: My advice is free, and you may get what you paid for.
I love the signature!
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
1- add your 16x16 bitmap to your project
2- the name of bitmap must be the same as your user control (YourControl.bmp)
3- in property tab of your bitmap, set build action to embeded recource
4- rebuild your project
now after adding your control to toolbox you will see that bitmap.
----------------------------------
another way is using ToolboxBitmapAttribute
|
|
|
|
|
How do you build a string from parts of another string. ie: If I have a stringIn$ with the following: "C",,,4,,3,,,C6mn,,,,. How do I select parts out of stringIn$ out and put them into stringOut$. I know how to test for the parts(bytes)I might want. I need to know how to move them over to specific places in the output string. I can do it in 3 other languages but not in Basic. Any and all will be appreciated.
|
|
|
|
|
VB6, or VB.NET ? In VB.NET, the split method would turn that into a bunch of substrings, based on the , or any delimiter you like.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Thanks for the reply. I am trying to learn VB6 but the split method I don't know?
T hanks
Ronw
|
|
|
|
|
Not sure if VB6 has it. Why would you learn VB6 ? It's out of date and unsupported. VB.NET Express Edition is free.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Sounds like you need research the .Split[^] and .Substring [^]
or just string basics.[^]
Example:
Dim strA as String = "Hello, World"<br />
Dim strB as String = strA.Substring(7)<br />
'strB = "World"
Hope this helps.
|
|
|
|
|
Yes, it helps and it is a good starting point.
Thanks
r west
|
|
|
|
|
to anyone who has encounter appforge.. pls help..
im encountering problem with the PDBOpen method..this is my code..
Public Function OpenPatientInfoDatabase() As Boolean
lType = PalmIDtoLong("DATA")
lCreator = PalmIDtoLong("!!)<")
' Open the database
#If APPFORGE Then
'when running on the device
dbPatientInfo = PDBOpen(Byfilename, "PatientInfo", 0, 0, 0, 0, afModeReadWrite)
#Else
'when running on windows
dbPatientInfo = PDBOpen(Byfilename, App.Path & "\PatientInfo", 0, 0, 0, 0, afModeReadWrite)
#End If
If dbPatientInfo <> 0 Then
'We successfully opened the database
OpenPatientInfoDatabase = True
Else
'We failed to open the database
OpenPatientInfoDatabase = False
#If APPFORGE Then
MsgBox "Could not open database - PatientInfo", vbExclamation
#Else
MsgBox "Could not open database - " + App.Path + "\PatientInfo.pdb" + vbCrLf + vbCrLf + "Potential causes are:" + vbCrLf + "1. Database file does not exist" + vbCrLf + "2. The database path in the PDBOpen call is incorrect", vbExclamation
#End If
End If
End Function
..at the line dbPatientInfo = PDBOpen(Byfilename, App.Path & "\PatientInfo", 0, 0, 0, 0, afModeReadWrite)
there is an error: byfilename is a variable undefined..
how could this be?i know byfilename is a keyword to pdopen..
help..
|
|
|
|
|
jbboy wrote: ..at the line dbPatientInfo = PDBOpen(Byfilename, App.Path & "\PatientInfo", 0, 0, 0, 0, afModeReadWrite)
there is an error: byfilename is a variable undefined..
how could this be?i know byfilename is a keyword to pdopen..
Keywords are specific to the language you're writing in, not the library. I think you're talking about the value of a contant or enum in the library. To VB, you tried to pass in the contents of a variable that you haven't even declared anywhere. That value should be declared in the library somewhere. I suggest going back to the documentation on the library and looking up this method or searching for a sample.
I know nohting of the library that you're using, so this is just a guess, but it looks like it should read like this:
dbPatientInfo = PDBOpen("Byfilename", App.Path & "\PatientInfo", 0, 0, 0, 0, afModeReadWrite)
or some other value, possibly like:
dbPatientInfo = PDBOpen(YourLibraryName.Byfilename, App.Path & "\PatientInfo", 0, 0, 0, 0, afModeReadWrite)
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
thanks for the reply..
actually pdbopen is under the appforge library.. appforge is an addin to vb where you can develop mobile apps..
Byfilename is like an option of PDOpen like the afModeReadWrite..
thanks again..
|
|
|
|
|
i m using vb.net2005 windows application. i've on my computer word 2003 and 2000 both. i've referenced PIA's for word 2003. everything is working fine like bookmark,save,open,add,close. but when i am using printout method , on my pc it is running fine. but i am deploying on server and trying to run from client computer ..it s giving error ..comexeption ..library is not registered and hresult#.
Client have word 2000. doesnt have 2003. but all other methods are working in word 2000 . only i m having problem with printout.
If somebody know the solution pls. reply me asap.
Thanks
Hemaxi
|
|
|
|
|
can anyone answer to me?
how can i get info of my connection? like sent or received bytes and pockets, how much is it connected and other info? and how can i connect to adsl trough my application, i am currently connecting through shortcut of connection which is on my desktop so i use:
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
Process.Start(Environment.SpecialFolder.Desktop + "\Adsl.lnk")
End Sub
This works but i want that in my app i can chose from combobox which connection i want to connect to and that it gets connections that are stored in control panel or whatever and that i connect directly so i don't have to create shortcuts, and that i can see info about connection ad that i can disconnect through a button and other stuff... Pleaseeeeeeeee Help!
Thanks for any help...
|
|
|
|
|
|
not really but thanks for giving even a little help...
|
|
|
|
|
I am trying to set a status column equal to 1 or 3 if it contains certain text in the lineitemnotes column. For example, if lineitemnotes contain the text "refunded" then the status is equal to 1 and if lineitemnotes contain the text "Added During Receiving" then status equal to 3. The problem I am having is it will set the first column with the text "refunded" and all the other stauts columns to 1 until it hit the column with the text "Added During Receiving" then all the status columns will be set to 3. However, I only want the status column to be 1 if the lineitemnites column contains the text "refunded" and status column equal to 3 if lineitemnotes column contains "Added During Receiving". Hope this is understandable. Here is my broke code to give an idea of what I am trying to do.
If Trim(row("wtnumber").ToString()) & Trim(row("wtcustomername").ToString()) = "" Then
If Trim(row("lineitemnotes").ToString.Contains("Refunded")) Then
customername = "Refunded"
status = "1"
ElseIf Trim(row("lineitemnotes").ToString.Contains("Added During Receiving")) Then
customername = "Stock"
status = "3"
End If
End If
I don't know if the contains command is correct or not. Any ideas will help.
jds1207
|
|
|
|