Software Development Network Logo
  • .NET Development
  • Game Technologies
  • Visual C#
  • VS Team System
  • Windows Vista
  • Visual FoxPro
  • Windows Live
  • Architecture
  • Visual Studio
  • SQL Server
  • VS Express Editions
  • Microsoft ISV
  • Visual J#
  • Windows Forms
  • Visual Basic

Software Development Network >> Sohail Iqbal's Q&A profile

Sohail Iqbal

Member List

RickShaw888
psylencio
linga
DanTheStan
LorenzP
lordali
Gravy
AndersT
PERECil
barloworld
jalperin
Willis777
Abhijitkane
Annant
MikeAMD64
B.Young
Jose M. Marcenaro MVP
Andrew lazo
Vista
Jedimark
Only Title

Sohail Iqbal's Q&A profile

  • .NET Development XML deserialization problems with invalid hex characters

    Hello, In the document at [1], I am experiencing the problem described under the heading "Deserializing Invalid XML". I am receiving XML documents that contain escaped characters that are technically invalid in the XML spec. I am using WSE 2.0 Service Pack 3, so I have no control over deserialization myself (or at least not without writing a input filter of some kind). I do have control over which strings are serialized (I also write the client). Does anyone know of a solution to this problem Thanks. Mark, Thanks for your answer. Number 1 would indeed be the solution to go with. However, it's *my* WSE 2.0 cl ...Show All

  • Visual C# Problem with winspool OpenPrinter DllImport in 2005

    Hi, i have a component which scans the spooler of a printer. in Framework 1.1 it works fine but in 2.0 i got the following exception when i open the printer: PInvokeStackImbalance was detected Message: A call to PInvoke function 'Dornbracht.Odis.Server.PdfPrinter!Dornbracht.Odis.Server.PdfPrinter.Spooler.PrinterSpooler::OpenPrinter' has unbalanced the stack. This is likely because the managed PInvoke signature does not match the unmanaged target signature. Check that the calling convention and parameters of the PInvoke signature match the target unmanaged signature. My import looks like that: [ DllImport ( "winspool.drv" , Cha ...Show All

  • Windows Forms How to display text in picturebox?

    Hello! My picturebox's name is 'picDisplay'. My textbox's name is 'txtText'. And my button's name is 'btEnter'. Does anyone know how can I make my picturebox display the text in my TextBox after clicking the button use the PaintEventArg graphic object to draw the string <code> e.Graphics.DrawString("Some string", myFont, myBrush, x, y, drawFormat); myBrush.Dispose(); </code> ...Show All

  • .NET Development Create web response from HTML file ?

    I try to create a firewall that have packet redirect for unwanted web request. The problem that I have next is how to make our HTML file as the web response for the client request. The scene like this : 1. Client request for something on web. [DONE] 2. My firewall scan for the web request from client, check if the request is not allowed [DONE] 3. Create an HTML file that will show when the request from client is not allowed. [DONE] 4. Transfer the HTML file as the web request. [NOT DONE] 5. If the request is blocked then the client web browser will display our HTML. [NOT DONE] Anyone know to resolve this. I have analize the packet for web re ...Show All

  • Visual C++ Buttons

    Help I am very new at This and would like a little help if i could learn how to get the dang buttons to do what i like and be able to one open a new window that will have several programs on it i would be good so if you have a little time please email me at jnjanderton@ubtanet.com hi, 1. First use the visual designer to make your form adding buttons as needed. 2. Then click on your objects(e.g buttons,) and in the property window change the difault names and text properties-the text is what is displayed (as in butons )and the  name is the UNIQUE name you give the object ie to refer to it in your Code. 3. double-click the butt ...Show All

  • .NET Development How to get the left digit value?

    Hi Is there any function is available in Managed C++ to get the left side value of Integer value for example, that function should return the interger value like this... leftvalue(19,1) = 1 leftvalue(25,1) = 2 Assume leftvalue() is proposed function. Thanks in advance Jose  Hi, If my memory serves me right, then InStr() - gets the location of a specified character(s), Mid() gets a substring. If thats the case then: String^ test = "Microsoft"; // INSTR() int idx = test.IndexOf('o'); //Mid String^ str = test.substring(1, 5);   cheers, Paul June A. Domag ...Show All

  • Visual Basic VB 2005 Express Edition Templates

    Hi, I've just download the visual basic and C# 2005 express edition, but when I try to start a new project, nothing appear in the templates. This way I can't do nothing! I'm new at this, can please someone give me a help It will be very appreciated. Thanks, Joao ...Show All

  • SQL Server ~* Data Loading in Reports *~

    Hi, I have a report with atleast 1000 pages. my question is, when the user requests for the report, will all the 1000 pages load at one time or will they be loaded when user clicks the "next page" link... are there any ways to improve the performance... Thanks in advance .. Cheers Chakri. Hi, I also have the same problem. The number of pages that appear in Report Viewer control in my web application are different from what I get when I export or print the report. Also, I have written some code to print the report programatically, where, I first get the number of pages and then take them in a byte stream an ...Show All

  • Visual Studio Team System How can I restrict permissions to change state to Closed?

    How can I restrict permissions on work items so that only certain people have the right to close them   Better yet, how can I further filter this restriction to limit this right based upon the type of work item Here are two examples: I would like to add a restriction that only members of the QA group can change the state of a bug -type work item to closed. I would like to add a restriction that only members of the Product Management group can change the state of a quality of service -type work item to closed.   You can do that by editing work item type definition for the type and ...Show All

  • SQL Server Handling null in a result

    ------------------------------------------------------------------------------- --if the following is null, then do not print substring (m.gldebitacct, 1, 6)+ '.' + w.wo2 + '.' + w.wolo5 + '.' + substring (m.gldebitacct, 8, 7) + '.' + w.wonum as PROJ, ------------------------------------------------------------------------------- How do I ignore the row that contains a null and move on to the next record hanks, dave AND this to the WHERE clause: ... AND substring (m.gldebitacct, 1, 6)+ '.' + w.wo2 + '.' + w.wolo5 + '.' + substring (m.gldebitacct, 8, 7) + '.' + w.wonum IS NOT NULL I'd also remove the SUBSTRING function. alternatively yo ...Show All

  • Windows Forms Calculate Width of a String in Pixels

    hallo, Given a Font and a string, is there any ready-to-use function in .NET which can compute the resulting width of the string in pixels So that I can adapt say a Label, MenuItem or Textbox to the new size of a string. thx, Steve I guess we can agree to disagree on this one.  =) I didn't have a lot of time to plink with&n ...Show All

  • .NET Development evaluate 2nd part of if statment only if 1st part is true

    is it possible to write a if statement where the 2nd part of the clause is evaluated only is the first part is true   For example, I tend to write code like this... ~~~~~~~~~~~~~~~~~~     Private Function UnZipData(ByVal baData As Byte()) As String         Dim strReturn As String = ""         If baData IsNot Nothing Then             If baData.Length > 0 Then                ...        &nb ...Show All

  • Visual Studio Express Editions Datasource config wizard

    When I try to add a new datasource in the IDE using the wizard, I'm prompted to add a new connection. The default datasource is "Microsoft Sql Server Database File". If I click change datasource, there is no option for "Microsoft Sql Server". Since this option is present in VWD Express but not in VBEx, I'm wondering if this is by design or if there is something I can change to make this accessable from the ide. I can create the connection and datasets in code but then I waste a lot of time rewriting code that the IDE could create for me. Many thanks in advance, Kevin Vogler Hi Kevi ...Show All

  • Visual Studio CreateToolWindow2

    Does anyone have any code examples (C#) on how to use CreateToolWindow2 method Sorry to bring this up again... I want to create a toolwindow and place a usercontrol in it. So far, the CreateToolWindow2 method would work, if I want visual Studio to create the usercontrol (I think it uses reflection). But in my case, I already have the usercontrol instance and I just want to pass e.g. the reference to the toolwindow method. How does that work ! And another question: The GuidPosition parameter in the CreateToolWindow2 , what's that for ! Is that for Visual Studio to remember the position of the toolwindow ! An ...Show All

  • SQL Server builtin\admin

    Our servers are in mixed mode. I have about 10 Window NT accounts. if i log in domain\myacocunt into windows NT then i bring up SQL Query and do connect with Windows NT i can do what ever i like inside of sql i can delete add etc just like being the sa. We have the builtin\admin enabled. The question is i thought i had to have domain\myaccount in sql server logins regardless so that it goes windows nt authentication then sql authentication but it looks like i don't. In order to take control....i need to have domain\myaccount only access DatabaseA So to get this working.........do i just remove builtin\admin from security, s ...Show All

©2008 Software Development Network