|
If you are using .net 2.0 and want this functionality available easily you can use a generic list
Dim books As Generic.List(Of myType)
Dim item as new myType
'Add an item to the list
books.Add(item)
'remove an item from the list
books.Remove(item)
'Remove item at index from list
books.RemoveAt(1)
Hope that helps
|
|
|
|
|
Hi
I have done this in my previous project successfully. Now I am doing this again on my current project and it does not display groups. although ShowGroups property is set to true with view property = details.
The code is
Dim lg As System.Windows.Forms.ListViewGroup = lvAll.Groups.Add("abc", "abc")
Dim lstSC As New ListViewItem("xyz")
lstSC.SubItems.Add("xyz1")
lstSC.Group = lg
lvAll.Items.Add(lstSC)
' where lvAll is listview name
I copy pasted the listview control from my previous project incase I am missing any property but it does not work.
Any Suggestions would be highly appreciated.
Regards
|
|
|
|
|
ListViewGroups only work on XP or above. They don't work on Windows 2000 and below. In addition, you're application must have previously called Application.EnableVisalStyles() and the ListView's View property must be set to anything other than View.List in order for groups to work.
|
|
|
|
|
Many Thanks.. It works
|
|
|
|
|
i m developing an application and 50% completed bt the memory usage at this time is too high its abt 40MB y is that so? how can i solve the problem?
(Jameel)
|
|
|
|
|
use less memory.
What other advice did you hope for, you've not descibed your app at all. 40MB is not a whole lot, given that it includes the runtime. I think you need to just relax, in all likelihood
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Is there any spacific shared folder in windows for which every(admin,guest,other etc) user have write/read access....
(Jameel)
|
|
|
|
|
jamilkhan007 wrote: spacific shared folder in windows for which every(admin,guest,other etc) user have write/read access....
Wouldn't System Temporary folders (TEMP) satisfy this criteria? But I don't think they are by default shared, unless you share them explicitly or through an Administrative Share.
|
|
|
|
|
Shared folders?? No, there are none.
You'd have to create a folder, Share it yourself, and set the appropriate permissions on the Share and NTFS sides.
|
|
|
|
|
where do different applications store there file which have to be read/write by different users on the target machine???? my app stores an xml file which contains users password,names etc. and this file placed under C:\prog-files\myapp\users.xml. bt when app tries to write to this file and "access denied" exception is thrwon. Now i hope u can help me in a better way....
Heartly Thanx for all of u frnds.
(Jameel)
|
|
|
|
|
Either in the applications Program Files folder or in
Program Files\Common Files\manufacturer\appname
|
|
|
|
|
hi All again i managed to solve my previous adapter. as Acces does not support substring function, i used Mid instead. so now i have problem in my search button. and the Problem is Poiting to the following line.
damixed.SelectCommand.Parameters("Boundary_Area").Value = cmbboundary.Text
damixed.SelectCommand.Parameters("Lis_key").Value = txterf.Text
i used "mid" function to Extract the value to is needed to be searched. like this
SELECT Boundary_Area, Compl_Boundary_Area, Extension, Current_Values, Improvements_Value, Improved_Value, First_Prop_Address, Lis_key, Num_key, Own_Name, Parcel_No, Parcel_Portion_No, Primary_ID, Prop_Address, Purchase_Date, Site_Value, Street_Name, Street_No, Actual_Extent, Title_Deed_No, Values_Effective FROM Property_ValRoll WHERE (Boundary_Area = ?) AND (MID(Lis_key, 5, 5) = ?)
When i run project code, it tell me that
An OleDBParameter with Parametername 'Lis_key' is not contained by this oledbParameterCollection.
As you can see am connecting to Acces database,i had a same project that is successfully but DB as SQL, so the code will differ in the adapter and in the parameter. So please tell me if its the correct way to get input from a user's textbox and combobox this way? and what is wrong with my code.
Thank you
Vuyiswa Maseko,
Sorrow is Better than Laughter, it may Sudden your Face, but It sharpens your Understanding
|
|
|
|
|
Vuyiswamb wrote: damixed.SelectCommand.Parameters("Boundary_Area").Value = cmbboundary.Text damixed.SelectCommand.Parameters("Lis_key").Value = txterf.Text
OleDb doesn't use named parameters. You have to create the parameters and assign values to them in the order they are seen in the SQL statement.
|
|
|
|
|
i understand, please Post an example code.
Thanks
Vuyiswa Maseko,
Sorrow is Better than Laughter, it may Sudden your Face, but It sharpens your Understanding
|
|
|
|
|
Hi Friends,
I am Beginner in ADO.net.I can Connect the SQl server Database and display the record in the text box and navigate the record.Now I want to insert new data in sql server and delete the selected data from the database.Please help me for this task.
|
|
|
|
|
Good morning Wlink
it is a wonderful day indeed. i would like to start by saying Buy a book in VB.net, i think everybook contain that example or Google Vb.net e-books they are books ,they can help you. try to google first before you post here, because there are many articles that can help you.if you can follow this link, you will find what you are looking for
http://www.codeproject.com/vb/net/[^]
Vuyiswa Maseko,
Sorrow is Better than Laughter, it may Sudden your Face, but It sharpens your Understanding
|
|
|
|
|
Hi ,
I have some problems. I have sql query that join tables and show results based on Date value of a table in the join. I can create crystal report using that query directly. But, that's not what I want. I want to pass the Date parameter from vb.net. I'm using visual studio 2003.
My query is like this,
Select Table1.Description as 'Name', Sum(Table2.Fee) as 'Amount'
From Table2
INNER JOIN Table3 On Table3.xxxxID = Table2.xxxxID
INNER JOIN Table4 On Table4.xxxxID = Table3.xxxxxID
INNER JOIN Table5 On Table5.xxxID = Table4.xxxxID
INNER JOIN Table1 On Table1.xxxx = Table5.xxxx
WHERE Session.EndDate between '01/01/2007' and '12/01/2008'
Group by Table1.Description
Please help me,
Thanks in advance,
RB
|
|
|
|
|
How I can draw an image like gauge on the form by using listview values at run time?
Or
Is there is any freeware gauge component which can be used in vb.net application?
Any help will be appriciated.
Thanks in advance
Ejaz
|
|
|
|
|
ejaz_pk wrote: How I can draw an image like gauge on the form by using listview values at run time?
Create your own custom-drawn control. This is not an easy feat if you're unfamiliar with drawing, or creating controls. As with any application, creating controls has two sides to it. Managing the data model and drawing the control. After all, there's nothing to draw if you can't manage and understand the data your representing with the graphics.
ejaz_pk wrote: Is there is any freeware gauge component which can be used in vb.net application?
I don't know of any free ones.
|
|
|
|
|
Actually I use dlls for Mobile Application
And when I handling event using code as code is :
AddHandler callState.Changed, AddressOf callState_changed
But when I run Project then following error will occur in above line :
Could not load type Microsoft.WindowsMobile.Utilities.Registry from assembly Microsoft.WindowsMobile.Utilities, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35.
Please Give me Solution If anybody have
|
|
|
|
|
|
Nimesh U wrote: Could not load type Microsoft.WindowsMobile.Utilities.Registry from assembly Microsoft.WindowsMobile.Utilities, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35.
The file may not be there either in GAC (as shared assembly) or in bin folder (in case of private assembly).
Also
1) Wrong Forum.
2) Direct Person Addressing (in subject Dave Kreskowiak )
|
|
|
|
|
What makes you think I do any Mobile development??
That's probably why I didn't reply to your message(s)...
|
|
|
|
|
please help me unload my dll and plugin,i have a program that can load a plugin but i dont know how to unload it,they say that my loading should be different so that i can unload it.
<rattlesnake><3:16>
|
|
|
|
|
Bascially, if you didn't load the DLL into a new AppDomain, there's no way to unload the DLL.
|
|
|
|