TechSapphire Sunday, 2019-01-20, 9:49 AM
Site menu
Login form
News
Play Games
  • Deep Freeze
  • Ice Slide
  • Gyroball
  • Fat Fish
  • Bush Royal Rampage
  • Main » Programming
    Add font at run time .Net Or Font VB Net Or Install Font run time
    You could install or add font at run time for particularly use in your project. This sample code is for installing font to project at run time in Vb.Net.
    Solution:
    Namespace required:

    Imports System

    Global Declaration:

       Dim PFC As Drawing.Text.PrivateFontCollection

      Dim NewFont_FF As Drawing.FontFamily        

    ... Read more »
    Category: Programming | Views: 1069 | Added by: Admin | Date: 2011-10-05 | Comments (0)

    Editing Registry using .net

    For editing registry using .net you need to import microsot.win32 namespace. The Microsoft.Win32 namespace provides two types of classes: those that handle events raised by the operating system and those that manipulate the system registry.

    In editing registry we have to do following operations. Those are:

    Creating Subkey:

    First you have to import Microsoft.win32 namespace. Then declare a variable of type registry key. Do as guided in code.

    VB.Net code

    Imports Microsoft.Win32

    Public Class Pathcreater

    Private sub subkey_creator()

            Dim regKey ... Read more »

    Category: Programming | Views: 1020 | Added by: Admin | Date: 2011-10-05 | Comments (3)

    Reading Doc and Docx using .Net

    There is no open source doc and docx reader. So you could use richtextbix for reading doc and docx reader.

    Code for reading doc and docx file:

                RichTextBoxPrintCtrl1.Text = ""

                Try

                Dim wd As New Word.Application

                With wd

      &n ... Read more »

    Category: Programming | Views: 858 | Added by: Admin | Date: 2011-10-05 | Comments (3)

    Reading  PDF documents using .Net

    For this you could prefer active control of existing reader. For this you could use active control of Adobe reader. But if you use adobe or any other active then that software must be installed on the system where you have to use your project having their active.

    Coding for reading PDF document:

               AxAcroPDF1.LoadFile(Path)

                AxAcroPDF1.src = Path

                AxAcroPDF1.setShowToolbar(True ... Read more »

    Category: Programming | Views: 975 | Added by: Admin | Date: 2011-10-05 | Comments (0)

    Using excel as database using vb.Net Or excel and VB.Net

    Solution code:

    Imports System.Data.Oledb

    Public class form1

    Private Const connstring As String = "Provider=Microsoft.Jet.OLEDB.4.0;" & _

    "Data Source=c:\Test.xls;Extended Properties=""Excel 8.0;HDR=YES;"""

    ... Read more »

    Category: Programming | Views: 871 | Added by: Admin | Date: 2011-10-05 | Comments (3)

    Printing Windows form directly using .Net Or Printing without crystal report .Net

    Solution code in VB.Net:

    Imports System.Drawing.Printing

    Imports System.Drawing.Graphics

    Imports System.Drawing.Imaging

    Imports System.Runtime.InteropServices

    Public Class Form1


    Move to this page for this solution. Click Here
    Category: Programming | Views: 951 | Added by: Admin | Date: 2011-10-05 | Comments (0)

    Filling treeview with directory structure. Or Fill treeview with folder structure.

    For this purpose we have used recursive procedure.

    VB.Net sample code

    Imports System.IO

    Public Class Form1

        Dim strrootpath As String



    Move to solution page for solution to this. ... Read more »
    Category: Programming | Views: 1059 | Added by: Admin | Date: 2011-10-05 | Comments (0)

    « 1 2 3
    Categories
    Programming [27]
    Tips for programming
    Security [2]
    Security Tips
    Google [1]
    Use google faster then ever you use
    Project [14]
    HTML [2]
    Electronics [0]
    Data Structure [0]
    Database [16]
    SQL SERVER
    SSRS [1]
    Sql Server Reporting Services
    Copyright MyCorp © 2019