Showing posts with label Windows Forms. Show all posts
Showing posts with label Windows Forms. Show all posts

Friday, 24 February 2012

Create an Excel 2007 file and change font for the ceel in the Excel in VB.NET 2005



From the following sections you can find how to create an Excel 2007 worksheet through VB.NET 2005. For creating an Excel 2007 worksheet in VB.NET 2005 , you have to add the Microsoft Excel 12.0 Object Library in you project.

Thursday, 23 February 2012

How to export DataTable to CSV File Format


Protected Sub Button1_Click(ByVal sender As Object, ByVal e As EventArgs)

    Dim Con As String = ConfigurationManager.ConnectionStrings("ConnectionString").ToString()

How to print windows form in .NET


First, we created a simple form with a few controls, that do nothing, so that the form would have something on it.  We added a Print Form command button and called it btnPrintForm.

Thursday, 20 October 2011

how to change textbox background color whenever validation fails using asp.net(custom validator)

I have a one requirement like changing the textboxes background whenever validation fails at that time I used the custom validator and JavaScript function to validate textboxes and change the textboxes background color for that write the following code in your aspx page

how to create watermark textbox using javascript

Introduction

Here I will explain how to create watermark textbox using JavaScript.

Description:

What is an application object and where we use application object in asp.net | application object sample using asp.net

What is an application object?

Application object is used to store the information and access variables from any page in application. Application object is same as session object only the difference is session object is used to maintain the session for particular user.

Monday, 17 October 2011

Simple AJAX Example


<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %>

Set a single select, a multiple select, checkboxes and a radio button in jquery



<!DOCTYPE html>
<html>
<head>
  <style>

Use the function argument to modify the value of an input box. in jquery



<!DOCTYPE html>
<html>
<head>

Set the value of an input box. in jquery



<!DOCTYPE html>
<html>
<head>
  <style>

Get the current value of the first element in the set of matched elements in jquery


Hi in this article i explain about how to get the current value of the first element in the set of matched elements in jquery

Get the single value from a single select and an array of values from a multiple select and display their values using jquery



<!DOCTYPE html>
<html>
<head>
  <style>

Find the value of an input box using jquery keyup() function



<!DOCTYPE html>

<html>

<head>

<style>

Wednesday, 12 October 2011

how to bind data to DataGridView in windows form

Imports System
Imports System.Data
Imports System.Data.SqlClient
Imports System.Data.DataSet
Public Class Form1