Software Development Network Logo
  • Windows Forms
  • Smart Devicet
  • SharePoint Products
  • Windows Vista
  • .NET Development
  • IE Development
  • Microsoft ISV
  • Visual FoxPro
  • Game Technologies
  • Visual Basic
  • Audio and Video
  • VS Team System
  • Visual C++
  • Visual C#
  • SQL Server

Software Development Network >> gcox18's Q&A profile

gcox18

Member List

Eric Wisdahl
phil schmidt
Dennis Mulder - dennismulder.net
Satya vani
Krutika
Peter Kahn
Ralf.B
François PIETTE
obelix40
Woody_In_Sheffield
JustbobChico
Thomas Li
ONEWORKNGRL
Speednet
Uwe Reisewitz
Mark Macumber
Mainiac007
venp
dxpsteve
rWarrior
Only Title

gcox18's Q&A profile

  • Visual Studio 2008 (Pre-release) Itemname on simple Arrays.

    Hi, I'm using the DatacontractSerializer, and my data contains a simple array of type A[]. I would like to format the names within this array - but it seems only to be possible if I implement IEnumerable Any thoughts Hi, thats just the problem DataContractAttribute only works on collections which implements IEnumerable. for instance... [DataContract()] public Class A{ B[] myitems } Will end up looking like: <myitems> <B/> <B/> .... </myitems> But I want to change "B"s name. ...Show All

  • .NET Development VB.NET/XML Namespace parsing issues

    Hello, This is my first delve into XML namespaces and I'm having a VERY difficult time parsing the XML because of the Namespace. If I remove the namespace then I get no problems. It would really be appreciated if anybody out there can cure my headache! Here is my code: Dim xmlDoc As New System.Xml.XmlDocument() Dim resolver as XmlUrlResolver = new XmlUrlResolver() Dim datasource as XmlDataSource = new XmlDataSource() resolver.Credentials = New NetworkCredential("username", "password") xmlDoc.XmlResolver = resolver xmlDoc.Load("http://somedomain.com/webservicename") Dim xsn as XmlNamespaceManager = new XmlNamespaceManager(xmlDoc.NameTable) xsn.AddNamespace("t", "urn:ahw:itemlist") x ...Show All

  • Visual Studio Express Editions Progressbars: For Each foundFile As String In My.Computer.FileSystem.GetFiles

    With regards ahmedilyas solution below to copying various file extensions, how can I tie 2 progressbars to this code ProgressBar1 measures each file copy progress ProgressBar2 measures overall files copy progress Thanks for any help. http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=832447&SiteID=1 Dim theExtentions() as String = {"*.jpg", "*.bmp"} for each currentExt as String in theExtentions    for each currentFile as String in My.Computer.FileSystem.GetFiles(My.Computer.FileSystem.SpecialDirectories.MyDocuments, FileIO.SearchOption.SearchAllSubDirectories, currentExt)       'do your thing    next next the same thing ...Show All

  • Software Development for Windows Vista ignore state machine events

    Is there a way to take no action when an event occurs I want events to get ignored instead of throwing an exception when they are not allowed in a specific state. I have many states and many events that can occur. If I want to simulate this behavior in the workflow I have to attach each event to each state, and set some state in the event handlers when I want to do something, and set the same state again when I want to ignore it. Is there any better approach (I would like to have the logic in the workflow and do not restrict the host in which kind of events it can send) Thanks in advance for any suggestion! Thanks for your responses So, when using a communication service to dispatch events ...Show All

  • .NET Development Issue with Process.Start() and Perl script

    Hi there, I am trying to call a Perl script from within a C# Windows Service but can't seem to get it to work. To call the script in question from the command line I would type: 'Perl c:\FACT\GetWaferBinDataXDaysX.pl [username] [days]' Where username is text and days is a number. In my service I am using the following code to try and get the same thing to happen: try { ProcessStartInfo startInfo = new ProcessStartInfo(@"C:\Perl\Perl.exe"); startInfo.Arguments = @"C:\FACT\GetWaferBinDataXDaysX.pl " + formdata[0] + " " + formdata[7]; Process.Start(startInfo); } catch (Exception f) { EventLog.WriteEntry("FACT", "Error executing Perl script: " + f.ToString()); } Where formdata[] is a string array holding the values ...Show All

  • Visual Studio Team System Results are not correct

    Hi, I am doing load testing on web application. I have created web test and I am calling that test in my load test. Scenario Login Click on document link Document opens This scenario passed for 1500 users. Manually for opening the single document it is taking 10 seconds. I can’t see how with 1500 users opening the document at the same time would take less then 10 secs. Either the amounts of data returned are not being taken into account for the load tests or we are doing it the right way. How do I know weather my test is generating load or not 2. Where it went wrong in above test Why the results are not correct Make sure to run your web test by itse ...Show All

  • SQL Server How to get sql server name with a vb-script?

    Is there anyone who knows how to get sql server name using a vb-script I have tryed this: bKey = WshShell.RegRead("HKLM\SOFTWARE\Microsoft\Microsoft SQL Server\Instance Names\SQL") But it cant open it for read. Someone who knows a better way Regards SW-engineer You are missing the point I am trying to make. Your simple logic of use SQL but if it is not there use express, will only work in very simple scenario. It may be the most common, but you should not rely on it. So choosing SQL Server or SQL Express, it is not an either or situation. You can have BOTH SQL Server and SQL Express on the same box. You can have up 50 instances of SQL, be that SQL Server or SQL Express on one m ...Show All

  • SQL Server Cannot open http://localhost/reports

    Hi Folks, I've just installed SQL Server 2005 Standard Edition with Reporting Services. Via Visual Studio, I am able to create and run reports without an issue, but I am unable to launch the web element of Reporting Services, via http://localhost/reports I get the message "Page cannot be found". I have run the install a second time in the hope of a "repair" but it has made no difference. FYI, from within IIS, I cannot see reference to a website for "reports". Any ideas You may have unchecked the option to configure the server during the install. Try launching the RS 2005 Configuration tool from Start->All Programs->Microsoft SQL Server 2005-> ...Show All

  • SQL Server Too many table names in the query sql 2005 merge replication snapshot error

    In SQL 2005 I’m able to create a snapshot no problem, when the snapshot runs on the next scheduled date I get the following error. ********************************************** Message: Too many table names in the query. The maximum allowable is 256. Incorrect syntax near ')'. Incorrect syntax near ')'. Incorrect syntax near ')'. Incorrect syntax near ')'. Incorrect syntax near ')'. Incorrect syntax near ')'. Incorrect syntax near ')'. Incorrect syntax near ')'. Incorrect syntax near ')'. Incorrect syntax near ')'. Incorrect syntax near ')'. Incorrect syntax near ')'. Incorrect syntax near ')'. Incorrect syntax near ')'. Incorrect syntax near ')'. Incorrect syntax near ')'. Command Text: sp_MSmakesystableviews Parameters: ...Show All

  • Windows Forms Formatting data for a DataGridView that has a DataSource

    I'm working with a DataGridView whose data source is a DataTable. I need the DataGridView to display data formatted to a desired number of decimal places but I’m having difficulty doing this. It seems to ignore the format string I use for the DataGridView cell styles and always shows the unformatted value coming from the DataTable. (Also note that if I don't use a data source for the DataGridView and populate it directly the formatting does actually work.) I have attempted formatting cells for decimal places in several ways including setting the Format for the DefaultCellStyle and changing the Format for each cell’s style in a CellFormatting event but nothing seems to have any effect. I am able to change other properties of a C ...Show All

  • Visual C# Don't know what type of issue of My Visual Studio 2005 Team suit IDE

    I got a problem of my IDE. If I create a new C# website project using either File System or IIS project, when the solution was created, I opened codebehind file, the IDE produced a lot of erros for the syntax (by default). when I pointed to that error, it's said "'class' statment must end with a match 'end class'", it seems that the IDE use VB syntax to check my C# codebehind file. Does anyone have had this experience before or any solution The Default Language Settings is same as windows xp which is English. Yesterday, I tried to reinstall the windows xp, after that I installed VS.NET 2005 immediately, the problem came back. I finally uninstalled the vs.net 2005 sp1 beta, then everything was working fine. what stupid I've ...Show All

  • Visual Studio Express Editions how can i make add a find function to my webbrowser?

    the topic pretty much describes it =P i have a webbrowser control and i wanna be able to search for keywords in the webpage that is currently open in it... if their is no simple way, then i would also settle with a way to read the source of the page, and search the source. ...Show All

  • Software Development for Windows Vista Layered Windows mouse event bug

    Hello! My customer reported a bug in my software about Layered Windows in Vista. This string from the Platform SDK is not working when Aero Theme is enabled (red text is not working): Hit testing of a layered window is based on the shape and transparency of the window. This means that the areas of the window that are color-keyed or whose alpha value is zero will let the mouse messages through . So, the fully transparent parts of my window are not transparent for mouse events now! It worked fine in Windows 2000, XP, 2003, XP x64. Now stops working in Vista :-( It also does not update the window content when a layered window is resizing. When the old Win95-style theme is used, the program working fine. How to be ! ...Show All

  • Architecture Preventing denial of service attacks in public APIs

    Hi Forum We are building some web services which will be available to our customers. What is the best way to prevent denail of service attacks My worst fear is actually the accidental never ending loop that a programmer might do. How does one prevent a never a ending loop by an external programmer Is it something that should be programmed into the application Max Object Limit on Inserts - Valid option I can see that if would be quite easy to prevent too many inserts. We could decide on a limit of max entries pr. user for each object type and then do a count before each insert. This is by no means a way to prevent denial of service but it could be one of the tools to use Is it a bad idea - It cannot do anyting about reads, ...Show All

  • Visual Basic DLL Base address

    Please help, I need to change the base address of a DLL and when i go to project -> properties -> compile tab -> advanced compile options -> the base address is greyed -out meaning i cant change it.... any suggestion The project must be a .Net class library for it not to be greyed out....if you select new project and then select "Class Library" the base address will be available for you to change... ...Show All

©2008 Software Development Network