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
A

A Asif

@A Asif
About
Posts
42
Topics
29
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Plug-in for Outlook using C#
    A A Asif

    Hi, I am trying to create plug-in for outlook. This plug-in will gets contacts info from web service. I want to add a button in outlook tool bar which should sync all contact into outlook when user clicks on it. I am using C# and .NetFrameWork 2.0. Please help it is very urgent. Thanks in advanced.

    A.Asif

    Windows Forms csharp help

  • Plug-in for Outlook using C#
    A A Asif

    Hi, I am trying to create plug-in for outlook. This plug-in will gets contacts info from web service. I want to add a button in outlook tool bar which should sync all contact into outlook when user clicks on it. I am using C# and .NetFrameWork 2.0. Please help it is very urgent. Thanks in advanced.

    A.Asif

    C# csharp help

  • Error: 'Table' does not contain a definition for 'BorderStyle'
    A A Asif

    Hi, Thanks for your help. However, I am using System.Web.UI.WebControls.Table class that has a BorderStyle property, so obviously I should NOT get this error, but for some reason I am geting this error. Also this not a WPF project. Any idea what could be wrong, I am using VS 2005. Please help if you can. Thanks

    A.Asif

    C# help architecture

  • Error: 'Table' does not contain a definition for 'BorderStyle'
    A A Asif

    Hi All, I am trying to create a table but getting following complie time error: Error: 'Table' does not contain a definition for 'BorderStyle' can anyone help please. Here are my code for review: Table tbl = new Table(); tbl.BorderStyle = BorderStyle.Solid; //Error at this line tbl.BorderColor = Color.Black; tbl.CellSpacing = 0; Thanks, A.Asif

    A.Asif

    C# help architecture

  • Please help with these questions
    A A Asif

    Hello- Please help me with the following questions, if possible, please also provide some explanations--thanks in advance: 1) Assuming that "valid connection string" is a valid connection string, what will be the output of the following code? If the code cannot compile, please state why. the same rules apply to this question as for the one above using(SqlConnection sqlConn = new SqlConnection("valid Connection string")) { System.Diagnostics.Debug.WriteLine("Opening a connection"); sqlConn.Open(); System.Diagnostics.Debug.WriteLine("Connection Opened"); sqlConn.Close(); System.Diagnostics.Debug.WriteLine("Connection Closed"); } if(sqlConn == null) System.Diagnostics.Debug.WriteLine("Connection State is NULL"); else System.Diagnostics.Debug.WriteLine("Connection State:" + sqlConn.ConnectionState); 2)The following code needs to generate a string of 1000 alternating '+' and '-' characters Rewrite this code to make it more efficient (Note: You can use different data types than the ones present) string htmlOutput = string.Empty; for(int itemIndex = 0; itemIndex < 1000; itemIndex++) { if( itemIndex % 2 == 0) htmlOutput += "+"; else htmlOutput += "-"; } 3)Assuming that CustomException is defined, what will be the output of the following code? try { throw new CustomException("Something went wrong"); } catch(Exception ex) { System.Diagnostics.Debug.WriteLine("Generic Exception has been triggered"); } catch(CustomException ex) { System.Diagnostics.Debug.WriteLine("Custom Exception has been triggered"); } 4) What will be the difference in behavior between the lines marked 'a' and 'b' during runtime? (Assume that CustomClass is a defined class) object objClass = new object(); CustomClass myClass1 = objClass as CustomClass; //a CustomClass myClass2 = (CustomClass)objClass; //b 5) Assuming you have the following class: public class MyClass { public MyClass() { } public string DoNothing(string someParameter) { System.Diagnostics.Debug.WriteLine(someParameter); } } How would you call the DoNothing function asynchronously and provide a callback? 6) What is the difference between a Monitor and a Semaphore? 7) Architectural Question: If you have pages that perform heavy DB or File I/O, what could be

    ASP.NET question database debugging help

  • Please help with these questions
    A A Asif

    Hello- Please help me with the following questions, if possible, please also provide some explanations--thanks in advance: 1) Assuming that "valid connection string" is a valid connection string, what will be the output of the following code? If the code cannot compile, please state why. the same rules apply to this question as for the one above using(SqlConnection sqlConn = new SqlConnection("valid Connection string")) { System.Diagnostics.Debug.WriteLine("Opening a connection"); sqlConn.Open(); System.Diagnostics.Debug.WriteLine("Connection Opened"); sqlConn.Close(); System.Diagnostics.Debug.WriteLine("Connection Closed"); } if(sqlConn == null) System.Diagnostics.Debug.WriteLine("Connection State is NULL"); else System.Diagnostics.Debug.WriteLine("Connection State:" + sqlConn.ConnectionState); 2)The following code needs to generate a string of 1000 alternating '+' and '-' characters Rewrite this code to make it more efficient (Note: You can use different data types than the ones present) string htmlOutput = string.Empty; for(int itemIndex = 0; itemIndex < 1000; itemIndex++) { if( itemIndex % 2 == 0) htmlOutput += "+"; else htmlOutput += "-"; } 3)Assuming that CustomException is defined, what will be the output of the following code? try { throw new CustomException("Something went wrong"); } catch(Exception ex) { System.Diagnostics.Debug.WriteLine("Generic Exception has been triggered"); } catch(CustomException ex) { System.Diagnostics.Debug.WriteLine("Custom Exception has been triggered"); } 4) What will be the difference in behavior between the lines marked 'a' and 'b' during runtime? (Assume that CustomClass is a defined class) object objClass = new object(); CustomClass myClass1 = objClass as CustomClass; //a CustomClass myClass2 = (CustomClass)objClass; //b 5) Assuming you have the following class: public class MyClass { public MyClass() { } public string DoNothing(string someParameter) { System.Diagnostics.Debug.WriteLine(someParameter); } } How would you call the DoNothing function asynchronously and provide a callback? 6) What is the difference between a Monitor and a Semaphore? 7) Architectural Question: If you have pages that perform heavy DB or File I/O, what could be

    C# question database debugging help

  • Event Handling in C# 2.0
    A A Asif

    Hi All, I am working on a project that requires handling of custom events. Some class will raise the DataEvent of RaiseEventClass. I have to implement event handler for the DataEvent in the RaiseEventClass. Please help me how to implement event handler. Please show some codes if possible. Below is the skeleton of the class. Thanks in advance! public class RaiseEventClass { public delegate void RaiseEventDelegate(ArrayList files); public event RaiseEventDelegate DataEvent; public void SearchFiles(ArrayList list) { DataEvent(list); //raising event for testing } }

    A.Asif

    C# csharp testing beta-testing help tutorial

  • Web Browser Control
    A A Asif

    Hi, I am trying to get status text of the browser using following code but for some reason I am not getting any values back. Any idea why? // both lines doesn't work string result = webBrowser1.Status.Text; string result = webBrowser1.Document.Window.StatusBarText; Thanks

    A.Asif

    C# question

  • Window.status Bar
    A A Asif

    Hi, LPBrowser is just the name I gave to browser control. Currently I am using following code but for some reason these codes not working, string result; string someVar; some Var = LPBrowser.StatusBarText //This line doesn't work result = LPBrowser.StatusText; ///This line doesn't work

    A.Asif

    C# csharp help

  • Window.status Bar
    A A Asif

    yes web browser window. I am using the following code but doesn't work. string result = LPBrowser.Document.Window.StatusBarText; Thanks.

    A.Asif

    C# csharp help

  • Window.status Bar
    A A Asif

    Hi All, I am working on the project using c# 2.0. I need to get the contents of window.status bar and save into string variable. Please help if you can. Thanks in advance.

    A.Asif

    C# csharp help

  • Browser Control In C#
    A A Asif

    Hi All, I am working on the project using c# 2.0. I am using the browser control in this project. I need to get the contents of status bar of the browser and save into string variable. Please help if you can. Thanks in advance.

    A.Asif

    C# csharp help

  • Resizing the controls
    A A Asif

    Hi All, I am using C# 2.0. I have a form with few controls such as Panel, TextBox, ListBox, GridView and etc. I am trying to resize all the controls in runtime when user resize the form by dragging form borders and I am doing this by setting Anchor property of all the controls to all sides (right,left,top,bottom) and the Dock property = None. Everything works fine ,but if I set form property AutoScroll = true then controls doesn’t resize. Any idea why? Please help. Thanks in advance!

    A.Asif

    C# csharp help question

  • Attach/Detach Component
    A A Asif

    Hi All, I am using C# 2.0 and I need to add following functionality to my application: User should be able to attach/detach component and move them around just like in visual studio. Please help if you can. Thanks in Advance.

    A.Asif

    C# csharp visual-studio help

  • Resize Form
    A A Asif

    Hi All, I am working on a project using C# 2.0. I need the functionality in my project that at the runtime, when I resize the form by dragging its border using the mouse , all the controls within the form should resize as well. Please help. Thank you.

    A.Asif

    C# csharp help

  • How to Show Form
    A A Asif

    Hi All, I have two forms in my app. I need to have functionality that when i click on nextButton on formA, formB should show and fromA should either hide it self or unload. Please help. thanks, Asif.

    A.Asif

    C# help tutorial

  • How to delete row from DataGridview
    A A Asif

    Hi all, I am working on C# project using C# 2.0. I have a DataGrid that contains 10 rows and at runtime I insert one more row at DataGridView.Insert(0,1); in my next step, I want to delete the row from DataGridView at DataGridView.RemoveAt(9) // Index 9 is the last row in the grid. But, I am not able to delete the row. I am getting following exception: System.InvalidOperationException:Uncommitted new row cannot be deleted. at System.Windows.Forms.DataGridViewRowCollection.RemoveAt(Int32 index) Please help if you know the solution. Thanks in advance for your help. A.Asif

    A.Asif

    C# csharp css database help tutorial

  • DataGridView - how to delete Row
    A A Asif

    Hi all, I am working on C# project using C# 2.0. I have a DataGrid that contains 10 rows and at runtime I insert one more row at DataGridView.Insert(0,1); in my next step, I want to delete the row from DataGridView at DataGridView.RemoveAt(9) // Index 9 is the last row in the grid. But, I am not able to delete the row. I am getting following exception: System.InvalidOperationException:Uncommitted new row cannot be deleted. at System.Windows.Forms.DataGridViewRowCollection.RemoveAt(Int32 index) Please help if you know the solution. Thanks in advance for your help.

    A.Asif

    C# csharp css database help tutorial

  • How to count pixels
    A A Asif

    Hi All, I am adding a string value to listbox control. I need to set the width of listbox in runtime base on how many pixels string need it to display it within listbox. Idea is to set a width of listbox exactly the number of pixels required by string value. So, I can have perfact width each time base on string value. Any idea please help. Thanks, Asif.

    A.Asif

    C# help tutorial

  • How to Open Url
    A A Asif

    Hi All, I have collection of Url's in my list box ,and these url's contain path to some .js files. What I want is that when user double click on of these url, file should open in notepad. Currently am opening a file in firefox. I don't want to download the file I jsut want to open a file. So am not using web.Client.DownLoad() Any Idea please help. thanks,

    A.Asif

    C# javascript help 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