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

shaz jazz

@shaz jazz
About
Posts
32
Topics
15
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • DateTime saving problem from C# application..
    S shaz jazz

    Hi! I have some problem relating saving datetime variable in SQL Server from C#.net application. i use Datetime.ToShortDateString() while sending parameter to Database. now the format of resulting string depends upon the regional settings of windows and SQL server takes M/dd/yyyy format or ISO format yyyymmdd. I want my application to be independent of regional settings. so i want whatever the regional setting is i should send to DB after converting to M/dd/yyyy format. For this purpose i wanted to override DateTime.ToShortDateString() but DateTime is a sealed class. So what should i Do??? any suggestions??

    May God help u solv ur problems as well,thx in advance!!

    C# database csharp help sql-server sysadmin

  • clssid's are visible...what to do?
    S shaz jazz

    thaks a lot..but the problem is that i wanted to develop my self. so what suggestion do you give if i want to develop such a software myself.

    May God help u solv ur problems as well,thx in advance!!

    IT & Infrastructure help tools question

  • clssid's are visible...what to do?
    S shaz jazz

    HI.. i have made a small application which hides folders by renaming them by using clsids. clsids are concatenated by folder names and different attributes are added to the folder automatically. i use class id for locking folder. The big problem faced by me is that usually these clasids are not visible to user and aparently he doesn't know that clsid is used. but unfortunately in some versions of windowsXP and specifically in windowsXP server2003, when i renamed the folder its class id is fully shown along with its name?? why is it so?? i tried to use different options from Tools->Folder Options->view menu but not successfull. plz help me what to do????

    May God help u solv ur problems as well,thx in advance!!

    IT & Infrastructure help tools question

  • how to control working in combobox_TextChanged() event?
    S shaz jazz

    i am using a combobox and a textbox control. text box behaviour depends upon selected value of combobox. These properties of combo box are assingned. AutoComplete = true; AutoCompleteMode = SuggestAppend; AutoCompleteSource = CustomSource AutoDropDown = true; Further more .net 2.0 is under usage with visual Studios 2005. in combobox_TextChanged() event i have assigned some value to textbox control. now i want that when user is typing over the combo box then as he types first letter the TextChanged() event is triggered and my textbox values changes accordingly. i want to control it some how so that when user ends typing only then my textbox values are changed. I tried to control it through combobox.selectionStart and combobox.selectionLength properties but thay always give 0 values. So how should achieve my goal?? Furthermore when user start typing over combobox and in case selection changes then no key event is trigered (i.e keyPress(), keyUp() or keyDown() events)but it selection doesn't changes only then keyUP() event is trigered. Moreover event of combobox_SelectionChangeCommitted()is also tested and it is not triggered when user types on combobox. Any suggestions?

    May God help u solv ur problems as well,thx in advance!!

    C# csharp help tutorial question

  • windows double click event
    S shaz jazz

    Thanks a lot! indeed i was not considering that point. I should better catch event of folder opening in some way coz any body can open the folder in any way even by pressing enter button in key board!! so any body can help me how to instantiate an application when someone tries to open a folder??? Thanks again..SK

    May God help u solv ur problems as well,thx in advance!!

    C# help tutorial question

  • windows double click event
    S shaz jazz

    HI all! i want to instantiate my application when user double click some folder in windows explorer. how should i accomplish it? when i will instantiate my application it will check it the folder name has a specific CLSID concatenated in it...and on this basis it will further proceed. so what are suggestions ? because i have no idea how to preceed?

    May God help u solv ur problems as well,thx in advance!!

    C# help tutorial question

  • password assgning application?
    S shaz jazz

    Hi! well i have read that article fully. It gives good ways to lock the folder but i was worried how to ask for password from user when he double clicks that folder?? Do you have any ideas about it? can you help me further in development of my application?and can you give me your email for further communication if required? Hope to see your positive response!

    May God help u solv ur problems as well,thx in advance!!

    C# csharp help question

  • I want to enter only Negative values,Positive values,Decimal values in TextBox
    S shaz jazz

    hi! i have used this chunk of code for taking only positive decimal and interger values, it worked successfully for me. you can modify it according to your need. it is basically keypress event of textbox... private void onKeyPress(object sender, KeyPressEventArgs e) { char[] myNum = new char[12] { '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '\b','.' }; bool blnNumFnd = false; //for keeping track of decimal foreach (char c in myNum) { if (e.KeyChar == myNum[11]) { String txt = ((TextBox)sender).Text; if (!txt.Contains(".")) { blnNumFnd = true; //means its decimal value and user can't enter another decimal again! break; } } else if (e.KeyChar == c) { blnNumFnd = true; break; } } if (!blnNumFnd) e.KeyChar = '\0'; } hope it will work for you!

    Regards, shazjazz

    C# csharp

  • password assgning application?
    S shaz jazz

    Thanks, it seems that this article precisely focuses my problem. i feel i can find useful stuff in it.will check and respond if further required.

    thx in advance!!

    C# csharp help question

  • password assgning application?
    S shaz jazz

    hi all! i have to make a C# desktop applicatio which can assingn pasword to folders so that when user double clicks the folder (in windows XP) then the password is asked from user. i the user provides correct password then it allows it to open otherwise it doesn't allow. any idea/suggestions how i should take a start?

    May God help u solv ur problems as well,thx in advance!!

    C# csharp help question

  • disable a listbox item...
    S shaz jazz

    ok thankyou very much, your idea wud be indeed helpfull.

    May God help u solv ur problems as well,thx in advance!!

    Visual Basic csharp

  • disable a listbox item...
    S shaz jazz

    sure here it is: Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load ListBox1.Items.Add("good") ListBox1.Items.Add("bad") End Sub then here is 2nd chunk of code: Private Sub ListBox1_MouseClick(ByVal sender As System.Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles ListBox1.MouseClick DirectCast(sender, ListBox).SelectedItem.Enable = False End Sub hope you'll get to the problem.

    Thanks..

    Visual Basic csharp

  • disable a listbox item...
    S shaz jazz

    no its not working at all.. i did just as mentioned..it gives this exception message "Public member 'Enable' on type 'String' not found." its windows application i hope you are not misinterpretting that its web application.

    May God help u solv ur problems as well,thx in advance!!

    Visual Basic csharp

  • disable a listbox item...
    S shaz jazz

    kubben wrote:

    The sender passed it should be the listbox. You should be able to cast the sender as a listbox and get the selectedindex. Use the selected index to get the listitem and set the enabled = false.

    but its not possible because there is no class in whichi save that item further there wasn't any need to use selectedindex for selecting item but i can use selecteditem for such purpose.. so the origanl question is as it is...

    May God help u solv ur problems as well,thx in advance!!

    Visual Basic csharp

  • disable a listbox item...
    S shaz jazz

    Hi i am working in VB.net using .net 2.0. i have a requirment to disable a listbox control's single item ....i searched msdn which says.. "You can disable an item in a list box or combo box by adding a single backslash to the beginning of the expression. " i tied the following code ListBox1.Items.Add("good") ListBox1.Items.Add("\bad") but it didn't worked and "bad" did not appeared disabled.. dispite this my requirement is to disable an item when mouse double click event occurs... hope someone will come with solution

    Faith is higher faculty than reason.. shaz jazz

    Visual Basic csharp

  • Dynamic Crystal report generation
    S shaz jazz

    i haven't worked on it but i have heared that columns can be dyanamically created in cross tab reports but i am not sure u may search it further thanks :)

    C# csharp help

  • how to create window like solution explorer??
    S shaz jazz

    Hi all! i want to create a window just like window of solution explorer which can be "auto hide" if user wants to hide it. what such window is called? i mean what is its name and how to make it?

    May God help u solv ur problems as well,thx in advance!! shaz Jazz

    C# question help tutorial

  • crystalr reports
    S shaz jazz

    Hi, i want to ask can i call a crystal report without reportViewer control. i mean is there any way to call a report directly in some way?? basically i'm using c# express edition which do suports SQL server 2005 but doesnt support crystal reports. so i installed crystal report 10 seperately and begin using it. now in my C# IDE if i go to add Item then crystal report icon doesn't apear. also there is not report viewer control in the the controls area. so i asked this question. if there exists no way then sugest me what should i d0?? hope u'l respond for my satisfaction. as far as my introduction is concerned i'm a student of BS doing my final project, i'm using .net since 1 year but crystal reports are new for me. regards

    thx in advance!! regards shaz jazz

    .NET (Core and Framework) csharp question database sql-server visual-studio

  • image displaying on a form in treeview..an fileload error
    S shaz jazz

    i am using a treeView control in which i want to display image against its every node. the images are placed in project directiory's \bin\release folder. now the tree is popupulated when the form is loaded i.e the statements of populating the tree are after calling InitializeComponent(); in the constructor of new form. at first time when i come 2 this form (calling it against the NEXT button of a prevous form) then no problems occur and the images are loaded without any complication but when i go back to a previous form and come back to this form through same path and using same NEXT button then fileNotFound exeception occurs at this line Image img = Image.FromFile("pic1.jpg"); but previously images were displayed successfully...! i am facing same problem when i rightclick and create a contextMenu against a node. images are displayed against each optin of contextMenu successfully at first but when i click some option of contextMenu then work n then rightclick same node then the same exeception fileNotFound occurs(while populating ContextMenu) at same sort of lines... further more if i am debugging the project then these fileNotFoundException occurs even for the first time when i populate the tree.but when i run the project no error comes for the first time and the images are loaded successfully....but only for first time..! i canot understand where the problem lies??

    May God help u solv ur problems as well,thx in advance!!

    C# help data-structures question announcement

  • how to show/hide forms ?
    S shaz jazz

    you have to put following code behind the button against which you want to... this.hide(); NewForm nw = new NewForm(); nw.ShowDialog(); nw.Activate(); nw.Close(); it is a well experienced code and u should not face any problems.hope your question is answered! regards

    ShaZ JazZ

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