Software Development Network Logo
  • Visual C#
  • Visual J#
  • Windows Forms
  • Visual Basic
  • VS Express Editions
  • Windows Vista
  • Visual Studio
  • Visual FoxPro
  • VS Team System
  • Smart Device
  • SQL Server
  • Architecture
  • .NET Development
  • Visual C++
  • Microsoft ISV

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

mr_ship

Member List

Henna
Anu Beniwal
reyghie
Aivars
John Kamp
El Cangry
Gad_appraisal
nimi
Matthew Ferguson
Spence Gong
Adam Warcholinski
jessj
RELJR
crazy
Zeesha
Salim
Ron Snoke
Dishan Fernando
Dud
Jenna Lee
Only Title

mr_ship's Q&A profile

  • Visual C# PORT in .NET Framework 1

    In order to complete my project that has been used .Net Framework 1.1, i need some information and solution about this : 1. I need to communicate with a device with COM interface, how to handle a COM Port connection in this Framework 2. Will my coding compatible with .Net Framwework 2.0 without any changing Thanks.. :) Wiltek Ghozali wrote: 1. I need to communicate with a device with COM interface, how to handle a COM Port connection in this Framework Here are two great articles about Serial communication in .NET 1.x: Use P/Invoke to Develop a .NET Base Class Library for Serial Device Communications Serial C ...Show All

  • Visual Studio Tools for Office Opening multiple VSTO enabled WordML docs

    Hi, I am creating wordml files in managed code, attach my VSTO solution using ServerDocument, and open them using Process.Start ("myWordMLFile.xml"). The odd thing is that if word is already open, the wordml file is not opened. Process.Start seems to work fine, because MSOXMLED.exe shows up for a second in the processes, but the file is never opened. When there is no word process running, everything works fine. Does anybody know a solution *without* starting "winword.exe" with the filename as argument This app will be widely deployed and I don't want to mess around with the different installation pat ...Show All

  • Visual Studio Team System VS 2005 Beta 2 CDs instead of DVD

    I was just wondering if CD images were available for download somewhere instead of the massive DVD image.  I don't have a DVD burner on my work machine. If I have to go with the DVD image, I know I can extract the files and then burn CDs. However, is there a layout somewhere that tells me what will fit on what CD Thanks. MSDN Subscribers (not sure if there's a level restriction or not) will receive DVDs in a forthcoming (June ) shipment. These images were not complete until early April, which was too late for the May shipment. MSDN Subscriber Downloads simply provides you earlier access to the bits ...Show All

  • Windows Forms TextRenderer and TextRenderingHint

    Am I missing something or does the new TextRenderer.DrawText method not support the TextRenderingHint All of the text it draws is pixelated instead of being anti-aliased. I'm passing it a graphics object with the TextRenderingHint set to Anti-Alias but that doesn't seem to work. Also, the TextRenderer output doesn't look anything like a label control with the same text. What is the point of this new class again Ok... If I set the TextRenderingHint of the graphics object to AntiAlias, the TextRenderer output looks like ***. If I set it to SystemDefault, it matches the look of a label control with the ...Show All

  • SQL Server An error has occurred while establishing a connection to the server.

    I recently re-formated my personal server and installed SQL Server 2005 on it instead of 2000 which I previously used. Now, I have imported the databases to the new SQL Server 2005, but I seem to get the following error when trying to access the database (from my asp.net page)   I've googled and searched the forum, without any luck. Now I was hoping for someone to answer this question, or perhaps guide me in the right direction.   Note: I've tried 5-6 different solutions that I found on the net, in vain.       Server Error in '/ph' Application. ---------------------------------------------- ...Show All

  • Visual C++ Background color/image in CTabCtrl

    Hi I'm trying to paint a color or put an image in the background of my tab control (a derived class of CTabCtrl ) with no success so far. +--------------------------------------------------------------+ | TAB A \ TAB B\ TAB C#################################| +--------------------------------------------------------------+ | | | | | | | | | | | +--------------------------------------------------------------+ I managed to have something in the viewable area (Placing a dialog for each tab pane with background image ). So, the only thing I have to take care of is the area where '#' is painted and the tab area. That is still the default gre ...Show All

  • Windows Forms controling dialog location

    I'm displaying a form as a modal dialog... Form f = new MyForm(); f.ShowDialog(); How do I control this dialog's location  I tried to create a Location object and specify the X and Y coordinates and assign it to the form's Location property, but that didn't work. Thanks You can use the StartPosition example: public Form1() { InitializeComponent(); StartPosition = FormStartP ...Show All

  • .NET Development bug in Int32.Parse

    In Visual Studio 2005, the following throws a FormatException and it definitely shouldn't.  The same code works fine in Visual Studio 2003. This is the version that I am seeing the problem, running on XP:     Microsoft Visual Studio 2005     Version 8.0.50727.42  (RTM.050727-4200)     Microsoft .NET Framework     Version 2.0.50727     Installed Edition: Professional int x = 0; x = Int32.Parse("0")        // throws FormatException x = Int32.Parse("00")       // works fine x = Int32.Parse("000") & ...Show All

  • .NET Development How to programmatically release logical port ?

    Hi All I am developing an application host (Remoting listener) from C# v1.1 for windows clients. I am using logical port ( say 9000 ) for my server to listen for the client’s request, I need to release/close the logical port when ever I restart my listener, so, how can I programatically release/close any logical port used by my application Thanks! Regards, Karthikeyan I'm afraid I'm going to have to ask in what way you are using this port (ie how you are initializing it) as that will tell me how best to free it. Given that you are using remoting... if y ...Show All

  • .NET Development Getting truncated socket bytes

    Hi, I am listening to a port for data but I am not able to recieve whole data, I only get truncated data. Client sends me data that exceeds 40K and the data I recieve in my callback function is always 8K to 9K. I dont get the rest of the data. I think the data size is too big to come in one go and hence it comes in 2-3 sub-packages but my call back function only gets called once hence I am getting truncated data. I am sending the code...Is there anyway I can recieve complete data sent by client Public Function ConnecttSocket(byVal iPort as integer) Dim _sHostName As String Dim _iLocalPort As Integer = iPort Dim LocalIp( ...Show All

  • Visual Basic random command

    Hi I'm ussing the random command but I only want it to pick numbers between 8 and 640 and can be multiplied with 8. is this possible Dim TmpRandom As New Random() Dim Value As Integer = TmpRandom.Next(8, 640) ' generates any number betwen 8 and 640 ' now if you want to make sure the number is divisible by 8 make sure you do this Value = CType (Value / 8, Integer ) * 8 ' This spits out Numbers that are divisible by 8 within the specified range. ...Show All

  • .NET Development .NET Runtime 2.0 Error Reporting

    Hi, My application is running on 65 PC. After a few hours, this applications crash on 2-3 PC. I get no exception in my log files. I set the Application.ThreadException and AppDomain.CurrentDomain.UnhandledException exception event handlers. The last one is triggered with 'System.NullReferenceException: Object reference not set to an instance of an object.' but there is no stack trace available. I got no dump file, no popup window. I only get the following entry in the event log : Event Type: Error Event Source: .NET Runtime 2.0 Error Reporting Event Category: None Event ID: 1000 Date: 13/05/2006 Time: 21:53:39 User: N/A Computer ...Show All

  • Visual Studio Express Editions Preventing a Null

    Hello Folks, This is my first post, so please forgive me any mistakes. I have a form I have connected to a menu that allows the user to add color names that appear in a combo box on the main form. All works well. If the user tries to add a new record and save it, alas an error. I expect that because the two fields in the DB are set to "Do not allow Nulls." I want to build in some error checking so that when the user tries to save nothing (Null), a message box appears and allows them to correct the mistake. Anyone got any pointers for me Remember, I am very new to programming and this answer is probably stari ...Show All

  • Windows Forms How to embed child datagrid into its parent in windows forms

    Hi  I want to embed a child datagrid into its parent grid in windows forms so that the user can select some rows in the child for processing. I tried adding a relationship between the two tables but the datagrid shows a + sign which takes me to a new datagrid. I want to display the child datagrid into the parent grid. I searched a lot in the net and could find one similar in Sync fusion. I don’t want to purchase the same since that involves licensing and maintenance problems. Can anybody help me in this regard and provide a solution for the same ASAP as my project deadlines are nearing.  I'm using .NET fr ...Show All

  • .NET Development .NET Runtime 2.0 Error Reporting

    Hi, My application is running on 65 PC. After a few hours, this applications crash on 2-3 PC. I get no exception in my log files. I set the Application.ThreadException and AppDomain.CurrentDomain.UnhandledException exception event handlers. The last one is triggered with 'System.NullReferenceException: Object reference not set to an instance of an object.' but there is no stack trace available. I got no dump file, no popup window. I only get the following entry in the event log : Event Type: Error Event Source: .NET Runtime 2.0 Error Reporting Event Category: None Event ID: 1000 Date: 13/05/2006 Time: 21:53:39 User: N/A Computer ...Show All

©2008 Software Development Network