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
H

honeyashu

@honeyashu
About
Posts
39
Topics
22
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Create single setup to install x64 & x86 msi
    H honeyashu

    Problem is i am unable to find a way to create such type of setup.exe which should call appropriate msi to run on correct system.

    C# csharp database visual-studio help workspace

  • Create single setup to install x64 & x86 msi
    H honeyashu

    Thanks for your reply, but what i want is i want to create one setup.exe, one set of prerequisites and two msis' in separate folders (e.g. x86 & x64) which contains their respective msi file. Thus running on setup.exe will search for firstly prerequisites & then on the basis of system will run the appropriate msi to install. Regards, Ashish

    C# csharp database visual-studio help workspace

  • Create single setup to install x64 & x86 msi
    H honeyashu

    Hi, I have to create a single setup package which on detection of User's machine decides which msi to consider(compiled for x86 bit machine or x64 bit machine). My Project using: 1. Visual Studio 2010 2. Coded in C# 3. Built on framework 4.0 4. Using Windows Installer 4.0 5. Prerequisits included (Framework 4.0 (integrated x86 & x64) and SQL Express2008 (integrated x86 & x64)) Problem is currently i have to build 2 setups for different target palteforms (x86 & x64) which bundeling same prerequist files. If a single setup can be done which decides which sub-msi to use will save more that 100 mb of files to be included in the package. Thus i want to create one setup.exe, one set of prerequisites and two msis' in separate folders (e.g. x86 & x64) which contains their respective msi file. So that executing setup.exe will search for firstly prerequisites & then on the basis of system will run the appropriate msi to install. Regards, honeyashu

    C# csharp database visual-studio help workspace

  • Generate SQL Script of databases with data through an exe
    H honeyashu

    Hi, I have to develop an exe module to generates a script text file for all the databases exist on a server(in my case SQL Server2008) with all its objects, data, triggers,etc.. I know this can be achieved by Generate Scrip for Task menu in SQL Server2008 but this is manual & needed to work for each database with explicitly defining its properties selection, thus making it long hours task. Any sample project would be appreciated Regards Ashish

    C# database sysadmin tools

  • Needed to Create a Scrolling Ticker with LinkLabel Functionality
    H honeyashu

    Hi, In my project I use a ticker to display feeds which get displayed in a scrolling way. In this we are converting the string to be displayed in BitmapImage and adding it up to the ticker by drawing in it.. Attached is the needed code with the message.: What i need is the image which we are displaying on clicking on it will open up the URL (which is actually the string now converted to image). i.e. on clicking that scrolling tick will open the displayed URL. To create bitmap image of the string

    private Image CreateBitMapImage(string upText, string downText, int trend)
    {
    Image trendImage;
    ImageAttributes iaTrend;
    if (trend > 0 && _ticker.UpTrendImage != null)
    {
    trendImage = (Image)_ticker.UpTrendImage.Clone();
    iaTrend = _ticker.IaUpTrend;
    }
    else if (trend == 0 && _ticker.NoTrendImage != null)
    {
    trendImage = (Image)_ticker.NoTrendImage.Clone();
    iaTrend = _ticker.IaNoTrend;
    }
    else
    {
    trendImage = (Image)_ticker.DownTrendImage.Clone();
    iaTrend = _ticker.IaDownTrend;
    }

            Bitmap b = new Bitmap(1, 1);
            Font f = \_ticker.Font;
            Graphics graphics;
            SolidBrush textBrush = new SolidBrush(\_ticker.ForeColor);
            graphics = Graphics.FromImage(b);
            try
            {
                int width = (int)graphics.MeasureString(upText + downText, f).Width +
                            \_ticker.UpTrendImage.Width;
                //int height = Height - Padding.Bottom - Padding.Top;
                Rectangle \_rect =
                    new Rectangle((int)graphics.MeasureString(upText + downText, f).Width, 0,
                                  trendImage.Width, \_ticker.Height);
    
                b = new Bitmap(b, new Size(width, \_ticker.Height));
    
                graphics = Graphics.FromImage(b);
    
                graphics.DrawString(upText, f, textBrush, 0, 0);
                graphics.DrawString(downText, f, textBrush,
                                    (int)graphics.MeasureString(upText, f).Width, \_ticker.DownTrendRectY);
                graphics.DrawImage(trendImage, \_rect, 0, 0, trendImage.Width, trendImage.Height,
                                   GraphicsUnit.Pixel, iaTrend);
                return b;
    
            }
            catch (Exception \_e
    
    C# graphics

  • Need to import a table & Query from one mdb to other
    H honeyashu

    Thanx but i need it to implement in my C# code... So i need a query to execute this step :)

    Database database help

  • Need to import a table & Query from one mdb to other
    H honeyashu

    Hi all, I have to import a table & a Query from c:\Programfile\asd\MyProject\test.mdb to c:\document&settings\ applicationdata\test.mdb. I have created & established the Connection string & all. the only thing i am not getting is Query needed to pass... Please help.. Ashish

    Database database help

  • Need to Import table & query from one MS Access databas to another.
    H honeyashu

    Hi All, I have to import a table & a Query from c:\Programfile\asd\MyProject\test.mdb to c:\document&settings\ applicationdata\test.mdb. I have created & established the Connection string & all. the only thing i am not getting is Query needed to pass... Please help..

    C# database help

  • Message Box changing focus & moved to the back of the parent window [modified]
    H honeyashu

    I already did that... no luck so far

    C# help json

  • Message Box changing focus & moved to the back of the parent window [modified]
    H honeyashu

    Thanks... any view regarding problem???

    C# help json

  • Message Box changing focus & moved to the back of the parent window [modified]
    H honeyashu

    Hi all I am facing a problem in my application some times it appears to user that system/ application get hanged and he is unable to do ANY THING, the only option left to him that to kill the application using Task Manager. I found the reason that actually my message box is went to back of the current window due to which focus gets lost from the front. I searched on the net and found that in my application overriding of a windows method cause such problem this method is used to draw and display a timer/click on the MDI form rest i dont know about the functionality. I am attaching the code if any body can help please reply as it's really confusing for me and i am not getting any solution for the same

    protected override void WndProc(ref System.Windows.Forms.Message m)
    {
    try
    {
    base.WndProc(ref m);
    switch (m.Msg)
    {
    case (int)WM_TIMER:
    // If Autolock feature gets started
    if (PreferencesController.IsAutoLockStart)
    { //_stastAL will be true only for the Form load and if in Preferenes ,AutoLock is assigned as true.
    if (PreferencesController.IsSetAutoLock)
    { //Starts the hooking of Keyboard and mouse hooks
    actHook.Start();
    //specifies the end time
    PreferencesController.EndTimeAutoLock = DateTime.Now.AddMinutes(PreferencesController.LockWorkStationTimeInMinute);
    PreferencesController.IsSetAutoLock = false;
    }
    AutoLockWS();
    }
    if (PreferencesController.IsShowDateTime)
    Main_OnNcPaint(ref m);
    //To Run Macro TODO: Take it from config file

                             if (DateTime.Now.ToLocalTime().ToShortTimeString().Equals(
                                 ConfigurationService.GetExcelMacroExecutionTime()))
                                ExcelFile.RunMacro();  
                        break;
                    case (int)WM\_NCPAINT:
                        if (PreferencesController.IsShowDateTime)
                            Main\_OnNcPaint(ref m);
                        break;
    
    C# help json

  • Required data through http connection
    H honeyashu

    Actually I don't know how to write code for that .. I am really new to this ..

    C# question sysadmin cloud data-structures cryptography

  • Required data through http connection
    H honeyashu

    Hi, I am working on a windows application in which I have to send a http url to a server which returns me the data which i have to enter to a hash table. I am unable to create the http connection to the server. Please help how can i write that method url is smthing like in which i have to paas 2 parameters which returns me a string . e.g. http://202.87.50.140:6000/Services/asd.getprice?Item=$Item$&Code=$Code$

    C# question sysadmin cloud data-structures cryptography

  • Getting Message : "Could not Update , currently locked" .?
    H honeyashu

    Hi, I am developing an application in which i use to select data from one grid remove that & display it to the second grid. I store those data in a local mdb file . when i am selecting rows in bulk(around 50-70 at a time)and then wanted to cut and display in the second grid i am getting this error . Please help.

    Database help css question announcement

  • Getting Message: "Couldn't Update; Currently Locked" in mdb
    H honeyashu

    Hi, I am developing an application in which i use to select data from one grid remove that & display it to the second grid. I store those data in a local mdb file . when i am selecting rows in bulk(around 50-70 at a time)and then wanted to cut and display in the second grid i am getting this error . Please help.

    C# help css announcement

  • Need to copy folder from one path to other
    H honeyashu

    I have to find a folder from the path where my application exist e.g. c:/programfile/RTGSL/exe/.. then from exe folder i have to copy two folders(with all data) name applicationdata & client from this path to the current logged in user's personal folder path i.e. C:\Documents and Settings\ashishjaiswal\Application Data\clientdata\ if and only if no folder exist at this path.. Can any body help me with this code .. I am really new to programming

    C# help

  • How to get resizable pointer for column on a grid
    H honeyashu

    I already did.. but did any body know that how can i do this .. even on general grid what is the property to enable this?

    C# css tutorial question

  • How to get resizable pointer for column on a grid
    H honeyashu

    Hi, I am using a Syncfusion virtual grid in my project this grid has 3 columns.. I wanted to increase there size by dragging it's corner through mouse pointer .. How can i do that .. since i have seen this can be done only on those grids on which moving the mouse it will display that resize pointer

    C# css tutorial question

  • need to access the value of property "SETUPEXEDIR"
    H honeyashu

    Below is the code which get called during generation of installer I wanted to retrieve the value of property of SETUPEXEDIR in a string.. Unable to do so.. please help using System; using System.Collections.Generic; using System.ComponentModel; using System.Configuration.Install; using System.IO; using System.Reflection; using System.Windows.Forms; namespace ABC.CustomInstallation { [RunInstaller(true)] public partial class CustomInstallation : Installer { public CustomInstallation() { InitializeComponent(); } public override void Install(System.Collections.IDictionary stateSaver) { \\-- Here i want to check the SETUPEXEDIR value----\\ if some validation skip next 2 lines... ConfigurationForm frmConfig = new ConfigurationForm(); frmConfig.ShowDialog(); base.Install(stateSaver); } } }

    C# help workspace

  • How to find the directory path for msi during installation
    H honeyashu

    This is the code which i am talking about.. the position i mentioned in the code there i need to find the path for that specified file before calling that Configuration form .. i have to create MSI for my project.. using System; using System.Collections.Generic; using System.ComponentModel; using System.Configuration.Install; using System.IO; using System.Reflection; namespace Trade.CustomInstallation { [RunInstaller(true)] public partial class CustomInstallation : Installer { public CustomInstallation() { InitializeComponent(); } public override void Install(System.Collections.IDictionary stateSaver) { "Here I need to Check for the File " ConfigurationForm frmConfig = new ConfigurationForm(); frmConfig.ShowDialog(); base.Install(stateSaver); } protected override void OnAfterUninstall(System.Collections.IDictionary savedState) { base.OnAfterUninstall(savedState); //This method is used to delete all the files after uninstallation. string rootPath = string.Empty; string clientPath = string.Empty; DirectoryInfo directoryInfo = Directory.GetParent(Assembly.GetExecutingAssembly().Location); string currentDirectory = directoryInfo.ToString(); char[] separator = { '\\' }; string[] pathArray = currentDirectory.Split(separator); //condition for Single drive like c:\ if (pathArray.Length == 2 && string.IsNullOrEmpty(pathArray[1])) { rootPath = currentDirectory + "Root"; clientPath = currentDirectory + "Client"; } else { rootPath = currentDirectory + @"\Root"; clientPath = currentDirectory + @"\Client"; } string[] subDirectories = Directory.GetDirectories(currentDirectory); for (int subDirectoryCount = 0; subDirectoryCount < subDirectories.Length; subDirectoryCount++) { //Delete Root Folder if (rootPath.Equals(subDirectories[subDirectoryCount])) Directory.Delete(rootPath, true); //Delete Client Folder if (clientPath.Equals(subDirectories[subDirectoryCount])) Directory.Delete(clientPath, true);

    C# question help 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