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
S

Sifar 0

@Sifar 0
About
Posts
45
Topics
29
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Width issue with Rotated Image
    S Sifar 0

    I have written below code. Need to run on IE versions, so used filter for rotation. Clicking several times on the button, that will update the width of the image, will re-position the image. Any help will be appreciated.

    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <title>Zoom Issue</title>

    <style>
    .ImgClass{
    filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3);
    height : auto;
    width : 100%;

    }
    .divClass{
    width : 800px;
    height : 750px;
    }

    </style>
    </head>

    <SCRIPT type="text/javascript">
    function zoomImage(){
    document.getElementById('myImage').style.width = document.getElementById('myImage').offsetWidth * 1.5;
    }
    </SCRIPT>

    <body>
    <input type="button" id='btnClick' value='Click' onClick="zoomImage();"/>
    <DIV class='divClass'>
    <IMG class='ImgClass' id='myImage' src='Image.jpg' />
    </DIV>

    </body>
    </html>

    Regards, -SIFAR.

    Web Development help javascript html tools announcement

  • Disable Drag and Drop in Textbox
    S Sifar 0

    Thank you Sandeep. :)

    Regards, -SIFAR.

    ASP.NET question csharp javascript

  • Unexpected Error : E_UNEXPECTED(0x8000FFFF)
    S Sifar 0

    Thanks vinod, but i use the same connectionstring.

    Regards, -SIFAR.

    C# help csharp database sysadmin tutorial

  • Unexpected Error : E_UNEXPECTED(0x8000FFFF)
    S Sifar 0

    Thanks Prakash, I agree with you that permission might be the issue. But the database is created with the installation process of the software. And the client faces the problem from very first exectuion. (And i think that the client does not have MS-Access installed on his machine) I will work around this and post the result accordingly..

    Regards, -SIFAR.

    C# help csharp database sysadmin tutorial

  • Unexpected Error : E_UNEXPECTED(0x8000FFFF)
    S Sifar 0

    Hi everyone, I have a Windows application developed in C#. I use MS-Access database and OLEDB to connect with the database. One of my client faced problem while executing the software. While studying the error log file that the software created, it has:

    No error message available, result code: E_UNEXPECTED(0x8000FFFF)

    The same client is able to run the software on other machines in same network. I have no access to the cilent machine. If anyone has experienced such situation or have any knowledge about how to resolve this then it will be of great help. I have asked the client to provide the Windows Event Log.. that might be helpful.

    Regards, -SIFAR.

    C# help csharp database sysadmin tutorial

  • Serial Port Communication
    S Sifar 0

    Thanks TAFIN. I am aware about that class. My problem is how to determine the exact Port Number to which the device is attached without iterating through all the ports.

    Regards, -SIFAR.

    C# question hardware

  • Serial Port Communication
    S Sifar 0

    Hi All, I have an appliation that communicates with a hardware device attahced with the system. So far, the device had been attached using USB so the application was determining the PORT using Port Name. Now, the newer device have 9-pin serial port. How can I now determine the Port number? I don't want to iterate through all the ports and send any command and analyse the response to determine the required Port. Any suggestion or hint would be greatly helpful...

    Regards, -SIFAR.

    C# question hardware

  • Registry problem with 64-bit Vista
    S Sifar 0

    Hi All, I have created one Windows Applcation and its Setup. While installing the appliaton with Setup.exe, I create one registry entry with below code.

    Step 1 : regKey = Microsoft.Win32.Registry.LocalMachine.CreateSubKey("SOFTWARE\\Microsoft\\MyKey");

    Immediately after this, I read this value with below code.

    Step 2 : regRead = Microsoft.Win32.Registry.LocalMachine.OpenSubKey("SOFTWARE\\Microsoft\\MyKey", true);

    Then when I run the application I read the registry with below code, it is same as Step 2.

    Step 2 : regRead = Microsoft.Win32.Registry.LocalMachine.OpenSubKey("SOFTWARE\\Microsoft\\MyKey", true);

    All works fine.. But when I installed this application on 64-bit Vista Business machine it creates problem. Vista created Wow6432Node for registry entries of 32-bit application. It is a transparent process. For, Step 1 it has created MyKey under HKLM\SOFTWARE\Wow6432Node\Microsoft. For, Step 2 it has fetched value of MyKey from HKLM\SOFTWARE\Wow6432Node\Microsoft. For, Step 3 it does not find the registry entry and return null. Code for opening sub key in Step 2 and 3 is same.. Please advise.

    Regards, -SIFAR.

    C# windows-admin business help workspace

  • Problem with Vista 64-bit
    S Sifar 0

    Hi All, I have a Windows Application developed with Visual Studio 2005. I have delivered its Setup files to all of my client. It works fine everywhere with Windows XP and Vista. Now, one of my clients has Vista 64-bit installed on his machine and my Setup does not run successfully over this machine. It gives Error Code 2869. Is there any fix to be applied on Vista machine? Setup should be built on 64-bit machine? Guys, I do not have 64-bit machine to test these approaches. Any suggestion would be very helpful..

    Regards, -SIFAR.

    Windows API help csharp visual-studio question workspace

  • Error with Web Service
    S Sifar 0

    Hi Friends, I have a very simple testing Web Application on my SharePoint server. The appliation utilizes a Web Service that resides on a different machine in LAN. I have updated wss_mediumtrust.config and wss_minimaltrust.config files. I have inserted below code in these files.

    <PermissionSet class="NamedPermissionSet" version="1" Name="MY_WEBSERVICE_NAME">
    <IPermission class="AspNetHostingPermission" version="1" Level="Medium"/>
    <IPermission class="SecurityPermission" version="1" Flags="Execution"/>
    <IPermission class="WebPartPermission" version="1" Connections="True"/>
    <IPermission class="WebPermission" version="1" Unrestricted="true">
    <ConnectAccess>
    <URI uri="http://IP_ADDRESS/VIRTUAL_DIR/Service.asmx"/>
    </ConnectAccess>
    </IPermission>
    <IPermission class="SharePointPermission" version="1" ObjectModel="True" UnsafeSaveOnGet="True"/>
    </PermissionSet>

    Now, the whole application is running fine. But the button is clicked that calls the web service an error message An unexpected error has occurred comes up. The Web Application is running fine with web service when executed directly from the Browser. Please advise..

    Regards, -SIFAR.

    SharePoint sharepoint sysadmin testing beta-testing help

  • Windows Installer Patch
    S Sifar 0

    Hi, I have my project in c# and I have its setup project. To update my existing clients with latest changes, I require to create a Windows Installer Patch. I could create a patch with MsiMsp.exe, but however my patch does not update the existing application. Changes are not reflected... I would have missed some configuration or set them wrong :( Can anyone help to get one by one steps to create a Windows Installer Patch?

    Regards, -SIFAR.

    C# workspace csharp help question announcement

  • How to update MS Access database in the installed application?
    S Sifar 0

    Hi, I have a setup program that installs my application with an MS Access database. Now, when I have to provide an update to a client, I again build a setup program and give them this setup. The client unistalls his existing program and installs new setup. This process also wipes out his existing database. To overcome this, I set permanent property of database in the setup TRUE. This has resolved the above problem. But now... I have updated few tables in my database. The clients must be provided with the update such that his existing data must be retained intact... HOW to achieve this? Any suggesstion will be greatly helpful?

    Regards, -SIFAR.

    C# database help tutorial question announcement

  • 'Red Cross' is displayed for non-admin user
    S Sifar 0

    Thanks Hariharan, But a non-admin user can view the graph for few seconds when the application starts. After that the 'Red Cross' appears...

    Regards, -SIFAR.

    C# help sysadmin data-structures question

  • 'Red Cross' is displayed for non-admin user
    S Sifar 0

    Hi All, I am re-posting this question with some more detail. In my windows application I am using 'Zedgraph' dll for displaying graph. In my code I am not using multithreading anywhere. On some of the systems (Windows XP) it shows unhandled exception 'System.InvalidOperationException' (object is currently in use elsewhere). And the instead of graph it just shows RED CROSS. At client side network, if the user is an Administrator then the application runs fine. But if the user is not an Administrator then after few seconds above error is being observed. That means non-admin user can view the graph only for few seconds during starting of the application. Any idea... I have googled about this issue but I found that it may be due to Multithreading and I am not using it anywhere. Any suggestion would be helpful...

    Regards, -SIFAR.

    C# help sysadmin data-structures question

  • XMODEM File Transfer
    S Sifar 0

    Helo Every 1, I want to receive files via MODEM and files are being transferred by XMODEM. I am using C# and want to receive files from different MODEMS. What is the way to receive and send files by XMODEM using c#? I can do it by Hyper Terminal but I want to do it in my code. Any Suggestion will be very helpful.. Thanks in advance..

    Regards, -SIFAR.

    C# question csharp

  • Comma as Decimal Symbol creating problem
    S Sifar 0

    Hi All, I have a windows appliation. It creates problem when it runs with Dutch(Belgium) or some other language settings that set Decimal Symbol as Comma(,) and Digit Separator as Dot(.) Due to such settings, number like 2.22 or 22.2 will be considered as 222. Is there any way to run .net appliation under default English(US) settings irrespective of settings of Regional and Language Options? Without changing global settings on user's PC?

    Regards, -SIFAR.

    C# csharp help question

  • object is currently in use elsewhere
    S Sifar 0

    It is .Net Framework 2.0

    Regards, -SIFAR.

    C# help data-structures

  • object is currently in use elsewhere
    S Sifar 0

    Hi All, In my windows application I am using 'Zedgraph' dll for displaying graph. In my code I am not using multithreading anywhere. On some of the systems (Windows XP) it shows unhandled exception 'System.InvalidOperationException' (object is currently in use elsewhere). And the instead of graph it just shows RED CROSS. I have googled about this issue but it says that it may be due to Multithreading and I am not using it anywhere. And the application is running fine but creates problem on some of the systems on my Client side. Any suggestion would be helpful...

    Regards, -SIFAR.

    C# help data-structures

  • Application gets stuck after writing on to COM Port
    S Sifar 0

    Thanx Dybs, I had already tried this approach but it does not work under Windows Vista. Actually, in Vista when you login as Administrator everything works fine. But with users other than Administrator it does not works. Vista creates different registry entries for othe Users. I have found below solution : I have used ManagementObjectCollection and ManagementObjectSearcher.

    ManagementObjectCollection ManObjCollection;
    ManagementObjectSearcher ManObjSearch;

    ManObjSearch = new ManagementObjectSearcher("Select * from Win32_PnPEntity");
    ManObjCollection = ManObjSearch.Get();
    foreach (ManagementObject ManObj in ManObjCollection)
    {
    if (ManObj["Name"] == "Name You Are Looking For")
    {
    // Do Some Job..
    }
    }

    This has worked fine for me with XP and Vista, (Administrator and Non-Administrator) and it is fast also. Hope this would help you further...

    Regards, -SIFAR.

    Hardware & Devices csharp help com

  • Application gets stuck after writing on to COM Port
    S Sifar 0

    Hi Everyone, I have a windows Application developed with .Net 2005 and C#. It communicates with a device using virtual COM Port. I use Windows XP Home and Prof. It works fine everywhere. But recently I shipped the software to one of my client. There it creates problem. During its first run the software checks all COM Ports by sending specific command and where it finds proper response it detects that the device is attached to that Port. This is a regular process of the software. But, while checking the COM ports the application gets stuck after sending command to COM Port. And only way to close it is from Task Manager. This happens with 4 to 5 system, the client had tried. I have also written Log files, there also after sending Command to com port, nothing is logged. Note : No Anti Virus is installed there; Drivers are installed properly; Device is detected by the system when attached; displayed in device manager Any suggestion or hint will be greatly appreciated...

    Regards, -SIFAR.

    Hardware & Devices csharp help com
  • Login

  • Don't have an account? Register

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