Topics
-
- 3 replies
- 1.4k views
Here is my xml file: configs.xml <configs> <config name="foo"> <path>c:\mypath</path> </config> <config name="bar"> <path>c:\anotherpath</path> </config> </configs> How can I get the info of 1 node by name, modify the path, and write it back to the xml file?
Last reply by TheBeliever, -
- 4 replies
- 1.2k views
hi is there a way to add an image directly to the body of a mail in order to have the image displayed in the mail without having to open the attachment? best regards george
Last reply by ganders, -
-
- *Experts*
- 2 replies
- 1.1k views
I have a Database (Access) that has a Table Called "Database Information" - it stores adminstrative information on the database. Anyways - I only want the table to have one row of information and I want to keep updating that one single row. So, for starters, if the table is empty (which I can test for to see the row count) then I do a simple INSERT statement to create my first row. Now the problem is - going forward I just want to keep updating that one row/record - is there a way to specify in the statement that I am want to UPDATE row0 (the first row?) Other then the typical SELECT * FROM TABLE (which should only return one row, if there is more then one somethi…
Last reply by Nerseus, -
-
- 0 replies
- 870 views
Hi, I need to display ms-access report from my vb.net application. Can any one guide me to do this? I did using the following code but its opening ms-access database. Dim oAccess As Access.ApplicationClass oAccess = New Access.ApplicationClass Dim Report1 As Object = "Table1" Try oAccess = CreateObject("Access.Application") oAccess.Visible = False oAccess.OpenCurrentDatabase("F:\Execute.mdb", True) oAccess.DoCmd.OpenReport(Report1, Access.AcView.acViewNormal, True) oAccess.DoCmd().Quit(Access.AcQuitOption.acQuitSaveNone) System.Runtime.InteropServices.Marshal.…
Last reply by smriti, -
-
- Administrators
- Leaders
- 7 replies
- 7.2k views
hi people I wanted to now how can I capture the active window, like I could do on VB6, calling to gdi32, what happens is that when I update my project to VB .NET, doesn't update the hdc method Thanks
Last reply by Nate Bross, -
-
-
- Leaders
- *Experts*
- 4 replies
- 1.4k views
I've noticed that you can enclose object types in square brackets when declaring them. What's that all about?
Last reply by snarfblam, -
-
-
- Administrators
- 2 replies
- 839 views
hi all. just learning all about the ASP.NET datasets. im creating a dataset thats a replica of my database. it took a while, as my database has a fair few tables and relationships, but i have it done. now heres my question. i will be gathering info from a form and adding it to the database. from my reasoning i have deduced that i simply add this data to the correct datatable in the dataset and then use the the dataAdapter.Update() method for each table that i have altered in the dataset. this means i have to have an adapter for each table and write an insert command for each adapter which seems a bit overkill. is there a better way to do this? im afraid i cant simpl…
Last reply by fguihen, -
-
- 0 replies
- 951 views
Hello All, I am having a problem related to DB2 and .Net, and was wondering if anyone could help me out. Basically, I can't connect, and I've tried many different ways. I can connect to DB2 if it's on a windows box, but the box I'm trying to connect to is a non-windows box, and is also at a remote location. What I need is to get one of two ways to work, so far I can't get either to work. The first way is using .net OLEDB and connecting via TCP/IP. The other is to use the .net Data application blocks by IBM and connect using the IP address as the server (I think I got in this way but the database name gets padded and then says it can't find it, so it errors out…
Last reply by cyclonebri, -
-
- Leaders
- Administrators
- 4 replies
- 1.9k views
Here's my situation, I have a collection of objects which have collections of objects several levels deep. When I am done working with these objects I call .Clear() method on the topmost object. MSDN2 states that this method will clear the collection and release object members for garbage collection. Does this mean that it's recursive and child collections will also be released or will the subsequent children still be alive and kicking in memory? In pseudocode it would look someething like this (assume all members are exposed correctly): [csharp] class A { Collection<B> _b; } class B { Collection<C> _c; } class C { somevar = 1; } m…
Last reply by DimkaNewtown, -
-
-
- Leaders
- 5 replies
- 8.9k views
Okay - the way it works is I have 3 radio buttons and one datagrid, each time the user selects one of the radio buttons (because only one can be on at a time) I launch a function (RefreshGUI) that will reload the datagrid given the users new selection. To determine when a radiobutton has been checked I am using the _CheckedChanged event - sadly this is having some negative effects... So it goes something like this: private void rbFINISHED_CheckedChanged(object sender, System.EventArgs e) { RefreshGUI(); } private void rbALL_CheckedChanged(object sender, System.EventArgs e) { RefreshGUI(); } private void rbINPROGRESS_CheckedChanged(object sender, System.Even…
Last reply by Cags, -
-
- 5 replies
- 2.2k views
Okay - this is a fun one... I have a main form (called frmApp with class cApp) which, when the user presses a certain button button, can open (show) another form (frmHistory with class cHistory). Now both of these forms communicate with a common database [Access], the thing is the user can open the frmHistory form and make changes to the database and then close that form (and still be in the cApp form) but the Datagrid in cApp isn't Refreshing because it has no way of knowing that data has changed. I need an efficient way for my cHistory class to "tell" my cApp class that it needs to refresh the datagrid. Is there a way for my cHistory class to "launch an instantce"…
Last reply by Cags, -
-
- Administrators
- 4 replies
- 1.1k views
I have noticed that when dealing with ASP.NET applications that need a database back end, you have the options of using either Windows integrated security or using SQL Server authentication. I have done some searching on my own and I have not been able to find resources which discuss the pros and cons of each approach, which one is the suggested approach to use as best overall, and the like. Can someone either point me to resources that disucss these matters or perhaps if no resources exist then drop a reply back with some of their own personal thoughts and experiences on this matter?
Last reply by irasmith, -
-
- 0 replies
- 2.2k views
i get this error when i try to open one my CrystalReports files. A windows pops up and says "Microsoft Development Environment has encountered a problem and needs to close..." When i click on the "click here" link to see details about the error it says: "An unhandled exception has been caught by the VSW exception filter. AppName: devenv.exe AppVer: 7.10.3077.0 ModName: crdesigner.dll ModVer: 9.1.1.179 Offset: 00011192" It only happens on one of my CrystalReports.NET files. All the other ones open fine. My VB files open fine also. It's just that one file that's causing the error. The only difference between it and the other CrystalReports files i have …
Last reply by my_lou, -
-
- Administrators
- 1 reply
- 2.4k views
Hi y'all... I'm in a bit a wee a jam :) I'm in the middle of a project, and already given the specs for another one. I would like to get prepared before the actual coding (when I'm done with this project): I'm supposed to write a program that will browse through mapped disk drive (network folders) and check for file Modified date, if it is lesser then a given date I should ZIP Compress and delete the file. Can you give some clues, links or directions (specialy for ZIPping part). Thanks, all help appreciated!
Last reply by PlausiblyDamp, -
-
-
- Administrators
- *Experts*
- 7 replies
- 1.6k views
Let's say that I have a function that gets passed in an object, and deals with it according to it's type. Which is the better way? Private Sub DoSomething(ByVal O as Object) If TypeOf(O) Is apple Then ' do something ElseIf TypeOf(O) Is orange Then ' do something else End If End Sub or Private Sub DoSomething(ByVal O as Object) Select Case O.GetType.Name Case "apple" ' do something Case "orange" ' do something else End Select End Sub For some reason, you can't do Select Case O.GetType.
Last reply by PlausiblyDamp, -
-
- 0 replies
- 902 views
Hi (my first post): I have a main datagrid which show outstanding orders. When the user clicks a item in the datagrid (Buttoncolumn) the second datagrid appears at the bottom of the page showing all orderlines (dgConfirm). I want the user to edit the gdConfirm datagrid but this somehow doesn't work. The edit button is shown but when I press it, a empty datagrid is shown with nothing to edit. The feedDgConfirm is called when the ButtomColumn in the main datagrid is pressed. Private Sub feedDgConfirm(ByVal PortalID As String) 'feed dgConfirm with proper data conPortal.Open() Dim strSQL As New String("SELECT dbo.[Portal - Purchase Orders…
Last reply by Wolfert, -
- 0 replies
- 845 views
Hi! I need some kind of reporting tool with options to export as pdf for VB.Express 2005. I thought CR was included but I can't find it, is it there? TIA /Kejpa
Last reply by kejpa, -
-
- Leaders
- 5 replies
- 1.3k views
I was wondering in what situations the If/ElseIf, and Switch case statements are best used. By this I mean what are the advantages and disadvantages of each one. From what I can tell they both essentially do the same thing.
Last reply by snarfblam, -
-
-
- Leaders
- 1 reply
- 2.2k views
hey everyone! i would like to launch a .NET assembly from vbScript. example : Dim obj set obj = CreateObject("BusinessLogic.CDataLoader") where BusinessLogic is a .NET dll, strong-named, and registered in the GAC. it seems vbscript looks for a COM component, as it tells me "ActiveX component can't create object: 'BusinessLogic.CDataLoader'" any hints? thank you, Huby.
Last reply by snarfblam, -
-
-
- Leaders
- 2 replies
- 693 views
hi. i cant find that little line that allows me to seperate up a form. its just a line, it does nothing, and its only for astethics. can anyont tell me how to get it?
Last reply by snarfblam, -
-
Who's Online 0 Members, 0 Anonymous, 47 Guests (See full list)
- There are no registered users currently online