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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
V

vhassan

@vhassan
About
Posts
27
Topics
18
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Integer by reference
    V vhassan

    Thank you. Please guide me about PageMethods or AJAX method you are referring. I am stuck on this particular situation :(

    JavaScript tutorial csharp javascript html hardware

  • Integer by reference
    V vhassan

    Dear Experts! I have any object with classid embedded in html. That object exposes a method with take C# reference (ref) parameter integer. I want to call that method using javascript.

    var refInt = 0;
    document.getElementById("myObject").GetReferenceInt(ref refInt);
    alert(refInt);

    Please tell me how I can get that. I have seen ref is a keyword in JavaScript. Can't find any solution for this. Please guide how to use object if this is not appropriate. Thank you.

    JavaScript tutorial csharp javascript html hardware

  • Updating Table
    V vhassan

    Thank you for your replies.

    Database question database tutorial announcement learning

  • Updating Table
    V vhassan

    Thank you Avi Berger. Yes this update works. Position is not incremental instead it is calculated value. Please read my reply to Luc Pattyn. Have a good day.

    Database question database tutorial announcement learning

  • Updating Table
    V vhassan

    Thank you for reply. I will act upon your advice. Sure I will grab a book. As you mentioned the query. I am already using it. Actual problem is performance. You know this update uses composite key (bookId, pageId, PKValue) to update one single field.

    UPDATE [Books] SET [Position] = '1234' WHERE bookId =22 AND pageId =1 AND PKVALUE = '134-100';

    Now for example I have to updates 200 position of this pageId = 1 and bookId = 22 I have to call 200 times this Query. What I can do to just fill once for all for a specific page and then next page and go on. Thank you.

    Database question database tutorial announcement learning

  • Updating Table
    V vhassan

    Hi, I am using Microsoft Access 2002 database. I want to update one field of Table. I have repetitive values in different fields like. (Book Table field & values below) bookId 22 pageId 1 PKValue 134-100 Position The PKValue is unique identifier. One Page can contain number of unique PKValues. That means we can have repetitive bookId and pageId values. Now if I want to update Position field based on bookId, pageId and PKValue my query needs long loop for updating many Positions of single page. Can somebody guide me what is solution to get fast update of Position field? I hope I conveyed my question right. Thank you very much.

    Database question database tutorial announcement learning

  • Using OCX control in C#
    V vhassan

    Hi, My project has layered architecture. Business logic has separate project and in this project I have to use some registered OCX method. Current situation: In presentation layer I have window forms. It is easy to add OCX control in toolbox and draw it on any form. Object of drawn OCX control can be used for calling its methods. But I don't want to do it in presentation layer. I have following question: Should I manually add reference of OCX in business logic project? If yes then how I can use it in cs files? Please tell me how to call method of OCX without having forms. That means no creation of control at design time. Thanks. Hassan Nisar

    C# question csharp design business architecture

  • How to apply wild cards on Attribute Value?
    V vhassan

    <BookStore> <Book> <Page pname="abcded"/> <Page pname="def"/> <Page pname="ghi"/> <page pname="acd"/> <page pname="cad"/> <page pname="amd"/> </Book> </BookStore> How can I select all page elements (xpath query) having pname starting with "a" Thanks.

    XML / XSL question database xml tutorial learning

  • Group Selection in List View
    V vhassan

    I have listview that contain multiple groups. each group has multiple items. when I select single item it gets highlighted. but when I click on group the listview item selection is changed. I get no item selected. What I should I do to keep the item selected unless user clicks on other item not group. Please tell.

    C#

  • ToolStripContainer ContentPanel visibility
    V vhassan

    Hi everyone! I have fixed sized form having ToolStripContainer that contains bottom and top ToolStripPanel. I have 2 toolstrips and my contentpanel is designed when they were in single row. Now at runtime when I changed a toolstrip to another row of container my form contents get hidden behind the boundary of form. This happens also when I change one of toolstrip to bottom ToolStripPanel as well. The bottom panel hides few buttons in ContentPanel. How I can keep the visibility of my ContentPanel in these scenarios. Thanks. Good Day. Hassan

    C# docker

  • DataGridView
    V vhassan

    Hi everyone, 1- How can we rename Column Header Text in DataGridView? Is that possible to make the header editable? 2- Can we show or hide Columns in DataGridView? 3- How can we swap column positions if column are in numbers and we have to horizontally scroll to access different columns? Thanks. Good Day.

    C# question

  • Designing Table to Record Hierarchy
    V vhassan

    Hi, How we can design a database tables that record hierarchical data. The levels of hierarchy are not fixed. For example: Table Header: A B C D E F G SomeOtherHeader Respective record: 1 4 3 2 6 t a PK_of_Another_Table 2 3 4 6 8 y a PK_of_Another_Table Now the record has upto Level "G" with different values. But it can be up to different level for another block of record. So what is best relational implementation of this Dynamic Hierarchy? Please refer any link that is worth reading related to this topic. Thanks. Good Day.

    Database question database design tutorial

  • TreeView NodeMouseHover Event
    V vhassan

    Hi, I want nodes of tree view should behave like hyperlink. This I achieved by setting HotTracking property of tree view asTrue. Now I want to change my Cursor as I hover over the Node text not the full row range. Firstly: I used NodeMouseHover event but cannot change the cursor to default. Secondly:

    private void treeView1_MouseMove(object sender, MouseEventArgs e)
    {
    if (treeView1.GetNodeAt(e.X, e.Y) == null)
    treeView1.Cursor = Cursors.Default;
    else
    treeView1.Cursor = Cursors.Hand;
    }

    I used above TreeView MouseMove event. Using this I get default cursor when I hover over blank space of treeview but the cursor changes to hand when the pointer is not even over text and Node is not even underlined (using HotTracking). Please help me to get cursor change only on text of Node.

    C# data-structures help

  • Form Layout
    V vhassan

    Hi I am using Visual Studio 2005. I want to layout my Form automatically when I restore or maximize form window. The controls on the form like groupbox containing many other controls should adjust according to size of form. Question: 1. How I can implement this? What is best way? 2. Should I do it using code. That is by changing locations of controls? I used Anchor property but it doesn't worked for me. Please tell. Thanks

    C# question csharp visual-studio

  • Multi Forms Application
    V vhassan

    Thank you for reply. I want Main Form as a separate window. Not like MDI container. Is that possible to have Main Form invoking new windows and works as parent to all new windows?

    C# question

  • Multi Forms Application
    V vhassan

    Hi everyone. I want to make an application that has one Main Window Form. From this main form I want to open new forms. Each newly opened form is showed in Taskbar and can be individually closed. But I want main window form to be Owner of all newly opened form. In the above case I want single instance of Main Form running as an application and if i close the main form all other opened forms should be closed. I cannot used this.AddOwnedForms(newForm) because there are few restrictions of minimize and focusing main form. What is best way to achieve this functionality? Thanks. Good Day.

    C# question

  • C# MDI Application
    V vhassan

    Look into msdn sample applications for C#

    C# csharp question

  • Visual Basic Multilingual Support - Picking Desired Resource
    V vhassan

    Hi everyone! I have 5 different languages string tables in resource file of my application. Now I want my application to pick my desired string table from resource file. How can I do that? Thanks.

    Visual Basic question learning

  • Dynamic Data Exchange LinkExecute
    V vhassan

    please see following details:

    public Sub Main()

    If App.PrevInstance Then        
       If Command$ <> vbNullString Then
           myform.HiddenText.Text = Command$
           myform.HiddenText.LinkTopic = "MyApplication|SendCmd"
           myform.HiddenText.LinkMode = vbLinkManual
           myform.HiddenText.LinkExecute myform.HiddenText.Text
           myform.HiddenText.LinkMode = vbLinkNone
        End If
        Unload myform
        Exit Sub
    
    Else
        'perform some checks
        
    End If
    
    'pseudo code 
    If checks are not valid 
        show message and exit
    else
        if command$ has value
               myform.show
        else 
               myform.hide
        end if
    end if
    

    Exit sub
    End Sub

    Now in this case i get "Timeout while waiting for DDE response". Please reply.

    modified on Monday, June 15, 2009 12:39 AM

    Visual Basic help tutorial

  • Folder permissions
    V vhassan

    How we can check folder read/write or full control permissions using VB6.0? Thanks.

    Visual Basic question
  • Login

  • Don't have an account? Register

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