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

Software Development Network >> Pedro Martins's Q&A profile

Pedro Martins

Member List

Randy Galliano
Hans L
xuanfeng
Pierre Maloka
MrT25
RWF
Amjath
Banacek
kageg
saddy
Pavel A.
jzfredricks
johnny_no1_boy
Madhu K Nair
Ferdinand Kuiper
Paul_G
NickiC
Aaron Oneal
adorablefaith
SimonOng
Only Title

Pedro Martins's Q&A profile

  • .NET Development Parse response from web service

    I've created a web app that connects to a web service which returns a stock quote. It returns xml in the form of a string as follows: <string> <StockQuotes><Stock><Symbol>HAN</Symbol><Last>61.27</Last><Date>8/10/2006</Date> <Time>12:03pm</Time><Change>-0.65</Change><Open>61.60</Open><High>61.75</High> <Low>61.25</Low><Volume>4900</Volume><MktCap>8.784B</MktCap><PreviousClose>61.92</PreviousClose> <PercentageChange>-1.05%</PercentageChange><AnnRange>46.30 - 69.74</AnnRange><Earns>6.50</Earns><P-E>9.53</P-E><Name>HANSON PLC (HLDG </ ...Show All

  • Visual Studio Express Editions Masked TextBox or Normal TextBox and Masked by Code??

    Hello Every1 I want to have a textbox that allows only numbers and then allows only 4 digits. Is it better to use a Masked TextBox control or a TextBox which is masked by our code The code bellow is not working because when the textbox fills with 4 digits, it will be selected all and then it does`nt allow any number, Please Help me on this problem : Private Sub txtCode_KeyPress( ByVal sender As Object , ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles txtCode.KeyPress     Static Dim sintCodeLen As Integer     If Len( Me .txtCode.Text) > 4 AndAlso sintCodeLen = 4 Then         e.Handled = True  &nbs ...Show All

  • Windows Forms VS 2005 not publishing

    I am having trouble with my asp.net website. Yesterday I decided to update the website and when i went to republish it into the folder that it needed to be in, it said it completed and asked to delete the files, which i did. I then looked into that directory and there was no files at all. So i published again and again but still nothing appears, however othere asp.net websites still publish. What is wrong. ...Show All

  • Visual Studio Express Editions Insert Text into an existing text file

    Hello, I am new to C# and have a project that I am trying to get started and am looking for any help I can get. I have a video encoder that outputs log files in text format and I need to add command lines to the log file and save a new log file (same name) with a "t" at the end to keep the 2 text files separated. I am currently doing the manual copy/paste and would like to automate (each log file has 100 insertion points daily, alot of copy/paste). Excerpt from the log file (the log file is saved in text format) "1","11/07/2006","14:58:30",1,"006542","00:01:00:00","00:59:59:29","Tape02","ASATest" "1","11/07/2006","14:59: ...Show All

  • Visual C# What is equivalent of ocx in .net?

    Hi I would like to know How I can add a winForm to webForm If you are thinking about creating ActiveX controls for Internet Explorer, to be honest i didn't create any such thing in .NET. But i did controls in C++ that can integrate in a web page. But that was several years ago, and it was right to do it with C++ and not with Visual Basic. The conclusion will be the same today also. Then it is because if you do it with C++ your control will be tents of time less weigth then if you create it with Visual Basic. Just because you should put also VB runtime libraries in it, and C++ doesn't need any. If it's possible to do it with .NET, then you have to be sure that every user has .NET Installed. But ther ...Show All

  • Visual Studio Team System Regular Project Type Templates

    I had a working installation of VSTS with TFS beta 3 refresh. In between, I did not work for 3 months and everything broke. After that, I could get TFS for workgroup going. Before TFS for work group, TFS client was already installed. But after installing TFS for WG, when I try to create a new project, I do not see all the regular project type templates. All I see is "Business Intelligence Projects" and "Other Project Types" under which I see "Blank Solution" and "Search Online Templates". What do I have to fix to see all the regular project types including "Distributed Systems Solutions". You need to install one of the Team System sku's or (if you have i ...Show All

  • Visual Basic Trouble w/ MS Direct Speech Recognition

    Hi I created a small windows application w/ speech recognition using MS Direct Speech Recognition (ACTIVELISTENPROJECTLib.dll) It works great on my machine (one that I created the windows application w/ VB.NET 2005) but it doesn't work on any other machine. I added references to the speech recognition and imported namespaces at the "My project" When I run the same application on any other machine, it gives me an error message System.InvalidOperationException: An error occurred creating the form. See Exception.InnerException for details. The error is: Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)) ---> System.Runtime.InteropServices.COMException (0x80040154): Class not registe ...Show All

  • .NET Development Windows forms authentication against DB

    I would like to authenticate users against a users table in a database. Basically, it would string match the username and the password in the database table to authenticate the user. I assume that anytime you pull information in from a database, by default it is in clear text. So, if you have a users table to authenticate against, wouldn't you need some way of protecting the user name and password while it is in transit Perhaps there is a better way to authenticate a user in a windows form application Is it best to authenticate against active directory or can authenticating against a database table OK Any help, always appreciated. Is there any resources you can point my direction which shows how to encrypt/decry ...Show All

  • Visual C++ How can I delay the execution of a C++ program?

    Dear All, I am writing a simple multithreading application and I would like to add or force execution delay for 5 seconds before the completion of a thread. So is there a Visual C++ command that could be used to delay the execution Regards Bassam killkenny55 wrote: i just tried that and it does not know what sleep does What do you mean To be a little bit more correct, Sleep quaranties that the thread will be suspended for at least the specified period of time. There is no quaranty that the thread will be suspended for exactly that amount of time. ...Show All

  • Silverlight (formerly WPF/E) Support for Streaming Servers ?

    I am currently trying to find out if support for any streaming architecture has been implemented in the FEB2007 release; ideally the Windows Media Server WMS architecture. I would like to be able to access streaming content under any of streaming protocols ideally rtsp:// or mms://. Our architecture is setup on WMS and I am typically working with 45-90 minute recordings. Due to the limited support for WMP on Mac OS X as well as compatibility issues with the latest Intel based macs, I am very eager to be able to replace the embeded WMP with a WPF/E based player, however I need the ability to seek to random points in a file. Also in looking at the docs, WPF/E is said to support WM9, I was wondering if it will be suporting all WM9 codecs ( ...Show All

  • Visual Basic CSV file records

    I am trying to read a CSV file into a datagrid (the csv file has 4 columns and up to 3000 records) and i found the following piece of code by JOE_MS which does exactly what i want: Using parser As New Microsoft.VisualBasic.FileIO.TextFieldParser( "c:\temp\myFile.csv" ) parser.SetDelimiters( "," ) While Not parser.EndOfData Me .DataGridView1.Rows.Add(parser.ReadFields()) End While End Using However i cannot find the textfieldparser in my system. Do i need to add a reference or does this only work in VB.NET 2005 as i am using VB.NET 2003 If i can't get it in VB.NET 2003 how do i do it Help please!! Yes Microsoft.VisualBasic.FileIO.TextFieldParser is not ...Show All

  • Windows Live Developer Forums Choosing BOT SDK?

    Any suggestion on which BOT SDK to choose to enter the Invasion of the Robots contest Has anyone looked at all three and found one that is the best.  It seems that each is bound to a specific server and picking one ties you into that server. Thanks, Michael Yesterday, i found that the the connection to the incesoft.com is faster than before. They place a server in USA now, developers can select the server location in their SP info management. Before that the connection speed is little sluggish. Anyway, thanks for their work. ...Show All

  • Visual Basic Using splash screen as a Login Form

    I understand the concept of the splash screen, in that its only supposed to be visible while the program or forms behind it load, but I want to use it as a login screen for a program I am working on. I want it to stay up until the ok button is clicked. Is that possible or should i just nix the whole splash screen idea.. Please help! ( code is always good!) You want a login screen, not a splash screen. They are there for different purposes. Use a splash screen for a splash screen and a login form for a login form. Use the login form template for what you want. You can use the login form as you start form for your application requiring them to validate before allowing use of your application. ...Show All

  • Visual C# cannot debug any code once it has changed

    Hi, I have just installed Visual C# 2005 Express Edition and all was well. One day later and I can't debug a new project as I get the error: "The following module was built either with optimizations enabled or without debug information" I can create a new command line project and add the following line of code: Console.WriteLine("Test"); This runs fine...no problem. However when I change that line to: Console.WriteLine("Another Test"); I get the above error. I cannot debug any code once it has changed. I've seen some other posts with the same error but no clear solution. I have worked out that when I delete the .exe file from the bin\debug directory it all works again. The code debugs f ...Show All

  • Windows Forms how to void the TabIndex property so labels cannot be tabbed through?

    Is there a way to void the use of the TabIndex property I have a form with textboxes and labels, but I don't want the labels to be included in the list of controls that you "tab through". I want to be able to tab through just the text boxes, and then when finished going through all of them, it should go back to the first textbox, rather than having to go through each label before doing that. Thanks! Ok, that is good to know. After I read this, I removed my code that I had just previously added to set the TabStop = false for my labels, now that I know that this property is false by default. It seems to be working now, without me having to set TabStop = false. I'm not sure why it wasn't working before. Before, i would tab th ...Show All

©2008 Software Development Network