|
You probably just need the Access driver installed to run it. I think most of the newer Windows operating systems, or at least Windows XP, already have the driver installed.
|
|
|
|
|
Yes. You just have to make sure that the user has a certain version of Microsoft Data Access Components (MDAC) installed. You can do this by setting the MDAC as a prerequisite in the setup project of your program.
|
|
|
|
|
Yes, a VB.Net application can can work with an Access database without a full version of ACCESS installed. The proper Access runtime must be present (installed) -- part of Office Extensions for .Net 200x.
Note that Microsoft has removed the .Net 2003 Office Extensions from its Web sites so you can no longer easily obtain them. It becomes an interesting exercise in missing pages and pages that automatically send you back to themselves in infinite loops!
As long as the proper ODBC, etc. drivers are installed and you are not trying to do anything "fancy", you may not need the Office Extensions.
Hope this helps.
Charles Wolfe
C. Wolfe Software Engineering
|
|
|
|
|
Hello,
I am trying to add files into a listview and take them out of listview and store into windows explorer.
I have no problem in dragging items from the windows explorer into my listview. But I could not manage to drag items from the listview and drop into explorer. All I want to know is, when I drag an item and drop into a windows explorer, I need to know where (into which folder?) the item is dropped.
Can anybody please help?
Thank you
|
|
|
|
|
Ok here it is. I am creating an estimator in VB 2005. The break down is like this Customer-->Jobs-->Estimates-->Rooms-->Items All are one to many relationships.(Works fine in Access)
I have gotten everything working then hit a roadblock(Due to being new to VB). I need to show all the items for a room in a editable list(Subform that VB does not have). An Item has the following fields. Group,Type,Qty,UOM,Price,Upgrade,UpgradePrice,Zoned,ZoneChage,Linetotal
Group is a Combo box that filters the selections of Type
Group A containes Type1,Type2
Group B containes Type3,Type4
etc...
Type is also a Combo box that sets the Price,UOM,Zone,Zonecharge
Qty is just a text box that holds # of items
Upgrade is a combo box that sets the upgrade price based on selection
Linetotal is calculated
Data must be able to be changed on the fly and new calculations performed in realtime(Like Excell(Currently being used for estimator)
I have tried the datagrid and listview both without success(I think they might work with more advanced code)
I even tried putting 25 items in one table but my update dies because i go over the 127 field mark. I have been on this for weeks and I can't find a solution. Any help would be great.
|
|
|
|
|
i work in vb.net 2003 i put data in datagrid ineed when user select row from datagrid and press delete key from keyboard prevent delete this row and message appear
ma_refay
|
|
|
|
|
When I use the function SpecialFolders(Desktop), the path I back is C:\Documents and Settings\All Users\Desktop. Is there a way for me to parse this string and get only the portion "C:\Documents and Settings\All Users\" so that I can concatenate something else to it instead of "Desktop"? Thanks.
|
|
|
|
|
You can always use the Left function to get the first part of the string if you want to be messy.
VB6 Example:
strTemp = SpecialFolders(Desktop)
path = Left(strTemp, Len(strTemp - 7)
VB.NET Example:
strTemp = SpecialFolders(Desktop)
path = strTmp.Substring(0, strTmp.Length - 7)
|
|
|
|
|
You don't need to do that. All you need is the value of the USERPROFILE environment variable:
Set WshShell = WScript.CreateObject("WScript.Shell")
ProfilePath = WshShell.ExpandEnvironmentStrings("%USERPROFILE%")
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
I am trying to get the Page_load event to dynamically update my checkboxlist values to correspond with the columns in my grid view. the code I have is as follows:
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs)
Dim listItemCount As Integer = -1
Dim totalColNum As Integer = GridView1.Columns.Count
If Page.IsPostBack Then
''Do Something
Else
While listItemCount <= totalColNum
listItemCount += 1
CheckBoxList2.Items.Add(GridView1.Columns(listItemCount).ToString)
End While
End If
End Sub
But I am getting this error:
Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
Any ideas??
|
|
|
|
|
Try replacing '<=' with '<' in 'While listItemCount <= totalColNum'. If this doesn't fix it put a break inside the loop and see just how many times you are actually looping through before the error occurs. When the program reaches the break you can hold the mouse over the 'totalColNum' variable and see how many times its trying to loop.
|
|
|
|
|
I figured it out:
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs)
Dim listItemCount As Integer = -1
Dim totalColNum As Integer = GridView1.Columns.Count
Dim valNum As Integer = -1
If Not Page.IsPostBack Then
totalColNum = totalColNum - 1
While listItemCount < -1
listItemCount += 1
valNum += 1
CheckBoxList2.Items.Add(GridView1.Columns(listItemCount).ToString)
CheckBoxList2.Items.Item(listItemCount).Value = valNum.ToString
End While
End If
End Sub
|
|
|
|
|
hi all
can anyone help me in displaying images in a datalist.
images are stored in a folder, not in databse
but the image path is stored in the table
which control shall i use in itemtemplate?
how can i link that control with database?
can anyone help me in detail
thanks in advance
|
|
|
|
|
You can probably add a picturebox to your form and use the PictureBox1.Load(imagepath) function.
|
|
|
|
|
sorry
i want to display in a web form
in a web form , we dont have picturbox, right?
can i use image control?
if yes, how can i set the path?
please help me in solving this
thanks in advance
|
|
|
|
|
I'm sure the image control will work. Scroll through its methods until you find a property or a method that you can use that will allow you to set the image's source, or URL, or path. The image control has some property or method for this. If its a method it will probably be named something like Load. To look through what properties and methods are available type: Image1. where Image1 is the name of your image control. once you press the '.' a list will pop up with all the properties and methods that you can use.
|
|
|
|
|
i want to assemble different web pages of project into different project and asses it as a single project.
omi
|
|
|
|
|
Copy them all the the one folder, and if you have a sln file, add them to it
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
I'm using the new report designer. One textbox has a long narration which causes it to spill its information into other textboxes directly below it. How can you stop this from happening?
|
|
|
|
|
I have a just started using VB.NEt and
have a large d drive on my computer and a small c drive.
Is there a way I can tell .Net to use
d drive instead of c drive to store my wwwroot folder?
Can I leave the inetpub folder on c?
CiscoKid55
|
|
|
|
|
You don't have to move your wwwroot. What you can do is create a new folder like d:\temp\blah. "blah" will be the folder containing your web app. Use the IIS admin console to create a new virtual directory called "blah" that points to d:\temp\blah. Then, go to visual studio and create a new web application in http://localhost/blah. It will use the virtual directory you supplied and put the files out on the D drive.
Logifusion[^]
If not entertaining, write your Congressman.
|
|
|
|
|
thanks...
CiscoKid55
|
|
|
|
|
Hi:
I have two panels in a window form and their AutoScroll attributes are set to true. Yet I'd have one panel's HScrollBar or VScrollBar hidden so as to synchronize panel scrolling later.
Could any helper instruct me how to make it? Thanks a lot.
David Ye
|
|
|
|
|
hi!
i have made one master form with toolbar control over it. and i made the modifier of the toolbar to protected so that watever new form which will b inherited from this one can change the properties of this toolbar. but its not working in that way. wat shud b done to get this functionality.
its and desktop application.
thankx in advance.
atif saeed khan
|
|
|
|
|
Hi,
I am creating tmp files everyday written as a Windows service. How would I got about deleting the tmp files from yesterday, would like only the ones created today to exist, which would then be deleted the next day?
Thanks.
-- modified at 10:32 Tuesday 22nd August, 2006
Would this make sense - if midnight then delete all .tmp files?
Thanks
|
|
|
|