PCSQL66's Q&A profile
.NET Development Parse XML that not start with <?xml version='1.0' encoding='UTF-8'?>
Hello, I am trying to parse the response of a server the problem is that it doesn’t start with < xml version ='1.0' encoding='UTF-8' > It has rubish before the xml declaration. Does C# provides any method to transform the string in a correct XML document Thank you. > not start with < xml version='1.0' encoding='UTF-8' > > is that a valid xml yet Some terminology first: we say that an xml document is valid , when it satisfies an xml schema or an DTD. Generally, xml documents are not required to have a DTD or a schema. In this case it is correct to ask if an xml document is well-formed . So, I interpret your question as whether the xml document is well-formed . Yes, in a well-formed xml do ...Show All
Visual Basic VB6 -> VS2002 -> VS2003 -> VS2005 -> nowhere fast!
So, the upgrade from VB6 to VS2003 was really painful when it happened. A positive thing to note about it is that when you do that one you get big lists of errors and warnings and things that you need to change. If you then take that code and try to upgrade it to VS2005 you get NO warnings and NO errors and, dang it, a lot of things just don't work. It's very frustrating... There was an error in vb6controls.reg with how it register the msflexgrid that shipped with vs 2002. If you registered the vb6 controls with this file that might be the cause of the error. See this msdn article about it. ...Show All
.NET Development How to read the record data (byte array) while writing a Metafile (WMF/EMF) and edit it
Hi! Need your ideas urgently! I have a metafile which I wish to convert to PDF on the fly. The idea is to create a metafile template with placeholder text, which will be parsed and replaced by user information at runtime before generating the PDF. When editing the metafile, I have progressed to the following steps: 1. Called the Graphics.EnumerateMetaFile() method, which calls the callback method (lets call it ‘Play’) 2. Called the callback method and obtain the record data public bool Play( EmfPlusRecordType recordType, int flags, int datasize, IntPtr data, PlayRecordCallback callback) { byte [] dataArray = null ; if (data != IntPtr .Zero) { dataArray = ne ...Show All
SQL Server Custom Data Source Extension -> Edit Button disabled
Hi All! We created a custom data source for reporting service. Everything is working fine but the 'Edit' button next to the text field for the connection string is disabled. We would like to offer a dialog to define the connection string. How can we get access to the Edit button Thanks in advance for any help. Kind Regards, Markus ...Show All
Visual Basic datagrid delete button question
I have updated this posting so it is clearer: I would like to disable or make not visible the delete buttons on my datagrid dynamically, based on user rights. I am coding in VS2003 VB.net. How can I manipulate that button I know how to check for user rights; I would like to learn how to change the buttons' visible property at run-time. Thank you... using column or tables stykles you can set the column or table to read only 'entire datagrid read only Me .DataGrid1.TableStyles(0).ReadOnly = True 'column 1 read only Me .DataGridTextBoxColumn1.ReadOnly = True or if you have a button you can use Me.DisableButton.Enabled = False ...Show All
Visual Basic Tabbbed pages and printing
My program has two tabbed pages each containing data.. I want to be able to print both tabbed pages concurrently With one selection of the printer(duplex is turned on) Mitch ...Show All
Visual Basic Referencing a form object in a Mainapp.exe from a form in component.dll
Hi I have a form class in a .exe assembly (Main Menu Form A) and I have (Sub Main Menu Form B) in a class library assembly. Problem: I am having a hard time calling the Form A from Form B via the menu button, because I can not reference a .exe assembly from a .dll assembly without getting a circular reference error. What I tried: 1. From Form A: I tried to pass to Form B a variable(Me) to be set as the parent or owner of Form B. Then I tried to call instantiate a form A and show it, but that didn't work because of no reference to form A. 2. I tried to hide Form A and then from Form B try to just unhide form A, but that didn't work. Any assistance would be appreciated. I have spent several hours working on this, but it is ...Show All
Visual Studio 2008 (Pre-release) Treeview with combobox???
Hi everybody!! I need to create a treeview where the last childnodes has to be a combobox. Is it possible Any idea how to do that any idea would be great!! thank you, alba sorry!! I think I wrote it in the wrong forum..., I'm trying to do that in Visual Basic... I cannot understand the web where you send me... Thank you anyway! PD: Do you know where I should post it ...Show All
Visual Studio Express Editions Help Needed
I have made a web browser but i don't know how to make it the when im using that web browser and i click open in new window and it opens a new web browser form the same program and wont open a new windows explore brorowser. Can anybody help me That's just about a fully functional webbrowser and HTML editor. Certainly you can make a webrowser class simpler than that. But you have to remember that a webBrowser does an awful lot of "little things" that we don't notice.... unless we have to implemment them. ...Show All
Visual Basic :: Serial Receive :: Helpp
Hey all.. i could be called a novice in VB.NET.. ive used it for two big projects with serial comms with no problems, but im getting a problem with the serial communications this time.. when data is received , the function takes the received byte and should store it, but it doesnt let me write it to a text box, i get an error in debugger... Error: Cross-thread operation not valid: Control 'TextBox22' accessed from a thread other than the thread it was created on. Code: Private Sub myport_DataReceived( ByVal sender As Object , ByVal e As System.IO.Ports.SerialDataReceivedEventArgs) Handles myport.DataReceived Rxint = myport.ReadByte TextBox22.Text = Rxint End Sub P.S. - Rxint is an integ ...Show All
Visual C# Need help converting VB to C#
Hi Can someone help me by converting this VB to C#. Thanks a bunch. James Keele Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click MsgBox(Modulo10(TextBox1.Text)) End Sub Private Function Modulo10(ByVal strNummer As String) As Integer 'strNummer may only contain numbers between 0 und 9! Dim intTable(10) As Integer Dim intTransfer As Integer Dim intIndex As Integer intTable(0) = 0 : intTable(1) = 9 intTable(2) = 4 : intTable(3) = 6 intTable(4) = 8 : intTable(5) = 2 intTable(6) = 7 : intTable(7) = 1 intTable(8) = 3 : intTable(9) = 5 For intIndex = 1 To Len(strNummer) intTransfer = intTable((intTransf ...Show All
.NET Development TableAdapters not visible when configuring ObjectDataSource
I have a DataSet with 6 tables, all having their TableAdapters configured for selection. When I create an ObjectDataSOurce on a web form I can only select from 2 of the TableAdapters, the remaining 4 are hidden. I can not find any difference in the table or adapter properties that should give this result. Anyone seen this behavior in the ODS configuration wizard before Best regards, Per Ok, I found the problem. The reference from the web application to the DAL class library was not correctly defined. After removing it and re-adding the reference it works. ...Show All
Visual C++ Visual C++ compiler error
When I try to build a C++ file I get an error having to do with "Unresolved external _main". I searched through all the related files and there was no such string. What would cause this I didn't see any field for entry point under the properties menu selection. It wasn't under the projects menu either. I am working with Microsoft Visual Studio 6.0. Isn't that the one you are referring to I am a musician also. I play jazz written by people like Dizzy Gillespie and Thelonious Monk. I have heard of your spouse, but unfortunately I am not up to date on the current popular artists. It's a pleasure to make your acqaintance, so to speak. ...Show All
Visual Studio Team System Outdated Work Items - Saving not possible
Hello, We have found a little annoying problem with Work Items, especially when working with Scenarios and/or links. 1. Create a Scenario, save it, keep it open 2. Create a Task and link it to the scenario, save it, close it 3. Edit the Scenario and try to save Result: You're not allowed to save the scenario; you first have to refresh it (and lose your changes). Workaround 1) Always Refresh work items before editing them Workaround 2) Don't "Save" Work Items, close them and say "Yes" when asked to save Best regards, Martin If someone changes the work item and saves it while you are editing the work item and then you try to save it then you get the error message to first refresh the wor ...Show All
.NET Development how to detect parameter values passed to method
i want to log the method's name and the list of parameters along with there values. Retrieving the name and names, position of parameters is easy, but can someone help me out in finding values to these parameters whenever an exception occurs, i do the following Dim paramInfo() As System.Reflection.ParameterInfo = ex.TargetSite.GetParameters() Dim i As Integer = 0 For i = 0 To paramInfo.Length - 1 Response.Write("Parameter " & i + 1 & " Name : " & paramInfo(i).Name & "<br><br>") Response.Write("Parameter " & i + 1 & "Type : " & paramInfo(i).ParameterType.ToString & "<br><br>&q ...Show All
