I have written up troubleshooting documents for my project and would like them included in my program. I remember in VB6 there was a very easy way to do this with a control, where it already has the help document tree set up on the left and you just set it to point to certain files.
Does something like this exist for .NET? I am aware of...
I have a combobox with a treeview ( tvCategory) inside it. ON the same web page I have a asp panel and on which I have a user Control.
I am trying to use AJAXManagerProxy control. ON treeview node change I want to update panel on the web page. Following code I have used for this.
...
Does the database connection have to be set inside a TransactionScope?
Or can I set it in the ctor and then have instance methods create up a TransactionScope?
EDIT: e.g.
Public Sub New()
Dim conn = new SqlConnection(...connection string)
Public Sub SomeClassMethod()
using ts as new TransactionScope
//conn has already b...
This is what I'm trying to accomplish:
I have a Point of Sale application that integrates with a credit card processesor. I wan't to remove any user interfacing logic in regards to the credit card processor in the point of sale and add it to a application that sits in the background or system tray. I want to be able to send a command ...
I started a new solution (with multiple projects) and am trying to get it to build. Initially I was getting an internal compiler error and thought maybe it had to do with MySql, so I removed all references to MySql. Now I am getting the error "Could not find a 'Sub Main' in ''". I have made sure that all of my projects have a Main sub...
This is the code I have set up to scan a directory of files:
Dim fileArray() As String
fileArray = Directory.GetFiles(System.AppDomain.CurrentDomain.BaseDirectory & "help\")
And it successfully gets all files in the directory, but it gets their absolute paths aswell. For example, one of the entries in fileArray() is:
F:\Project\Proje...
I have this code set up to navigate to a certain .html document depending on what's selected from a ListBox:
Private Sub FileList_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles FileList.SelectedIndexChanged
HelpWindow.Navigate(System.AppDomain.CurrentDomain.BaseDirectory & "help\" & fileArra...
i have 1 master page with 5 pages that call it. now on the master page, I have few dropdowns and textboxes, and the calling pages only have a small article in the corner. I want to start a session on page_load event, so that if the user chooses to select a dropdown or put data in textbox, even if he clicks on the other 4 links of other p...
I am writing a game editor, and have a lot of different "tool" objects. They all inherit from BTool and have the same constructor.
I would like to dynamically populate a toolbox at runtime with buttons that correspond to these tools, and when clicked have them create an instance of that tool and set it as the current tool.
Is this pos...
why I get There is an error in XML document (5, 14) while Iam trying to Deserialize an XML document.?
This is the XML document:
<?xml version="1.0"?>
<Customer xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<FirstName>Khaled</FirstName>
<LastName>Marouf</LastName>
</Customer><...
Hello SO's
i am trying to create a directory in drive C: (at a win7 target machine) with Directory.CreateDirectory but so far no luck.
I believe the problem has to do something with permissions-security... So here i am..
How can i create a directory in drive C?
...
How can i get the
DomainName\AccountName
as string with the .NET Framework?
...
Hi,
I have created a user control tha inherits from the NumericUpDown Control.
Is it possible to set the cursor position within the control?
I am validating the text OnKeyUp, and formatting it when it meets certain criteria.
To do this i have to do me.text = Fomatted(Me.Text), which sets the cursor back to the position 0, i want to set...
Would it be a good idea to start converting forms into .NET one at a time which you would then invoke from the VB6 app via COM-interop.
This way, by the end of the process you would just convert the 'shell' of the VB6 application into a new .NET app, and all your forms are ready to go in .NET.
Is there a better strategy?
...
I have a VB.NET application with a connection to an SQL Server 2003. On the server there are two databases, MyDatabase and MyDatabase_Test. What I would like to do is to show a dialog when the program starts that let's the user choose which database to use. My idea is to create a new form as the starup form that sets this property and th...
I am working to a VB.NET windows forms projet in .NET 1.1. And I have this type of architecture, very simplified.
Public MustInherit Class BaseTestLogic
Private _TimerPoll As Timer
Public Sub New(ByVal sym As SymbolFileMng, ByVal cfg As LampTestConfig, ByVal daas As DaasManager, ByVal mcf As Elux.Wg.Lpd.MCFs.VMCF)
AddHandler ...
At first I was using this as an extension method to update my detached entities...
Public Sub AttachUpdated(ByVal obj As ObjectContext, ByVal objectDetached As EntityObject)
If objectDetached.EntityState = EntityState.Detached Then
Dim original As Object = Nothing
If obj.TryGetObjectByKey(objectDetached.EntityKey, or...
Hi everybody,
I'm currently working on a membership system for my web application, which is based on forms authentication from the framework.
I created some users with the integrated tool, and the login is perfectly working. But now what I want to do is to give administrator the capability to create, modify, delete users.
So here is ...
Question: I have a dll that I can load in another program.
Now the dll has access to all data/functions in the other program.
Which technology can I use that now an external program can send data/commands to that dll, to steer the other program, or get data from it ?
I mean, in the past that meant DDE, I think that was back in Windows ...
the error i get while executing the code below in OleDb
Try
con.Open()
Dim cmd As New OleDbCommand("Select * from customer", con)
cmd.CommandText = " update customer set hr =@hr,min =@min "
cmd.Parameters.AddWithValue("@hr", ComboBoxHr.SelectedIndex.ToString())
cmd.Para...