theExplorer's Q&A profile
Smart Device Development modal form will not close
I have a C#, .NET Compact Framework 2.0 SP1 application. I have encountered a recurring problem where modal Forms displayed using the .ShowDialog() method sometimes will not close when their Dispose() method is called. When this problem occurs, the modal Form remains on-screen as the top-most window but is completely unresponsive and cannot be closed. This problem is actually worse than an application crash because the only way out is to use the Settings > System > Memory > Running Programs control panel to ‘Stop’ the application. The modal Form in question does not have a CancelEventHandler for the ‘Closing’ event. Is this a known problem If so, I urgently need a fix or work-around for this problem. I've got t ...Show All
Smart Device Development Blue Tooth Programming
hello i am new to blue tooth programming and want to learn bluetooth programming how can i do in .net can any body tell me Hi ajay Pathak, Using the CF2.0, rather than the CF1.1, a major adavancement on bluetooth programming is now enhanced and availabe. In addition to AlexY post, the following links are beneficial: http://msdn2.microsoft.com/en-us/embedded/aa714533.aspx http://msdn.microsoft.com/msdntv/episode.aspx xml=episodes/en/20050519CodeRoom2/manifest.xml for programming: http://franson.com/BlueTools/guide.asp print=2&platform=netcf from OpenNetCf and widcomm you have: http://www.opennetcf.org/download.asp product=OpenNETCF.Bluetooth.Widcomm gl mario ...Show All
Visual Studio 2008 (Pre-release) WCF call fails sometime in CAB application
We are currently developing a software using both CAB (Composite Application Block) and WCF. The client side GUI is written based on CAB. However, it is found that if WCF callback is used, sometime WCF client side call will raise "TimeoutException" exception. I have checked the WCF log file and found that before the exception was raised, the message was already received by the client side; but for some reason, the message was not processed until timeout. If I not to use CAB, it seems everything works fine. I think a dead lock could be generated by ObjectBuilder, which is the main part of all the application blocks. I have wrote a small test program which has the exactly same problem. I cannot locate the problem precisely ...Show All
SQL Server TOP 5 returning 10 ???? :(
Okay here is my delema.. I have a embedded chart in a table that returns that is set up to return the top 5 of it's sub-children... got me So if i look at info of the datas' children i see Parent Data Infoasd Count Pdataasd,asd,as,d 123 134 Get these top 5 for chart -----------> Child Data Count Infower 56 Infower 43 Infower 23 Infosadew 2 Infoasd 2 Infoasdui 2 Infoasda 2 Infodasdas 2 Infoqweqw 2 Now as you can see at row 4 on the child data the count is 2 and then 2 and then ...Show All
Smart Device Development Win32 functions User32.dll
I am trying to use the Calculator in my win forms and i so i am trying to capture the Edit class from the Calculator ( The edit class is the textbox on the Calculator). I am not able to figure this out.. I need some direction... here is what i have so far... ---------------------------------------------- [DllImport("User32.dll")] public static extern Int32 EnumChildWindows(IntPtr hWndParent, Delegate lpEnumFunc, int lParam); ----------------------------------------------- public partial class Form1 : Form { delegate int CallBack(IntPtr hwnd, int iPram); public Form1() { InitializeComponent(); } private Process _Process = null; private void button1_Click(object sender, EventArgs e) { this._Process = Process.Start("calc") ...Show All
.NET Development Odbc SCHEMA Issue
Hello everyone, This is my issue. For the longest while i've been reasearching and trying to figure out how, when using and ODBC connection, do I get the database schema, withouth having to execute an sql statement first. What exactly i'm trying to do is this - Connect to an odbc database (which I already can), retrieve the list of columns for a specified table - before executing a specific sql statement. Now is there a way this can be done Ok then, another question, can it be said though that all database have some sort of DATABASE with some TABLE that has a list of the tables and their columns in some COLUMN if so then i should be able to work with that. but, i'm just wondering if such an abstract conclusion is true. ...Show All
SQL Server Sending user defined column names to a view
I want to pass user-defined column names to views or procedures I am using SQL Server 2005 Express. I tried this. CREATE PROCEDURE @userDefinedColumn varChar(10) = 'My_Column' select @userDefinedColumn, count(ID) as [Total Records] from My_Table GROUP BY @userDefinedColumn This was not accepted. It won't allow a user defined parameter in the group by. But I need to pass user defined parameters to views as well. You probably will have to do that within dynamic SQL. Before the execution (at creation or if deferred at first execution) SQL Server (during compilation) will try to determine a execution plan, which can’t be done without knowing the actual value of the column. S ...Show All
Visual Studio HoL Registration failed
Hi there, Since the beginning of the week I'm exploring for the first time the concept of Guidance Packages. While searching for a quickstart a ran into the Hands on Lab solution to get me started. I ran into a few problems that already are solved (some of them appeared in this forum) but now I'm completely blocked. The registration of the HoL failes, althow I've already installed the WCF guidance package. The error that's been reported in the VS output says following :(Note : all the assemblies are in the PublicAssemblies IDE) An exception occurred during the Install phase. System.TypeLoadException: Microsoft.Practices.RecipeFramework.VisualStudio.RecipeFrameworkInstaller, Microsoft.Practices.RecipeFramework.VisualStudio at ...Show All
Windows Forms ClickOnce: two instances of application
Let’s consider the situation when MyApplication version 1 is installed on the computer and has been run. After that, user is going to the application site and downloading new version (2) of the MyApplication. At this point system has 2 started applications: version 1 and version 2. I don’t like this situation and would like version 2 to correctly shutdown version 1. Is there any functionality in ClickOnce which can help in this situation You need both Assembly Versions of the two apps the same in order for the new one to overwrite the old one. Ex. Go to the properties designer of the new and old project. Click Assembly Information... on the Assembly tab. Make sure the 2 versions of both projects are ...Show All
Visual Studio 2008 (Pre-release) DLINQ question
I just finished watching the "The LINQ Framework What's New in the May CTP" presented by Luca Bolognese. The video discusses DLINQ. question #1 I am a student and just starting to learn stored procedure of SQL. Correct me if i am wrong but my interpratation to the demo is that this DLINQ prevents you from creating sql stored procedure and your database query will mix up on your c# code or the business logic of the program. is that manner ideal would it be better if the sql code or the dlinq code is in a separated file and not mixed up with the business logic code quetion #2 would this DLINQ work with other database like MySQL, Oracle, etc this is my first time i have seen a video of LINQ. please correct me if i am wrong with my interpre ...Show All
.NET Development how to write decimal numbers to Serial Port?
It seems the method "write" for COM Port has three different constructors. port.Write(string text); port.Write(byte [] buffer, offset, int count); port.Write(char [] buffer, offset, int count); And now I want to write the decimal number between "0" to "30" to the COM port. How should I convert the (int i = 0 ) to the correct format for writing The receiving port should get the decimal number "0"... I tried to use Convert.ToByte(i), however, there is no lenght for the "int count" part... Thank you! Try something like int i = 0; byte[] buffer = BitConverter.GetBytes(i); port.Write(buffer, offset, buffer.Length); ...Show All
Visual Studio Express Editions Installing Web Dev, C# & VB on same machine
Are there limits on how many of the express editions you can load on a single machine. I would lke to load SQL, Web Dev and VB on the same machine. I would also like to put C# on it later to see if I like it better than VB. Has anyone had problems with this You can install all the Express products on the same machine as they are designed to run side by side. In fact, I have all of them on my machine right now! Let me know if that helps. ...Show All
Visual Basic Write specific error to a text file?
I have a vb.NET program that sends out emails, and I need it to write to a log file when it can't send emails to certain addresses. I need it to tell me what day/time, and what email address. I'm pretty new and I have never captured errors before. So far, I have the following error block: If _mailCounter.Text < MaxMessages Then 'DONT OVERLOAD MAIL SERVER Try System.Web.Mail.SmtpMail.Send(MM) Catch ex As Exception Err.Clear() End Try End If Any help is appreciated!!! Thanks! Tory Or Simply use the my classe to append the message to the text file My.Computer.FileSystem.WriteAlltext("MyLogFile", "Email to " & emailAddr & ...Show All
Windows Forms Error 1324: The folder path 'n/a' contains an invalid character?!
Hi all, I'm trying to build a setup application with Visual Studio 2005. Everything seems to work well, except when i run it, i got the error 1324: Error 1324: The folder path 'n/a' contains an invalid character. I really don't know what is wrong with it ! Any ideas ! Thanks ! Jonathan It seems that you try to create a folder, or access a folder called n/a , which is not possible since the slash (and the backslash) are invalid characters for folder-names and thus, they cannot be used to specify a folder - name. (Try to create a folder in Windows Explorer that's called n/a). Can't you debug it, and see where it's exactly going wrong ...Show All
.NET Development Ask about answer detection algorithm
Hi all. I make an IVR using TAPI 2.0 and voice modem. My Voice Modems Do Not Provide Answer Detection, so when it make an dial out call, it can't tell when a dialed party has actually answered the line and after dialed my application get the connected signal from TAPI callback function, but in real it is Ringing signal. Problem is my application proccessing next task, which ought to just have done when the call has been answered. I need an answer detection algorithm to know exactly when the call out is answered to do the next job. Have any one could help me. Thanks This is not related to managed networking. Please take a look at other forums for this question at http://www.microsoft.com/communities ...Show All
