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
M

Muhammad Ahmed 0

@Muhammad Ahmed 0
About
Posts
28
Topics
17
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • adding PNG icons with tranparency to listview
    M Muhammad Ahmed 0

    Hello every one, I am using the following code to add items to my listview I have PNG icons 16x 16 with transparency , unfortunately the icons as a result of this code look really bad in the listvirew. looks like it is not getting the transparency of the the image, PLease help, thanks in advacne.. Ahmed ImageList imList = new ImageList(); Image img = new System.Drawing.Bitmap(@"D:\Resources\PNG\User.png"); imList.Images.Add(img); listViewUsers.SmallImageList = imList; foreach (MItem mItem in items) { this.listViewUsers.Items.Add("hello world", "hello world", 0); }

    Ahmed

    C# graphics help

  • Timeout while reading data from database
    M Muhammad Ahmed 0

    I am getting following exception in the code below Exception occurs when closing connection, Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding. The SqlCommandTimeout is already set 0 as you can see in the code below, When i search records for first time it works fine, but the exceptions start coming second time or third time onwards,.. Protected Overrides Sub DataPortal_Fetch(ByVal criteria As Object) ' Load object data from database. Dim crit As criteria = DirectCast(criteria, criteria) Dim con As New SqlConnection(DB()) // db string is something like //"data source=hurst\SQL2000_SP4;initial catalog=MYDB_OOP_11;Connection Timeout=60;user=asd_user;password=asd_user;" Dim cmd As New SqlCommand con.Open() Try With cmd .Connection = con .CommandType = CommandType.StoredProcedure .CommandTimeout = 0 ' Set up and call appropriate stored procedure. If crit.IsSimpleList Then .CommandText = DBObject & "_info_simple_get" With .Parameters // some code for adding params for SP End With Else .CommandText = DBObject & "_info_get" With .Parameters // adding param for Stored Procedure here End With End If Dim dr As New SafeDataReader(.ExecuteReader) Try Me.Fetch(dr, crit.IsSimpleList) // The fectch function loops for each read of datareader and creates a new object, passing it dr object, each object then reads its column from dr Finally dr.Close() End Try End With Finally con.Close() // I get exception here..on closing.. End Try End Sub Is it something because of improper use of DataReader ? or what is it, I really couldnt figure out, I have Tried using GC.collect() etc , but no use, please help Ahmed

    Ahmed

    Database database question sharepoint sysadmin help

  • Showing a record Set on WIndows C# form
    M Muhammad Ahmed 0

    Hi Guys, I have a set of rows/records retrieved from a database as a result of a SELECT query . I need to show the returned records on a windows form. whats the easiest and fastest way to do it. I am using C# and windows's form as an application. Thanks,.

    Ahmed

    C# database csharp

  • C# data grid related question
    M Muhammad Ahmed 0

    Thanks for the reply, i just forgot to tell that i am woking on Winforms not ASP.Net.. how would be do it in Winforms.. ??? Thanks...

    Ahmed

    C# tutorial csharp css database question

  • C# data grid related question
    M Muhammad Ahmed 0

    My question remains still there.. how ?

    Ahmed

    C# tutorial csharp css database question

  • C# data grid related question
    M Muhammad Ahmed 0

    how to make certain columns editable and certain ones not editable in the dataGrid control,... for example if the input dataset for the grid was filled using query "select a1,a2 from table1 " i wanna show both columns a1,a2 in grid but only wanna let a2 to be changed from datagrid... Thank you

    Ahmed

    C# tutorial csharp css database question

  • ActiveX control or a .Net windows control
    M Muhammad Ahmed 0

    Hi i need to write a control that has to be plugged into unmanaged as well as managed UI applications,... Control Description: the control is going to be like supporting browsing and searching objects etc,..control have to have mostly UI stff in it(will have some buttons/edit boxes trees and list boxes inside it)....that will have to adjust its controls according to its container,..should support drag and drop from control to the application plugged into that can be managed or unmanaged application... so should i make an ActiveX control or .Net Windows Control, ? would like to have your comments on it,..backed up with pros and cons...etc.. Thanks all Muhammad Ahmed Ahmed

    C / C++ / MFC csharp com design docker algorithms

  • Having Problem in a Remoting call
    M Muhammad Ahmed 0

    ok,..i have fixed it by changing the server config file tag from to now its working fine,.. now i have another problem,.i cant debug the server side dll hosted in IIS,.although i am attaching it to w3wp.exe but to no use,.. ihave also used Debug.Assert(false) but futile,..i check the w3wp.exe using a tool the monitors path where a dll is loaded from ,..it loaded my server dll from a very starnge path,... my dll is also not registered in GAC,..but yet it loads from that strange path,(i guess cache).i deleted my dll from that path but it copies it again,.. any help on as to how to debug,.??? as an alternative i am debugging by making a service that loads my dll,.. but how to debug using IIS???? thanks Ahmed

    C# help wcf sysadmin windows-admin xml

  • Having Problem in a Remoting call
    M Muhammad Ahmed 0

    Hi: i have hosted my server dll in IIS its code is like Server view: //server dll name is mydll.dll namespace NameSpaceabc { Class ServiceProvider:MarshalByRefObject, IServices { void DoIt(string strWorkOnit) { //..do some work } } } //shared assembly has interface def public interface IServices { bool DoIt(string strName); } the web.config file is as folllows ////////////////////////////////////// ////////////////////////////////////// Client view: HttpChannel channel = new HttpChannel(); ChannelServices.RegisterChannel(channel); IServices iservice = (IServices )Activator.GetObject( typeof(IServices ),"http://10.0.0.108/mydll/services.soap"); string abc="eiwero"; //as soonas i call my first method it gives an exception ..service not found //whats the issue iservice .DoIt(abc); dlls are copied in the www/mydll/bin folder web.config is in www/mydll folder Please help Regards Muhammad Ahmed Ahmed

    C# help wcf sysadmin windows-admin xml

  • Talking to CListCtrl that resides in a different process window
    M Muhammad Ahmed 0

    Suppose that there is a window of another process and that window has a CListCtrl on it , i only have the CWnd pointer of the main window that hosts the CListCtrl, i need to add/remove entries in that CListCtrl, ... My approach is that First i need to first get access to the CListCtrl window by getting its handle using BOOL EnumChildWindows( HWND hWndParent, WNDENUMPROC lpEnumFunc, LPARAM lParam ); and once i get this handle i would either try to get CWnd* from it or try sending LVM_XXX messages using CListCtrl handle... I am unsure about if all this would work ... any of you guys , if have any views please share Ahmed

    C / C++ / MFC

  • DCOM replacement in .NET
    M Muhammad Ahmed 0

    can u refer any samples of this on codeproject technique...? Ahmed

    C# question csharp sysadmin

  • DCOM replacement in .NET
    M Muhammad Ahmed 0

    Hello What is the replacement of DCOM in .Net ,how can we still write modules that communicate over a network and providing net transparency to develoers....as we used to do in DCOM is webservices the answer? or is there any better mechanism.. Thanks Muhammad Ahmed Ahmed

    C# question csharp sysadmin

  • Navigation in visual studio using bookmarks
    M Muhammad Ahmed 0

    Hello: Navigation in visual studio seems a big prob when u are working on a big solution, the bookmarks provided in VS only help us navigate within the same file , what if we have to go from one file to another of different projects , can any one recommend me some solution Thanks Muhammad Ahmed Ahmed Ahmed

    IT & Infrastructure visual-studio csharp help

  • Navigation in visual studio using bookmarks
    M Muhammad Ahmed 0

    Hello: Navigation in visual studio seems a big prob when u are working on a big solution, the bookmarks provided in VS only help us navigate within the same file , what if we have to go from one file to another of different projects , can any one recommend me some solution Thanks Muhammad Ahmed Ahmed

    C / C++ / MFC visual-studio csharp help

  • Creating ToolBar in a dialog
    M Muhammad Ahmed 0

    u've used CListCtrl m_toolbar; i am using CToolBar m_ToolBar; ahmed

    C / C++ / MFC question

  • Creating ToolBar in a dialog
    M Muhammad Ahmed 0

    i've used m_ToolBar.CreateEx(this,TBSTYLE_FLAT,WS_CHILD | WS_VISIBLE | CBRS_ALIGN_TOP, CRect(10,10,100,100), AFX_IDW_TOOLBAR); m_ToolBar.LoadToolBar(IDR_TOOLBAR1); m_ToolBar.ShowWindow(TRUE); but toolbar is invisible

    C / C++ / MFC question

  • Creating ToolBar in a dialog
    M Muhammad Ahmed 0

    Hello Guys: i want to craete a tool bar in my dialog Box i am using following code in the OnInitDialog() .......... m_ToolBar.Create(this); m_ToolBar.LoadToolBar(IDR_TOOLBAR1); m_ToolBar.ShowWindow(TRUE); but i can't see any toolbar, any solutions?.. Thanks Muhammad Ahmed ahmed

    C / C++ / MFC question

  • EN_SELCHANGE Notification handling
    M Muhammad Ahmed 0

    thanks alot for solving the problem i had to change yr code a little like this m_Editor.SetEventMask(m_Editor.GetEventMask()|ENM_SELCHANGE); ahmed

    C / C++ / MFC

  • EN_SELCHANGE Notification handling
    M Muhammad Ahmed 0

    hello: i am using following code in message map ON_NOTIFY(EN_SELCHANGE, IDC_RICHEDIT22, MyMethod) i want to capure the event as soon as the user selects the text or changes the selection in the CRichEditCtrl, but the message handler MyMethod is not called at all.. any suggestions for eliminating the possible cause... Regards Muhammad Ahmed ahmed

    C / C++ / MFC

  • I need HGLOBAL for the data contained in CRichEditCtrl
    M Muhammad Ahmed 0

    the callback function is called, passing the data in segments, so should i allocate memory on the heap for each call and the integrate the whole data in a newly allocated memory or is there a way to keep appending data to the buffer allocated only once....(or is there a way to find in advance how much buffer we should have?) thanks ahmed

    C / C++ / MFC help 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