Mike Haro's Q&A profile
Visual C# How to hide the 'Internal' namespace?
I find the 'System.Windows.Forms.Internal' namespace can't display in IDE. But I can use reflector tools to find it. I want to implement the same function, but I don't know how to do, so I need you help. Thank you! You need to make all the classes from your namespace 'internal'. Namespaces themself don't support the notion of public/private/protected/internal. ...Show All
.NET Development Getting caller information with a regular telephone
Hi all, I would like to know if its is possible when a person calls to me on my phone to get the phone number into VB. Is this possible En if it's possible can i do it with a standard 56k modem, or with other hardware En how can I get the phone number in VB I have a 'caller id' function my telephone line. I can see the numbers on the display on my phone. Sorry for my bad english Now I've been following this thread, he first put it in the VB forum since he wants to writa a VB application to handle this, but someone moved it here. ...Show All
Windows Forms Adding Menu Separator to a ComboBox
I would like to be able to add menu separator items to a ComboBox control. I'm guessing I'm going to have to create a derived class and override the OnPaint() method. Any suggestions on the best way to draw it Are there any existing examples of doing this - be great if I could avoid re-inventing the wheel! Many thanks in advance, John If you set the DrawMode of a ComboBox to OwnerDrawVariable, you can handle the MeasureItem and DrawItem events; you don't need to derive your own class. If you maintain a List of item indexes before which you want a separator, you can add some extra height to those items in the MeasureItem event, and draw the line in the DrawItem event, something like this: private ...Show All
Visual Basic How can I set the ListView Item no to show
Here is my code: visual basic code: Do While MyDataReader.Read Dim myItems = lvSelected.Items. Add (MyDataReader("PanelCode".ToString)) With myItems .SubItems. Add (MyDataReader("ExamName".ToString)) .subitems.add(MyDataReader("Price".ToString)) .subitems.add("1") End With Loop What I want to achieve is that when "PanelCode" field in my database had a value, I would not display it in the lvselected(listview), just the subitems.I had tried using this code: visual basic code: If MyDataReader("PanelCode".ToString)<>"" then MyDataReader("PanelCode".ToString)="" End If but it was giving me an exception stating that "Item" is ReadOnly.How can I possibly do this thanks... ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Input and Soft Coding
Hi. What I want to do is write a player class with an input function that has the player index as a parameter. My problem is I don't know what type a variable like this is. So I'm stuck at void input( whatgoeshere pIndex){ GamePadState gamepad= GamePad.GetState( pIndex); and so on... } ...Show All
SQL Server Monitor SQL Server status through Notification Services
Hello, I am new to Notification Services. My question is can notification services be used to monitor the status of sql server 2005 (stopped/started) and databases (online/offline). Thanks I probably wouldn't use NS for this. Use the Microsoft Operations Manager with the SQL Server MOM pack. The MOM pack is available at http://www.microsoft.com/downloads/details.aspx familyid=79F151C7-4D98-4C2B-BF72-EC2B4AE69191&displaylang=en . Or, you can use SQL Trace and event notifications to receive notifications of SQL Server events. See the Montioring Events section of SQL Server Books Online for more information. See http://msdn2.microsoft.com/en-us/library/ms190378.aspx . -Diane Larse ...Show All
Visual Studio Team System Query Date-Time granularity
Hi, if you need a Query that gives you all the changed workItems since yesterday, it's pretty straightforward: AND Changed Date > @Today - 1 But what if I want finer grain, like all the changes the last 6 hours Beats me. Any suggestions thanks, /Tomas The query builder in UI actually works with dayprecision set, which means it takes time based on operator and this is how mostly users expect to work. So time cannot be specified in UI, but if you use object model you can override this by specifying dayprecision parameter in Query object constructor. ...Show All
Visual Basic Comment Marker in a String
Hi: I want to include a comment Marker (') in a string. Does anyone know how Thanks. Hi, something like this Dim myString As String = "This is 'my string'" Andrej ...Show All
Visual Studio Team System Unable to create folder with correct path
Hi I was wondering if anyone here could help me out. I have a solution with many projects checked into the source control. The promlem occurs when I try to add an existing webproject to the solution. Originally I had a webproject with the path c:\temp\Webproject, but i chose to delete that from source safe to add a new project located in the right directory on my filesystem. The problem now is that every time I succed to check it in, the local path in the Source Control Explorer is still set to c:\temp ... I think I have tried every possible way to correct this, but with no luck. I have also tried to create a folder directly in the Source Control Explorer with the same name, and that dosnt work either, it even throws me an error with ...Show All
Smart Device Development Deployment and/or registration failed with error: 0x8973190e. Error writing file '%csidl_program_files%\test\system.wind
hi, I have wrote a simple C# device application program intend to call the function from the managed C++/CLI Class library in the form of *.dll file. The *.dll is named as pll.dll. My procedure is added the pll.dll file as 'add reference' and i Rebuild the C# device application project concurrently. Afterthat, i tried to deploy it to the PC Pocket emulator. Somehow the deploying process failed all the time and the error is like below. Error 1 Deployment and/or registration failed with error: 0x8973190e. Error writing file '%csidl_program_files%\test\system.windows.forms.dll'. Error 0x80070070: There is not enough space on the disk. Device Connectivity Component Is there anyone can help me to solve this problem and tell me the ...Show All
Windows Forms C# 2003 DataGrid rows count?
Hello I'm trying to count rows entered into datagrid and there is only metod .visiblerowcount which don't count properly all rows only that visible. Could anybody help with this. Funny but after I've wrote the quastion i found the answer this .dataSetForMyDataGrid.Tables["tablename"].Rows.Count ...Show All
Visual Studio Team System Filter for subscribing to event
Hi, I need to write a filter for subscribing to ProjectCreatedEvent. So to find out what fields I could include in filter, I opened tbl_event_type in TfsIntegration database. But event_type_schema cell againt ProjectCreatedEvent is empty. How should I write a filter if I want to receive notification when a project with name "SampleProject" is created. Manasi Probably there is no filter available for this event. See the post: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=480901&SiteID=1 ...Show All
Software Development for Windows Vista What happens to running workflows when the workflow is changed?
Hello, My website uses a workflow for document approval. I was wondering what happens to running workflow instances when I exchange the workflow for a different workflow. For instance, what happens if the current state of the document is removed from the workflow Or what happens if some transitions are different in the new workflow Or is the complete workflow instance stored in the database each time and will the new workflow only be used for the new instances created after the update I hope my question is clear... Hi Urs__Eichmann, Please look at this post, it maybe contains a solution for our problems: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=708524&SiteID=1&mode= ...Show All
Smart Device Development Access to Pocket Outlook from C# app
Hi, I have installed the windows mobile 5.0 pocket PC SDK. There is a sample code showing how to access pocketoutlook's data from a c# app. The sample application works fine in the emulator. But when I tried to build and deploy it for the device, the application thrown an exception "file or assembly name 'microsoft.windowsmobile.pocketoutlook' version 1.0.0.0 culture='neutral' PublicKeytoken=31bf3856ad364e35 or one of its dependencies, was not found". To my understanding, this exception means, the .dll file microsoft.windowsmobile.pocketoutlook.dll is a binary file for emulators only , not for devices. Am I misunderstanding this exception Can anyone suggest me how to access outlook for the real device (not emulator) or to use the ...Show All
Visual Studio Team System TFS Checkin gets chewed up with linked files
In my Solution I have several Projects. For easier Maintenance of the assembly infos, I have extracted part of the assemblyinfo.cs content into a separate solution item "globalassemblyinfo.cs", which contains the copyright, version number etc. This file is then included in every project with the "add existing item / link" command. When I try to check this solution into TFS, I get an error "Item has already been added. Key in dictionary 'globalassemblyinfo.cs', key in dictionary 'globalassemblyinfo.cs" and Visual Studio locks up with an invisible modal window (clicking the 'X' button shows "a modal window is displayed - vstudio cannot exit", but there's no Window visible). Checking in through the command line works, but even aft ...Show All
