Hi,
I've got a simple MSI installer for my VB.Net WinForms application and I have it set to insert a single registry key into the computer's HKEY_LOCAL_MACHINE node. This usually works, but if the user doesn't have access, the MSI spits out an error. Is there any way in the MSI installer to...
I figured it out. Seemed I needed to name the WebBrowser control (via the name property) and then define it in other parts of the code such as:
Dim WebBrowser As WebBrowser
WebBrowser = TabControl1.TabPages("Tab Name").Controls.Item("1")
WebBrowser.Refresh()
I've got a tab control that I dynamically create tabs for each record in a dataset. In each tab, a web browser control is dynamically created as well. It looks like this:
For Each Row As DataRow In DataSet.Tables("Pages").Rows
TabControl1.TabPages.Add(Row.Item("tab_title")...
I'm moving into a new data center. I don't consider myself a network engineer or anything but I do understand the basics. The new data center I am moving into routes my network to me a bit differently than my old data center, so I thought I'd post here and ask for some help.
The IOS on the...
That's exactly what I ended up doing, and after I was finished, i thought to myself, this sucks! What a low tech solution. Like you said, there has to be a better way!
I've got an app where I want to pull data from a MySQL database into a DataSet, then take the data in the DataSet and insert its records into a SQL Server database table. What is the best way to accomplish this?
I've got a type TEXT field where users are putting in values such as:
Field 1: [VALUE1]
Field 2: [VALUE2]
Field 3: [VALUE3]
Is there any way in SQL to take that single TEXT field and create a field for FIELD 1 with the value, FIELD 2 with the value, and FIELD 3 with the value? The value would...
Is there any way to have a sub routine do an "Exit Sub" on the sub it was called from? I.E. In the following, I would want the "Test" MsgBox not to show if the variable > 0. Effectivly, Sub Test() would terminate execution of Sub Main().
Sub Test()
If variable > 0 Then
*** EXIT SUB MAIN BELOW...
Is there any way to have empty values converted to NULL on an insert or an update? I've got an application that will inserted '' rather than NULL if a textbox is left blank. My desire is to have it insert a NULL. I was hoping to find a solution that would enable me to not have to do all this...
...But I have a combobox that is bound to a data source. I have fields on the same form that display data based on which item is selected in the combobox. Everything is working fine. My question is, when the form loads, the first item is selected with all of its data shown. Is there a way to...
Agreed, you certainly could do that... But if the connection string is stored as a "connectionstring" type in app.config, then I can use that in my table adapters and in visual studio's tools. If it were stored in a text file, i still wouldn't be able to set the applications official connection...
I have a simple combobox that I don't want to bind to a data table. I just want to add a few items to it.
combobox_status.Items.Add("Active")
combobox_status.Items.Add("Inactive")
I want the user to see the descriptions above, but when selected, I want to be able to use a value instead of the...
Here is what I ended up with. The application deploys with a blank connection string. The user will then need to define a connection string for the application to work. The connection string will be added to app.config and then encrypted. The user can then go in and modify the string which will...
Here is something I did which I haven't seen on any documention on the web... I'm thinking about putting it into a doc page for other people since I'm sure it may be useful. Not sure if it is 100% yet but preliminary results seem to be good. This code will build a string, remove the old string...
Thats what I had thought about doing... But one of my main goals is to be able to use .NET's protect functionality to encrypt the connection string once it is set, which I can only do on the app.config. I'm working something up that I think is working and I'll post it here if it does. Appreciate...
I've also found that :) See the comment that I left on that page (by Rock-Pond Solutions)... That method works great, but only persists for that runtime. I could load a new connection string into a user setting and then set the runtimeconnectionstring() to the user setting when the app loads...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.