Wil Burton's Q&A profile
Windows Forms Abort the Thread
Hi, I have two forms Welcome,MainForm. I want to use Welcome as SplashScreen till the second form instance is created. In Welcome form I have use one thread to create instance and to show the Main Form. After displaying MainForm I want to close Welcome Form as the thread. Can you please tell where Can I use abort() and close the Welcome Form. I think I misplaced the abort in my code. public partial class Welcome : Form { MainForm mainForm; Thread splashThread; public Welcome() { InitializeComponent(); } static void Main() { Application.Run(new Welcome()); } public void StartMain() { mainForm = new MainForm(); // ...Show All
.NET Development WSE 3.0 UsernameTokenManager not working plz help!
Hi, Im using a custom UsernameTokenManager in WSE 3.0 but it always authenticates when it should'nt. I'm missing something but don't know what. my Web Service code is: using System; using System.Web; using System.Web.Services; using System.Web.Services.Protocols; [WebService(Namespace = " http://tempuri.org/ ")] [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)] [Microsoft.Web.Services3.Policy("usernameTokenSecurity")] public class Service : System.Web.Services.WebService { public Service () { //Uncomment the following line if using designed components //InitializeComponent(); &nb ...Show All
Visual C# Monitoring http using c#
What is the best way to monitor http traffic that goes out of (and comes into) the PC Sniffing packets using raw sockets doesnt seem to serve the purpose since I'm more interested in the http data part (if I sniff each tcp packet, it looks like I need to aggregate them and try to figure out where the data is). I came across this tool "http analyzer std" ( http://www.ieinspector.com/httpanalyzer/ ) which gives the complete http along with the process that sent/received this traffic. I'd like to know if this can be done using c#. Hi There is no such utility avalible or atleast I don't know about any, but as I have done this you have to snif all the trafic and then you have to filter that accor ...Show All
Visual C# Playing sounds simultaneously
I know how to play an audio file using the SoundPlayer class, but I have only been able to play one sound at a time. If I am playing a sound, and I try to play another sound, it stops the first one to play the second one. And that is with two separately declared SoundPlayer objects. So, is there some way to play two sounds simultaneously I want to be able to play background music and sound effects at the same time. Thank you, that worked great! I'll just have to learn more about how things work so I can loop, etc. I will check out the website you listed. Thank you very much. I was scared to try to figure out playing a sound with directx, but it seems to be just as easy as SoundPlayer. ...Show All
Visual Studio Team System From FxCop 1.35 To Team system : compatibility problem
Hi there, I am used to developing while running fourteen custom rules with FxCop 1.35. Today I am migrating my team environment on Team System. To do so, I rebuild my rules by changing the references FxCopSdk.dll Microsoft.Cci.dll From C:\Program Files\Microsoft FxCop 1.35 To C:\Program Files\Microsoft Visual Studio 8\Team Tools\Static Analysis Tools\FxCop I then added my rules to C:\Program Files\Microsoft Visual Studio 8\Team Tools\Static Analysis Tools\FxCop\Rules. But each time Visual studio try to load the my rules it fails. I notice that the required references had changed in between FxCop1.35 (build date 23 june 2006) and TFS (build date 23 september 2006) I tried to replaced them but obviously it didn't run. Wh ...Show All
Visual Studio Unable To Debug
I have several projects that I used to be able to debug/run. Now when I try running/debugging, it states in the status bar that it is, "Ready", "Building", and then back to design mode. I can not get it to run. What is going on Thank you. Hello Bnjeer, Could you please provide more information so we can assist you with this problem. The following information would be a great start: What version of Visual Studio are you running (include any service packs you may have installed) What language are you using a code sample would work here as well. What are your exact steps right before you see this problem Thank you, Liz &nb ...Show All
Visual Studio Problems processing Object Arrays in Sandcastle
Hi, I ran on an problem the generating code documentation with Sandcastle. If i have code like private void myMethod (string[,] test) { ... } Sandcastle crashes with an error: Unknown reference target 'T:System.String['. I I change the code everything works fine. but I do not want to change the code just to fit for the documentation tool ;-) Please take a look at this Error Thanks for reporting this. Yes and we are aware of this. Sandcastle’s issue with multi-dimensional arrays in July CTP has hit a lot of people. It is fixed in our source for our August CTP release. I hope to post this CTP version shortly. Anand.. ...Show All
Windows Live Developer Forums Problems with LifeCam VX 3000 software
I`ve just purchase a LifeCam VX 3000. The software loads okay. I then click on the LifeCam icon on the desktop to start the program. But when the window opens nothing works when I click on them. To close the window I have to shut it down in Task Manager. Sometimes the window will open but all I get is the hour-glass icon which never stops. Again I have to shut it down through Task Mangager. The webcam works fine in Skype but I can`t get the software to initiate. I`ve installed the latest software from the Microsoft website. Thanks I installed the vx-3000 on Vista 32bit with the latest software and it work just fine. I tried it on a Vista 64-bit OS, and I have the same problems that " jaycee ...Show All
Software Development for Windows Vista Problems Installing VB6 in Vista RTM
Hi, I'm trying to install VB6 on a clean installation of Vista RTM. After installing it, when it starts loading it shows a message "Component mscomctl.ocx not correctly registered...." I've tried installing the SP6 over it and it still doesn't work. I've tried both as a normal User and right-clicking on the setup icon and choosing "Run as Admin" but it still shows the same message. Thank you so much for your help ...Show All
.NET Development Memory leak in SerialPort.Read?
Hi. I communicate with the serial port on my ”PDA/smart device” to another device (custom circuit board). The PDA needs to send data at least once a second to the hardware just to confirm that there is a connection; If not the hardware shuts down. The PDA also receives information from the device witch is displayed. The problem is that when the PDA receivea data, the application starts to leak memory. After 30 minutes to an hour the garbage collection procedure takes so much time that the communication halts for several seconds, witch in turn causes a timeout. Could there be a problem in the SerialPort.Receive() or in the garbage collector. Most likely I have done something wrong… Here is a simplified ...Show All
SQL Server A SSIS package
Hi, I am used Visual Studio SSIS wizard to transfer some data from one database to another with the same table structure. This is the first time I use SSIS. I see two objects created. OLE DB Source extracts some data based on the create date and OLE DB Destination object is a corresponding table. So query in OLE DB Source: Select ID,[Desc],[CreateDate] from TableSrc where ],[CreateDate] between ‘1/1/2006’ and ‘1/31/2006’ OLE DB Destination has TableDest as the destination. TableDest has the same structure as TableSrc. My problem is that when I run the package twice the data will be imported twice. I need to use this package for both new records and updated records in TableSrc . Is there any way I can check i ...Show All
Visual Basic Compare graphical data, but not so accurately? In VB
A friend of yours answered my first question about "Comparing Graphical data", but it was only for completely identical images, that source code will be posted later on. Now I want to know how to compare that graphical data but not so accurately, like, to compare every third, fifth, or whatever pixel in the image Is this possible Here is the source code: Private Function CompareBitmapImages(ByVal b1 As Bitmap, ByVal b2 As Bitmap) If b1.Width <> b2.Width OrElse b1.Height <> b2.Height Then Return False End If If b1.PixelFormat <> b2.PixelFormat Then Return False End If Dim bytes As Integer If b1.PixelFormat = PixelFormat.Format32bppArgb Then bytes = b1.Width * b1.Height ...Show All
Visual Basic Programming Languages
Hi, I'm relatively new to programming, and Visual Basic doesn't seem to be that good of a language, and not that much used in real applications. I want to move onto a different language, one that is very popular, can do almost anything, and can be and IS used in professional applications. Another important factor is platform compatibility. Java provides that, but Java isn't that popular for Windows, and Windows is my primary target. C++ works, but I have a couple of questions: 1) Can C++ be used on any OS Is it a good language to use as my primary language 2) Is C# going to replace C++ Does that work on other OS's C# is newer, and so I'm thinking maybe its the new version of C++ that's going to replace it, as xhtml is probably going to do ...Show All
Visual C# Static Controls Disappear
In VS2005, I have a static method that is calling a non-static control on the form. I get the error: "Error 22 An object reference is required for the nonstatic field, method, or property." BUT, if I make the control static, then it disappears off the form and off the form.Designer.cs code! What is the way to deal with this Here is a method where the control "splitContainer1" is causing the error: public static void loadEstimateProcForm() { if (checkForSelection() == true) { frmEstimateInfo f = new frmEstimateInfo(getEstimateID()); splitContainer1 .Panel2.Controls.Clear(); f.TopLevel = false; f.ShowInTaskbar = false; f.FormBorderStyle = FormBorderStyl ...Show All
.NET Development How to access to Paradox database in ASP.Net
I got a strang problem in reading Paradox database via ODBC. I can not read Paradox table without BDE. Finally I can read it after I install BDE. I setup system ODBC to access Paradox and test ok in Window From. but It does'nt work when I move the same code to ASP.Net. Does anyone have the same question as mine I am using vs.net 2003 under .Net 1.1 and windows server 2003 and BDE5.1 MS Knowledge base article concerning paradox: http://support.microsoft.com/kb/230126/EN-US/ Connection strings for Paradox: ODBC 5.X: Driver={Microsoft Paradox Driver (*.db )};DriverID=538;Fil=Paradox 5.X;DefaultDir=c:\pathToDb\;Dbq=c:\pathToDb\;CollatingSequence=ASCII" 7.X: ...Show All
