Click here to Skip to main content
15,891,529 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Error loading file with crystal report in Vb .net Pin
Richard MacCutchan17-Jun-18 1:09
mveRichard MacCutchan17-Jun-18 1:09 
QuestionInterview Pin
Member 1387329014-Jun-18 11:54
Member 1387329014-Jun-18 11:54 
AnswerRe: Interview Pin
Eddy Vluggen14-Jun-18 11:59
professionalEddy Vluggen14-Jun-18 11:59 
QuestionHow do I stop folders being merged too. Pin
glenn masters3-Jun-18 1:57
glenn masters3-Jun-18 1:57 
SuggestionRe: How do I stop folders being merged too. Pin
Richard MacCutchan3-Jun-18 23:56
mveRichard MacCutchan3-Jun-18 23:56 
Questionvb.net desk app using app.config file Pin
dcof1-Jun-18 11:21
dcof1-Jun-18 11:21 
AnswerRe: vb.net desk app using app.config file Pin
Dave Kreskowiak1-Jun-18 13:24
mveDave Kreskowiak1-Jun-18 13:24 
GeneralRe: vb.net desk app using app.config file Pin
dcof4-Jun-18 9:56
dcof4-Jun-18 9:56 
The code in the application looks like the following:
Private Sub frmMain_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
       frmMain.GlobalForm = Me
       Dim strUserName As String = ConfigurationManager.AppSettings("NameofUser")
       If strUserName = "ANN" Then
           Dim strDirectoryPath As String = ConfigurationManager.AppSettings("File_directory_path")
           If Not (Directory.Exists(strDirectoryPath)) Then
               Application.Exit()
               Exit Sub
           End If
       Else
           Dim strDirectoryPath2 As String = ConfigurationManager.AppSettings("File_directory_path_KARON")
           If Not (Directory.Exists(strDirectoryPath2)) Then
               Application.Exit()
               Exit Sub
           End If
       End If

The code in the app.config file looks like:
<?xml version="1.0"?>
<configuration>
    <system.diagnostics>
        <sources>
            <!-- This section defines the logging configuration for My.Application.Log -->
            <source name="DefaultSource" switchName="DefaultSwitch">
                <listeners>
                    <add name="FileLog"/>
                    <!-- Uncomment the below section to write to the Application Event Log -->
                    <!--<add name="EventLog"/>-->
                </listeners>
            </source>
        </sources>
        <switches>
            <add name="DefaultSwitch" value="Information"/>
        </switches>
        <sharedListeners>
            <add name="FileLog" type="Microsoft.VisualBasic.Logging.FileLogTraceListener, Microsoft.VisualBasic, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL" initializeData="FileLogWriter"/>
            <!-- Uncomment the below section and replace APPLICATION_NAME with the name of your application to write to the Application Event Log -->
            <!--<add name="EventLog" type="System.Diagnostics.EventLogTraceListener" initializeData="APPLICATION_NAME"/> -->
        </sharedListeners>
    </system.diagnostics>
    <startup><supportedRuntime version="v2.0.50727"/> 
    </startup>	
	<appSettings>
		<add key="NameofUser" value="ANN"/>		
	</appSettings>
</configuration>

GeneralRe: vb.net desk app using app.config file Pin
Dave Kreskowiak4-Jun-18 11:13
mveDave Kreskowiak4-Jun-18 11:13 
GeneralRe: vb.net desk app using app.config file Pin
dcof5-Jun-18 4:21
dcof5-Jun-18 4:21 
GeneralRe: vb.net desk app using app.config file Pin
Dave Kreskowiak5-Jun-18 5:45
mveDave Kreskowiak5-Jun-18 5:45 
GeneralRe: vb.net desk app using app.config file Pin
dcof5-Jun-18 7:48
dcof5-Jun-18 7:48 
GeneralRe: vb.net desk app using app.config file Pin
Dave Kreskowiak5-Jun-18 8:11
mveDave Kreskowiak5-Jun-18 8:11 
QuestionInserting to new table in between two table in ms word from vb.net Pin
Osioghole Clifford28-May-18 13:50
Osioghole Clifford28-May-18 13:50 
QuestionLINQ: How To Make Order By Conditional? Pin
Alan Burkhart26-May-18 16:05
Alan Burkhart26-May-18 16:05 
AnswerRe: LINQ: How To Make Order By Conditional? Pin
Richard MacCutchan27-May-18 1:05
mveRichard MacCutchan27-May-18 1:05 
GeneralRe: LINQ: How To Make Order By Conditional? Pin
Alan Burkhart29-May-18 14:42
Alan Burkhart29-May-18 14:42 
AnswerRe: LINQ: How To Make Order By Conditional? Pin
Richard Deeming30-May-18 9:58
mveRichard Deeming30-May-18 9:58 
GeneralRe: LINQ: How To Make Order By Conditional? Pin
Mycroft Holmes30-May-18 14:27
professionalMycroft Holmes30-May-18 14:27 
GeneralRe: LINQ: How To Make Order By Conditional? Pin
Richard Deeming31-May-18 1:15
mveRichard Deeming31-May-18 1:15 
GeneralRe: LINQ: How To Make Order By Conditional? Pin
Alan Burkhart31-May-18 7:18
Alan Burkhart31-May-18 7:18 
GeneralRe: LINQ: How To Make Order By Conditional? Pin
Alan Burkhart31-May-18 7:33
Alan Burkhart31-May-18 7:33 
QuestionWebBrowser Javascript Error handing via HtmlWindow works in IE8 mode but not in IE10 or Edge. Pin
Jeffrey Cobb26-May-18 15:55
Jeffrey Cobb26-May-18 15:55 
QuestionOutlook Mail Drag Drop into Textbox of a Win Form Pin
HPS-Software24-May-18 18:41
HPS-Software24-May-18 18:41 
AnswerRe: Outlook Mail Drag Drop into Textbox of a Win Form Pin
Richard Deeming25-May-18 2:35
mveRichard Deeming25-May-18 2:35 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.