Search results for query: *

  • Users: jassie
  • Content: Threads
  • Order by date
  1. J

    edit for upper case letter and numbers only

    In a C# 2010 desktop application, I want a textbox field to contain only letters in upper case. In addition, I want to allow for numbers. Any other values are not valid for this textbox field. Thus can you show me code on how to setup the edit for uppercase letters and numbers only in the...
  2. J

    user is a member of an active directory group?

    I have a C# 2010 desktop application where I have code setup to see if a user is a member of an active directory group. I am using WindowsIdentity to check the current users active directory group level. The following code is not working. Thus can you tell me how to what is wrong with the code...
  3. J

    select excel file from directory path

    In a C# 2010 desktop application, I want to change the application so that it will only allow users to select a report that meets the following criteria: 1. part of the file name is "ErrorReport" and 2. The last node of the file name is .xlsx or .xls. So far I have the following code: string[]...
  4. J

    linq to sql use app.config file

    I am having a linq to sql problem with a C# 2010 windows form application when it is changed to a dll and accessed by other applications. The purpose of the calling the code as a dll is for performance reasons and to share the code accross multiple applications. When the application is on its...
  5. J

    submit button and textbox

    In a C# 2010 desktop application, I would like to use the following code when the user is selecting a file in a specified directory path: OpenFileDialog dialog = new OpenFileDialog(); dialog.Filter = "txt files (*.txt)|*.txt|All files (*.*)|*.*"...
  6. J

    allow user to select directory path

    In a new C# 2010 windows form application that I will be writing, I have the following items to mention: 1. The form will have the following 2 places for the user to select/enter data: a. customer id, and b. a window where the user can select the directory path of where they want to...
  7. J

    acess dll from various locations

    I have a C# 2008/2010 application that is currently accessed as a exe file and I would like to change the application so that the exe is accessed though as a reference. The code that calls the dll is a process and the code looks like the following: strConsoleAppLocation =...
  8. J

    pass parameter values to dll

    I have a C# 2008/2010 application that is currently accessed as an exe file. I would like to change the application that calls the program in a 'faster and/or better' manner. The contract shop that saw the code says there is a 'faster and/or better' method but I do not know what that method...
  9. J

    linq to sql default setting is taken

    In a C# desktop application, I am using linq to sql to connect to a sql server 2008 r2 database. The applicatiion is setup to point to various databases depending upon the value in the app.config file. The problem is code in the *.designer.cs gets overrriden somehow by 'defaults' in the .net...
  10. J

    convert dll to be used as an api

    I have the following questions in regards to converting a C# 2008 appliation that is currently executed as a dll and now I want to change the program so that is executed as an api. I have the following comments to make which are: 1. This program was originally setup as a console application...
  11. J

    check for specific folder name in directory path

    In a C# 2008 desktop application, I would like to come up with a test to see if the value 'CUST' is a valid directory level within a directory path supplied to the program. Basically the directory path would look like: "C:\RData\CUST\Omaha\book.xlsx". The code I am using the following code, but...
  12. J

    make a windows form a dll

    I would like to be able to take an existing console application that is written in C# 2008 and just make it a dll. I would thenlike to write a new web forms page in C# 2010 that would pass the information to the console app that was entered into the web form. Can you tell me how to accomplish...
  13. J

    new web form

    I need to take the main parts of a C# 2008/2010 console application and turn it into a thin client for the web in visual studio 2010. I will describe the current C# 2008/2010 application and then I would describe what I would like to do with a 'new version (clone) of the 'second' program...
  14. J

    new small web app

    I need to take the main parts of a C# 2008/2010 console application and turn it into a thin client for the web in visual studio 2010. The only things that need to be displayed on the screen is to enter the customer number and where to obtain a file in a directory path. The user will it the enter...
  15. J

    use the existing application without rewriting it

    In an existing C# 2008 windows application I am trying to decide how to use the existing application without rewriting it. Currently there is a 'driver C# 2008 windows' program that calls the 'main C# 2008 desktop' application to perform various caLLS to a third parfty web service. Now I would...
  16. J

    desktop run time parameters

    I would like to know who to accomplish the following goal using an existing C# 2008 desktop application. I would like to take the C# run time input and output parameters and possibly put the calls into a batch file and or with some method you recommend. Here are the following I would like to...
  17. J

    file name contained in an xml file

    For a C# 2010 desktop application, I have a user that wants me to work with a directory path name that looks like C:\C-Received. I am going to place the C:\C-Received in the application configuration file which is in an xml format. I am wondering if the dash (-) that is part of the...
  18. J

    foreach loop

    I have a question about how to modify the C# 2008 desktop foreach (String RFile in RFiles) block of code and/or the code that is surrounding this block of code. The code I am referring to is listed below. Originally the code was setup to select files in a specific file directory. Now the...
  19. J

    file directory structure change

    In a C# 2008 desktop application I would like to know how to change the following code so that the files I am looking for can be located. string Format_Date = DateTime.Now.AddMonths(-1).ToString("MM-yyyy"); String filesaveLocation = null...
  20. J

    convert C# datetime to sql server datetime

    In a C# 2010 desktop application I am using a linq to sql statement to compare a C# datetime field to a sql server 2008 r2 datetime field. By doing this comparison I am getting inconsistent results. Thus I am guessing a C# datetime field is not the same as a sql server 2008 r2 datetime value...
Back
Top Bottom