Gokhan Ertas's Q&A profile
.NET Development Checking execution of threads
System.Threading. Thread tcpthread = null ; for ( int i = 0; i < pt.Length; i++) { Net_Monitor. tcp temp = new Net_Monitor. tcp ("dps7","HTTP,80]); tcpthread = new System.Threading. Thread ( new ThreadStart (temp.portchecker)); tcpthread.Start(); } now i want to run rest of code when all thread are executed how to check tht all threads are executer i had checked tcpthread.isalive but it checks only last threads not all threads plz help thank you Create an IList or Collection and maintain your Thread instance references out side of this particula ...Show All
Visual Basic Detect if in IDE
VS2005 VB.Net B2 How do I detect the differnence between running code under the IDE vs. from an exe For example in VB6 I used to detect the error from Debug.Print 1/0 thjat only happend in the IDE. Debug.Print 1/0 doesn't cause an error in VS2005. A common method of figuring out whether the application is running in the .NET IDE is to check the System.Diagnostics.Debugger.IsAttached property to determine whether if a debugger is attached to the currently executing code. If so, you can assume your code is running from within the IDE. ...Show All
SQL Server Problem to create assembly which depends on other dll's from SQL Server
I am developing an application in .Net but I need to access to some procedures in ASP.Net since SQL Server. I have got it but i have problems to assembly the dll if it has dependencies of another dll's.I have read that if a dll need other dll it call it automatically but when I try to assembly my class in .NET there is the next error: Create failed for SqlAssembly 'ClaseEjemplo'. Assembly 'csyt.dal, version=0.0.0.0, culture=neutral, publickeytoken=null.' was not found in the SQL catalog. (.Net SqlClient Data Provider) Nevertheless if I the class hasn't another dependencies it works.The class I am trying to assembly is ClaseEjemplo.I ...Show All
SQL Server Reportviewer issue using Visual Studio 2005 (July Bits). What SQL version should be used?
I get the following error when trying to configure ReportViewer for remote processing The version of the report server web service definition (WSDL) is either not valid or unrecognized. The server is not a compatible version. Server did not recognize the value of HTTP Header SOAPAction: http://schemas.microsoft.com/sqlserver/2005/05/18/reporting/reportingservices/ListSecureMethods . I'm using the June CTP SQL Server release and the June CTP of Visual Studio 2005. Based on the schema it doesn't look like the April CTP would work either. Which version ...Show All
Visual Basic ToolStripStatusLabels
How do you make a ToolStripStatusLabel have a ' CAPS ' feature (like, say, if CAPS LOCK is on, it'll say CAPS in black, but if it's off, it'll say CAPS in gray ) I can only partially answer your question. My.Computer.KeyBoard.CapsLock is a boolean type property. It will tell you the status of the Caps Lock Key. But I can't tell you how you would constantly monitor for any changes made to it. As a newbie, first instincts would tell me to put an if then else in the KeyUp Event of the form that holds the StatusStrip. However, I believe this wouldn't work if, you would hit the Caps Lock Key while a TextBox or other control on your form h ...Show All
Visual Basic please ,how to show browse icon dialog ?
i don't find it in toolbox , .NET component ,COM component Must i write it myself http://www.windowsforms.com/default.aspx tabindex=6&tabid=47&ItemID=7&mid=142 ...Show All
Visual Basic my.computer.printers
In another post Huy Nguyen - Visual Basic team. wrote: Hi, In Visual Studio 2005 we've tried but could not find a good enough solution for My.Computer.Printers. Due to the resource constrain, this feature was cut in the final release of the product. We will continue to investigate to improve the printing experience in the next release. For now, you can take a look at this article http://msdn.microsoft.com/library/default.asp url=/library/en-us/dv_vbcode/html/vbtskCodeExamplePrintingTextFile.asp . Best regards, the examples are terrible! ... printing experience I do not want to experience the printing!! I want to simply k ...Show All
Visual C++ System.InvalidOperationException
Hello NG do enyone now how can i update a Form during the runtime some code: ...loud() devForm^ devF = gcnew devForm(); devF->TopLevel = false ; this ->tabPageDEVControl->Controls->Add(devF); devF->Show(); end loud Online() ... //starting a timer timer... .... UpdateForm()... //Here become i a Exception this->devF->ShowData( myString); You are using multiple threads. As the message states, that exception is thrown when you access a control on a thread other than the one that created it. Have a look at the following post for information on how to avoid this: http://forums.microsoft.com/msdn/ShowPost.aspx ...Show All
Visual C# What is the best design in this scenario?
Hi, Can somebody with experience tell me what would be the best way to accomplish following in c#. I have a requirement to convert Access table to flat file, I have specification for text file like that Field Field Type Length Format Note 13 Province or State string 2 Free format Length of field for Canada =2, US=3, International =20 8 Company Name string 44 Free format 19 Weight long 9 Grams, integer I need to make sure that converted CSV fi ...Show All
Windows Forms Partially ReadOnly datagrid?
Hi everyone, I'm not sure if what I'm asking is possible. Here's the scenario. I have two datagrids and would like to move rows between them. Each datagrid is bound to a datatable which has a boolean column for the selected state of the row. There are two buttons between the datagrids, "Add" and "Remove". Each of these buttons remove a r ...Show All
Visual C# Can't use loops inside class?
This might be a noob mistake, but see if you can see what's going on here. The code is listed below - i am getting a bunch of compile errors like "Invalid token 'do' in class, struct, or interface member declaration". I tried making a class that had just one while loop, and I got the same error. Is there some reason that I can't have loops inside a class I just tried adding a regular class to my project... using System; using System.Collections.Generic; using System.Text; using System.Net; using System.IO; namespace iTRAKParser { class WebStream { // used to build entire input S ...Show All
Windows Forms Open a file that is already opened by another app in readonly mode
I have a vb.net app that imports a csv file created in Excel. Very often the users forget to close the Excel app and get the following error message in my vb app: An unhandled exception of type 'System.IO.IOException' occurred in mscorlib.dll Additional information: The process cannot access the file "C:\WestBond\import.csv" because it is being used by another& ...Show All
Software Development for Windows Vista workflow designer
Hi All, I wonder whether it is possible to host the workflow designer in my app. I thought it would be cool if I can have the workflow designer as my app's GUI. Thanks, DK I had to put my workflows in the GAC in order to have the Workflow Monitor reliably find them. And in order to put a Workflow into the GAC, you first have to set the Build property of each Workflow dll to have a strong key. And before you do that, I believe you have to go to the Visual Studio 2005 Command prompt and use the sn command to create the strong key. ...Show All
Visual C++ What equals to C# ref keyword in VC++ 7
Can somebody tell me what equals to C# ref keyword in VC++ 7 Thanks in advance. Hi David, i take look at your reply and it seems to be the best answer for me. Thank you. Could you take a look at: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=181164&SiteID=1 and try to help me for that. Any idias will be deeply appreciated. ...Show All
.NET Development WHich namespace is used for ConversionHelpers.AsWorkaround
Hi, I recently converted a C# code to Vb.Net. The vb.net code uses ConversionHelpers.AsWorkaround() Which namespace should be included for this to work. Hello, It's not like you think, [ ConversionHelpers.AsWorkaround ] is resuted by the program or website that you used to convert code to vb.net Use [ TryCast ] instead. ...Show All
