Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
J

John Ad

@John Ad
About
Posts
64
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Deploying in Visual Studio.net 2003
    J John Ad

    Hi Chandanx, To deploy your Windows applications, you must create a Setup Project and add the necessary components to your project. 1. Creating a Setup Project for Windows Applications In this section, you need to create a Setup Project from the deployment projects available in Visual Studio. You need to have a completed Windows application that uses at least one of the report binding scenarios. See Detailed Listing of All Report Binding Scenarios blog posting. To create a deployment project for Windows applications 1.In Visual Studio, open your Windows application. 2.On the File menu, point to Add Project and then click New Project. 3.In the Add New Project dialog box, select Setup and Deployment Projects in the Project Types pane and select Setup Project in the Templates pane. 2. Adding Components to the Setup Project You must add output files from the Windows application, and merge modules to the Setup Project. To add the Windows application's project output 1.In Solution Explorer, right-click Setup1, point to Add, and then click Project Output.... 2.In the Add Project Output Group dialog box, select Primary output. When Primary output is added to your project, dependencies are added automatically: •ADODB.dll •crystalreports10_net_webservicereporting.msm •dotnetfxredist_x86_enu.msm (excluded from the project) •stdole.dll 3.Right-click the following files and select Exclude: ADODB.dll, crystalreports10_net_webservicereporting.msm, and stdole.dll. To add merge modules to the Setup Project 1. In Solution Explorer, right-click Setup1, point to Add, and then click Merge Module.... 2. In the Add Modules dialog box, select the merge modules that are required for the report binding scenario used in your Windows application. For a description of which merge modules to use for different report binding scenarios, see Crystal Reports Merge Modules blog posting. If you added CrystalReports10_NET_EmbeddedReporting.msm, you must enter a valid Crystal Reports Keycode, as shown in the next step. 3. In Solution Explorer, click CrystalReports10_NET_EmbeddedReporting.msm. In the Properties window, expand MergeModuleProperties and scroll down to the Keycode property. Enter the keycode for Crystal Reports 10. 3. Building and Deploying the Setup Project Building the Setup Project creates an installer that you can deploy to other computers. Note When deploying to other computers, always ensure that the computer already has the .NET Framework installed. To build a

    Visual Studio csharp visual-studio tutorial

  • Map file format for gps application
    J John Ad

    Hi, Refer to the following link: GPS Mapping[^] Map Grabber[^] I hope this would give you better idea to start from.

    John Adams ComponentOne LLC. www.componentone.com

    C# question

  • RememberMe option to remember only username using asp:login?
    J John Ad

    Hi Rams, Refer to the following code that uses a CheckBox and gives the flexibility to the user to save the username: protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { CheckBox cek = (CheckBox)Login1.FindControl("RememberMe"); if (Request.Cookies["username"] == null Request.Cookies["username"].Value.ToString().Trim() == "") { cek.Checked = false; } else { Login1.UserName = Request.Cookies["username"].Value.ToString(); } } } protected void Login1_LoggingIn(object sender, LoginCancelEventArgs e) { CheckBox cek = (CheckBox)Login1.FindControl("RememberMe"); if (cek.Checked == true) { HttpCookie cookie = new HttpCookie("username"); cookie.Value = Login1.UserName; cookie.Expires = DateTime.Now.AddDays(1);//cookie Expires HttpContext.Current.Response.AppendCookie(cookie); } else { HttpContext.Current.Response.Cookies.Remove("username"); } cek.Checked = false; } //--- another way protected void Page_Load(object sender, EventArgs e) { if (Request.Cookies["MyCookie"] != null) { TextBox pass = (TextBox)Login1.FindControl("Password"); pass.Attributes.Add("value", Request.Cookies["MyCookie"]["password"]); Login1.UserName = Request.Cookies["MyCookie"]["username"]; } } protected void Login1_LoggedIn(object sender, EventArgs e) { HttpCookie cookie1 = new HttpCookie("MyCookie"); cookie1.Values.Add("username", Login1.UserName); cookie1.Values.Add("password", Login1.Password); cookie1.Expires = DateTime.Now.AddDays(1);//cookie Expires HttpContext.Current.Response.AppendCookie(cookie1); } I hope this would be helpful. For more information on this refer to the following links: Overview of Forms Authentication[^] How to implement simple Form Authentication[^]

    John Adams ComponentOne LLC. www.componentone.com

    C# question

  • set as homepage
    J John Ad

    Hi Tarun , Refer to the following links: Link #1[^] Link #2[^] I hope this would be helpful.

    John Adams ComponentOne LLC. www.componentone.com

    ASP.NET csharp

  • Can we use LINQ for MySql ?
    J John Ad

    Hi, Yes, you can. Use LINQ for NHibernate. LINQ for NHibernate[^] If you want to set up a Multi-Tier infrastructure, InterLINQ could probably be a solution for you. InterLINQ [^] Also, see this project: LINQ Provider for MYSQL[^] I hope this would be helpful.

    John Adams ComponentOne LLC. www.componentone.com

    LINQ csharp mysql linq question

  • Setting Desttop icon on status bar
    J John Ad

    Hi, Try this [^] link. I hope this would resolve the problem.

    John Adams ComponentOne LLC. www.componentone.com

    Windows Forms tutorial

  • text box custom behaviour during edition
    J John Ad

    Hi Witek, Use events of Keys (KeyDown or KeyPress or may be you may use TextChanged event) and check for the conditions (if the control contains 10 characters or so). Then put the code for execution, may be forcing a line break or something as per the requirements. I hope this would be helpful.

    John Adams ComponentOne LLC. www.componentone.com

    Windows Forms help

  • how to load Pdf file to file test to RichText Box
    J John Ad

    Hi Wasim, Refer to the below mentioned link: Read from a PDF file using C# [^] I hope this would be helpful.

    John Adams ComponentOne LLC. www.componentone.com

    C# tutorial

  • How to load PDF file Content in Rich Text Box using C#
    J John Ad

    Hi Wasim, Refer to the below mentioned link: Link [^] I hope this would be helpful.

    John Adams ComponentOne LLC. www.componentone.com

    C# csharp help tutorial

  • Removing Title bar Icon
    J John Ad

    Hi, Refer to the below mentioned links, these may be helpful: Link #1[^] Link #2[^] Hope this helps.

    John Adams ComponentOne LLC. www.componentone.com

    Visual Studio com help

  • SQL to LINQ
    J John Ad

    Hi Nilish, Try these links: Link #1[^] Link #2[^] Link #3[^] I hope these would be helpful.

    John Adams ComponentOne LLC. www.componentone.com

    LINQ database csharp linq question

  • How do i clear a list box
    J John Ad

    Hi Wamuti, Try using the following line of code if it is a Bound ListBox: this.listBox1.DataSource = null; For Unbound ListBox: this.listBox1.Items.Clear() I hope this would be helpful.

    John Adams ComponentOne LLC. www.componentone.com

    modified on Thursday, September 4, 2008 10:33 AM

    C# help csharp visual-studio question

  • How to restrict multiple logon to an application?
    J John Ad

    Hi, Add the login userID's to a "loggedin" database table, and check whether the current userID used to login exists in the table. For that to work, however, you need to insure that users are recorded as logged out when they exit the application. You can do that by checking if their sessions have expired, and deleting the userID record from the table. Linking the SessionID to the userID should be enough. I hope this would be helpful.

    John Adams ComponentOne LLC. www.componentone.com

    ASP.NET help tutorial question

  • How to open ms word form vb.net to a particular bookmark?
    J John Ad

    Hi Chaitanya, Refer to the following links: Link #1[^] Link #2[^] Link #3[^] Link #4[^] I hope this would be helpful.

    John Adams ComponentOne LLC. www.componentone.com

    Visual Basic csharp help tutorial question

  • .Net Applicatons
    J John Ad

    Hi, .Net applications can be run on the mobile devices provided the mobile has Windows Mobile Operating System and a Compact Framework. J2ME is entirely a different technology and you do not need J2ME to run .Net applications. I hope this would be helpful.

    John Adams ComponentOne LLC. www.componentone.com

    ASP.NET csharp help

  • Append to a PDF file
    J John Ad

    Hi, Try the following links: Link #1[^] Link #2[^] Link #3[^] I hope this would be helpful.

    John Adams ComponentOne LLC. www.componentone.com

    C# help question

  • Open 2 forms and close the first
    J John Ad

    Hi, You may try setting the Visible property to False on loading of the Form. E.g. On Form1_Load, Open Form2 and and set the visible property of Form1 as False. Similarly do it for the remaining Forms. I hope this would be helpful.

    John Adams ComponentOne LLC. www.componentone.com

    C# help

  • java script timer control
    J John Ad

    Hi Balaji, Use RegisterClientVariable, you may refer to the following code snippet: At Server Side: ClientScript.RegisterHiddenField("HiddenField", "120"); At Client Side: var temp = document.getElementById("HiddenField"); I hope this would be helpful.

    John Adams ComponentOne LLC. www.componentone.com

    .NET (Core and Framework) java javascript tools question

  • Minimize all windows
    J John Ad

    Hi Alexei, Use the following code: Public Declare Sub keybd_event Lib "user32.dll" (ByVal bVk As Byte, ByVal bScan As Byte, ByVal dwFlags As Int32, ByVal dwExtraInfo As Int32) Public Sub MinimizeAll() keybd_event(&H5B, 0, 0, 0) keybd_event(&H4D, 0, 0, 0) keybd_event(&H5B, 0, &H2, 0) End Sub The first line declares the API. Next piece of code is a method which we can call anywhere to minimize all windows... I hope this would be helpful.

    John Adams ComponentOne LLC. www.componentone.com

    Visual Basic question

  • Manage Window from a Process (Minimize, Maximize, Close...)
    J John Ad

    Hi, Set WindowState property of your form to FormWindowState.Maximized or FormWindowState.Minimized for maximizing and minimizing the Form. Refer to this [^] To Show/Hide and Close the form, use use Form.Hide/Close/Show. E.g. to show the current form, use this.Show() I hope this would be helpful.

    John Adams ComponentOne LLC. www.componentone.com

    C# question tutorial
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups