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
S

sunitkrishna

@sunitkrishna
About
Posts
10
Topics
3
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Draw Tool 2005
    S sunitkrishna

    Hi, I have used the drawtool2005 project,modified it,by storing locations and shape ids in the database.What i would like to know is whether i can add a background image to the layout file created.

    SRK

    C# database

  • Toggling and enabling of menustrip items and sub items.
    S sunitkrishna

    Ok.Thanks...

    SRK

    C# csharp help question

  • Toggling and enabling of menustrip items and sub items.
    S sunitkrishna

    I dont understand how the data will b eredundant,as the fields in the usrlvlmas table are usr_id n menu_id. Each time new permissions are set for the user,all the existing levels for that user are deleted and only new ones are updated. Anyway let me have a try again.

    SRK

    C# csharp help question

  • Toggling and enabling of menustrip items and sub items.
    S sunitkrishna

    I am getting only the currently logged in user's permissions into the datatable,by passing his userid.I think you got confused by then name of the function.

    SRK

    C# csharp help question

  • Plz solve the prob its very urgent
    S sunitkrishna

    If you want to get the string "this is not a valid transaction." from the response,you can use this: str.Substring(str.LastIndexOf("|")+1,str.Length-(str.LastIndexOf("|")+1)) where str="0|R002|this is not a valid transaction." regards,

    SRK

    C# csharp database sql-server sysadmin help

  • Toggling and enabling of menustrip items and sub items.
    S sunitkrishna

    Lev, this is the current code i am using:- private void SetUserPermissions(int userId,int grpId) { DataTable objDt = objUserlBus.GetAllUserLevel(userId); for (int i = 0; i < objDt.Rows.Count; i++) { foreach (ToolStripMenuItem menu in objMain.menuStrip1.Items) { if (objDt.Rows[i][1].ToString() == menu.Tag.ToString()) { menu.Enabled = true; } EnableMenu(menu, objDt, 0); } } } private void EnableMenu(ToolStripMenuItem tm, DataTable dt, int strt) { try { foreach (ToolStripMenuItem item in tm.DropDownItems) { for (int i = strt; i < dt.Rows.Count; i++) { if (_usrGrp == 2 && item.Tag.ToString() == "7.01") continue; if (item.Tag.ToString() == dt.Rows[i][1].ToString()) { item.Enabled = true; EnableMenu(item, dt, i + 1); } } } } catch (Exception ex) { MessageBox.Show(ex.Message); } } Please go thru this n verify whether i have gone wrong anywhere. regards,

    SRK

    C# csharp help question

  • Toggling and enabling of menustrip items and sub items.
    S sunitkrishna

    Thanks Lev for your help. But my problem is that i am using a datatable to find the user levels of the logged on user.the data retrieved from the datatble has values like :- 8(main menu item) 8.01(sub menu) 8.02 8.03 8.04 8.04.01(sub item of 8.04) 8.04.02 8.05 8.06 8.06.01(sub item of 8.06) 8.06.02 8.06.02.01(sub item of 8.06.02) 8.06.02.02 these values are the menu ids that i set in the user permission screen. I want to iterate thru the datatable as well.getting a bit confused with all the looping. Please help me out........... thanks in advance

    SRK

    C# csharp help question

  • Toggling and enabling of menustrip items and sub items.
    S sunitkrishna

    I have a doubt in the enabling and disabling of menustrip items and subitems (C#.Net). This is to be done based on user permission settings for every level and sublevel of menus. I would like to use a recursive function to make this happen. I am setting the userlevel(menu id) as the tag of each menustripitem. Can anyone help me to achieve this? This is very urgent. regards, sunitha

    SRK

    C# csharp help question

  • listview
    S sunitkrishna

    hi, i would like to change the the backcolor of the columnheaders of the listview im using. can we do that as in the case of datagridview(there is an option in datagridview to change the same)?

    SRK

    C# csharp help

  • listview
    S sunitkrishna

    hi, i would like to get the backcolor of the listview column header changed,using c# . can anyone help me out please....

    SRK

    C# csharp help
  • Login

  • Don't have an account? Register

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