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
A

Ahmad Mahmoud candseeme

@Ahmad Mahmoud candseeme
About
Posts
41
Topics
10
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Onlyconnect HtmlEditor
    A Ahmad Mahmoud candseeme

    Hello there's a wonderfull article showing you how A Simple Drag And Drop How To Example http://www.codeproject.com/KB/cs/dandtutorial.aspx

    -------------------------- I really like to be YOU instead of I. ------------------------ Ahmad Mahmoud

    C#

  • WOW, Long ago, very
    A Ahmad Mahmoud candseeme

    that's why I'm in to development. Thanks Sean

    -------------------------- If you found my answer to your question useful; then vote for me. ------------------------ Ahmad Shaban

    Article Writing com question

  • WOW, Long ago, very
    A Ahmad Mahmoud candseeme

    Hello Everybody back in 3 Jan 2006 I wrote an article called "Startup Edit" "http://www.codeproject.com/KB/cs/startedit.aspx" then I updated it in 22 Feb 2006, the article viewed 37,128 times since then, bookmarked 33 times, and 43 voted for it, with a Popularity of 5.38 and Rating 3.29 out of 5 But unfortunately up till now it is in the Unedited contribution section What shall I do to make it reviewed by your excellent staff Thanks in advance

    -------------------------- If you found my answer to your question useful; then vote for me. ------------------------ Ahmad Shaban

    Article Writing com question

  • How to burn 1GB file to a cd's
    A Ahmad Mahmoud candseeme

    if it is only one giga there might be a solution to this !!!!!!! هل وصلتك رسالتى -------------------------- If you found my answer to your question useful; then vote for me. ------------------------ Ahmad Shaban

    Article Writing help tutorial question workspace

  • Howcome !!!!!!??
    A Ahmad Mahmoud candseeme

    Membership status calculated as follows: 1-4 articles posted = Bronze. 5-14 articles = Silver. 15-24 articles = Gold. 25+ articles = Platinum. Each 500 messages posted adds one level, and if a user has posted a message then each year of membership adds 1 level. Bonus levels not valid for Gold members. Bronze is awarded at the beginning of the first 500 messages posted instead of the end. well i do post up to 44 but i;m still Silver howcome !? -------------------------- If you found my answer to your question useful; then vote for me. ------------------------ Ahmad Shaban

    Site Bugs / Suggestions question

  • int [,,] myArray = new int [,,] {{1,2,3}};
    A Ahmad Mahmoud candseeme

    Hi Thank you very much But we should put it that way MyCommand.Parameters.Add(new SqlParameter("@ParaName", SqlDbType.NVarChar).Value = MyText.Text ); Thank You again -------------------------- If you found my answer to your question useful; then vote for me. ------------------------ Ahmad Shaban

    C# data-structures help question

  • int [,,] myArray = new int [,,] {{1,2,3}};
    A Ahmad Mahmoud candseeme

    Hi Stefan Troschütz Thank you i found the error object [,,] myArray; myArray = new object [,,] { { {"@EngCode"},{SqlDbType.Int},{TxtCode.Text} } }; --------------------------------- I Have a stroed procedure that take 13 parameter CREATE PROCEDURE dbo.CreateUser ( @EngCode int, @EngFName nvarchar(20), @EngMName nvarchar(20), @EngGName nvarchar(20), @EngLName nvarchar(20), @EngNotes nvarchar(500) , @EngineeerTypeID int, @UserName nvarchar(10), @EngMail nvarchar(50), @EngCellNo int, @EngHNo int, @UserPassword nvarchar(12), @UserNotes nvarchar(500) ) I call this proc from my C# sO SqlParameter POne = new SqlParameter(); POne.ParameterName = "@ParaName"; POne.Value = MyText.Text; POne.SqlDbType = SqlDbType.NVarChar; MyCommand.Parameters.Add ( Pone ); i will repeat this operation 13 time But if i had a Multidimensional array myArray = new object [,,] { { {"@EngCode"},{SqlDbType.Int},{TxtCode.Text} } }; and have a foreach to loop; it would be then a better idea -------------------------- If you found my answer to your question useful; then vote for me. ------------------------ Ahmad Shaban

    C# data-structures help question

  • int [,,] myArray = new int [,,] {{1,2,3}};
    A Ahmad Mahmoud candseeme

    Hi i been awak for two nights i can't see anything infront of me BUT i must complete this int [,,] myArray = new int [,,] {{1,2,3}}; it gives me the error Incorrectly structured array initializer WHY -------------------------- If you found my answer to your question useful; then vote for me. ------------------------ Ahmad Shaban

    C# data-structures help question

  • Help needed !!!!
    A Ahmad Mahmoud candseeme

    Hi I want to know how to open an executable for reading like those hexeditors out there and how then i can jumb to specific offset and change it any help please !! Ahmad Shaban

    C# help tutorial

  • Insert Byte/int to TextBox
    A Ahmad Mahmoud candseeme

    Hi maybe you should check your loop Ahmad Shaban

    C# question

  • ListView Question
    A Ahmad Mahmoud candseeme

    Hi single click your listview then hit F4 in your keyboard select "Events" scroll down to ItemCheck Event and double click it then type MessageBox.Show ( "The Index of the checked item is " + e.Index.ToString() + "\n Its state was" + e.CurrentValue.ToString() + "\n and now its state is " + e.NewValue.ToString()); put some could so you can get help with the array Ahmad Shaban

    C# question database help

  • Insert Byte/int to TextBox
    A Ahmad Mahmoud candseeme

    Hi Try this byte Number; Number.ToString(); Number++; Ahmad Shaban

    C# question

  • ListView Question
    A Ahmad Mahmoud candseeme

    Hi What then do you want !! Ahmad Shaban

    C# question database help

  • Protect Media Files
    A Ahmad Mahmoud candseeme

    Hi Kostas From my point of view i think this idea isn't practical at all BUT you can Compress them in a password protected pckage ( like zip, rar, and preferably 7z ) and silently decompress it in the background and then play it Ahmad Shaban

    C# help csharp tools learning

  • Reorganize directories project
    A Ahmad Mahmoud candseeme

    Hi Actually i'm not sure !! Ahmad Shaban

    C# csharp question c++ visual-studio

  • Which editor is the best
    A Ahmad Mahmoud candseeme

    Go Borland it is the one and only finest IDE in the Globe !!!! Ahmad Shaban

    C# csharp delphi visual-studio

  • Reorganize directories project
    A Ahmad Mahmoud candseeme

    Hi All what i can tell you ( in case if i understand you ) in the "Solution Explorer" Right click the project you are working on and highlight "Add" --> "New Folder" and Give your folder a name say "Sourc Code" and drag and drop your files into this new folder. Now you have a folder contain all of your source code then right click your project once again click "Properties" and from the "Configuration" comboBox select first "Debug" and in the treeview select "Configuration Properties" -->"Build" under "Ouputs" in the listview Change the ouput path to say "binaries\Debug" repeat it with the "Release" change it to "binaries\Release" Now you do have 1) Source Code Folder 2) binaries Folder as for the obj folder leave it as it is Ahmad Shaban

    C# csharp question c++ visual-studio

  • Namespace issues
    A Ahmad Mahmoud candseeme

    Hi sorry i was in a rush i found this Note System.Threading.Timer is a simple, lightweight timer that uses callback methods and is served by threadpool threads. You might also consider System.Windows.Forms.Timer for use with Windows forms, and System.Timers.Timer for server-based timer functionality. These timers use events and have additional features. for more info http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemthreadingtimerclasstopic.asp[^] Ahmad Shaban

    C# help csharp question

  • Namespace issues
    A Ahmad Mahmoud candseeme

    Hi I found the following Timer Class is a part of the System.Threading namespace hence the code should be

    using System;
    using System.Threading;
    
    namespace MyNamespace
    {  
    	
    	public class Class1   
    	{     
    		private Timer MyTimer;
    	}
    }
    

    navigate to http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemthreadingtimerclasstopic.asp[^] Thanks Ahmad Shaban -- modified at 2:30 Wednesday 22nd March, 2006

    C# help csharp question

  • API Help
    A Ahmad Mahmoud candseeme

    I put it that way

    using System;
    using System.Runtime.InteropServices;

    namespace ChangeText
    {
    public class MainCls
    {
    public MainCls() { }

    	\[DllImport("user32", EntryPoint = "FindWindowA")\]
    	private static extern IntPtr FindWindow(string lpClassName, string lpWindowName);
    
    	\[DllImport("user32", EntryPoint = "FindWindowExA")\]
    	private static extern IntPtr FindWindowEx(IntPtr hWnd1, IntPtr hWnd2, string lpsz1, string lpsz2);
    
    	\[DllImport("user32")\]
    	private static extern IntPtr ShowWindow(IntPtr hwnd, int nCmdShow);
    
    	\[DllImport("user32", EntryPoint = "SetWindowTextA")\]
    	private static extern bool SetWindowText(IntPtr hWnd, string lpString);
    
    	\[DllImport("user32")\]
    	private static extern int EnableWindow(IntPtr hWnd, bool bEnable);
    
    	\[DllImport("user32", EntryPoint = "GetWindowTextA")\]
    	private static extern int GetWindowText(IntPtr hWnd, string lpString, int nMaxCount);
    
    	\[DllImport("user32", EntryPoint = "SendMessageA")\]
    	private static extern int SendMessage(IntPtr hWnd, int wMsg, int wParam, int lParam);
    
    	private const int WM\_LBUTTONDOWN = 513;
    	private const int WM\_LBUTTONUP = 514;
    	private const int SW\_HIDE = 0;
    	private const int SW\_SHOW = 5;
    	private const int SW\_MINIMIZE = 6;
    	private const int SW\_MAXIMIZE = 3;
    	private const int SW\_SHOWMAXIMIZED = 3;
    	private const int SW\_RESTORE = 9;
    
    
    	public void Changetext ( string TextToSet )
    	{
    		IntPtr Taskbar = FindWindow("Shell\_TrayWnd", null);
    
    		IntPtr StartButton = FindWindowEx(Taskbar, IntPtr.Zero, "Button", null);
    
    		SetWindowText(StartButton, TextToSet );
    
    		EnableWindow(StartButton, false);
    
    		EnableWindow(StartButton, true);
    	}
    
    }
    

    }

    But the moment a refresh to the taskbar occur it return to its normal text "Start" how to make it permanent Ahmad Shaban

    C# linux json help tutorial 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