Markus U's Q&A profile
Visual Studio Tools for Office Batch deletion of contacts
I'm writing an add-in for Outlook to synchronize the contacts from our company intranet with the Outlook contacts list. The program first deletes all old contacts. It does so by getting a list of all contacts, then cycling through them and deleting them if OrganizationalIDNumber = null. Is there a quicker way to do this, such as a "Batch" search, that would allow me to remove them all at once When we're dealing with several thousand contacts, it takes a while to delete them all. I do not know of a more optimal way to do this, than enumerating over the contacts. You might be able to get find ei ...Show All
Visual Basic Porblem With GroupBoxes
I have two group boxes. I put GPBOX 1 Below and GPBOX2 Ontop. But Gpbox2 become inside Gpbox1. So if i move the Gpbox1, Gpbox2 also moves. So can i seperate both of them even though one of them is inside another one If 2 is inside 1, then 2 moves with 1 try moving 2 out of 1, and you can move them independantly ...Show All
Visual Studio Express Editions compile error in IDE generated code
Hi, i wrote an application using vc++ express beta, now I'm using the full version. When i compile my program i get this error : c:\documents and settings\wims\desktop\careertool.net_0.3_wip\careertool.net\Form1.h(1237) : error C2440: '=' : cannot convert from 'const wchar_t ' to 'System::Windows::Forms::DataGridViewTextBoxColumn ^' Reason: cannot convert from 'const wchar_t *' to 'System::Windows::Forms::DataGridViewTextBoxColumn ^' No user-defined-conversion operator available, or Cannot convert an unmanaged typ ...Show All
Visual Studio Express Editions Help converting Function to C#
Im a little lost to say the least. Trying to compare 2 pictureboxes. Are they the same. Thanks Public Shared Function ImagesAreTheSame( ByVal bmp1 _ As Bitmap, ByVal bmp2 As Bitmap) As Boolean 'If the images aren't the same size, quit If bmp1.Size.Width <> bmp2.Size.Width OrElse _ bmp1.Size.Height <> bmp2.Size.Height Then Return False Else 'Convert each image to a byte array '.NET.NET() Dim ic As System.Drawing.ImageConverter = _ New System.Drawing.ImageConverter Dim btImage1() As Byte = New Byte (1) {} btImage1 = CType (ic.ConvertTo(bmp1, _ btImage1.GetType()), By ...Show All
SQL Server How to add a TCP endpoint in SQl Server 2005 Beta 2
Hi All, I would like to know the syntax of creating an endpoint in SQL Server 2005 Beta 2 version. The syntax which i am using is as follows: create endpoint yuk1 state = started as TCP ( LISTENER_PORT = 4022 ) FOR SERVICE_BROKER ( AUTHENTICATION = CERTIFICATE trpyuk1 ) And i am getting the following error : Incorrect syntax near 'CERTIFICATE'. Regards Deepak Hi, Ok, thanks for the update. SO is this syntax ok for the June Community Version Regards Deepak ...Show All
Windows Forms What route for advanced UI? Controls or GDI Graphics?
Hello. I am about to embark on creating some advanced UI for my application which will end up (I hope) looking and feeling like the Outlook Calender UI (Organising a meeting, viewing appointments etc.) I would very much like to hear opinion on what is the best route to take for this. Should I try to create a custom controls consisting of&n ...Show All
Visual Studio Team System Not getting "Create Unit Tests" window or coverage results for C++ class library project
Hi, I am using the 180-day trial version of VS2005. Here are the unit-testing problems I'd like to get some help with: I have a C++ class lib project in my solution. Problem (1) When I right click on a method name I don't the the "Create Unit Tests" option on the pop-up menu. I got around that by adding a dummy C# project and right-clicking on a C# method name. Problem (2) After I ran the unit tests, there is no code coverage result for the C++ tests. Thanks in advance. -me- For your first issue your VC class lib project has to be managed project and use /clr:saf ...Show All
Visual Studio Express Editions What is Visual C# Express Edition ?
Hi, Please help me on this topic. C# Express Edition is a free , easy-to-use and easy-to-learn tool to build dynamic Windows applications, Web sites, and Web services. For more : Express Editions FAQ and C# Express Edition Developer Center . ...Show All
.NET Development DataSet Select question
Hello to all! I'm having a problem with one select to a dataset. I'm questioning the Active Directory using the System.DirectoryServices and saving the results in a dataset for further use and a safeguard for the possibility that it goes down... This is the first part, on the other hand, I want to add a column to the dataset.table where it will be calculated an expression, something like: dsUtilizadoresADLocal.Tables(0).Columns.Add("Filtro", Type.GetType("System.String"), "SUBSTRING(ADsPath,CHARINDEX(',',ADsPath,0), LEN(ADsPath))") The problem is in the function charindex, it says it's not a valid function... Is ...Show All
Visual Basic Menu Item Checked Property Application Setting
I'm trying to bind the Checked property of a menu item to an application setting. But it just doesn't work. The item always has the checked state that I give it at design time. This works OK when I try it for a checkbox but not for a menu item. Here's the autogenerated code I have: Me .mnuasd.Checked = Global .WindowsApplication1.My.MySettings.Default.MenuChecked Me .mnuasd.CheckOnClick = True Me .mnuasd.Name = "mnuasd" Me .mnuasd.Size = New System.Drawing.Size(152, 22) Me .mnuasd.Text = "asd" Friend WithEvents mnuasd As System.Windows.Forms.ToolStripMenuItem What am I doing wro ...Show All
Visual C++ smtp authentication howto?
Hello everyone. I'm using VC++ 6 and trying to implement mail sending function into my application. But I can't realise, how to use smtp-authentication Is there some manuals, tutorials, code samples Thank you for any suggestions. Encaps wrote: Hello everyone. I'm using VC++ 6 and trying to implement mail sending function into my application. But I can't realise, how to use smtp-authentication Is there some manuals, tutorials, code samples Thank you for any suggestions. See http://www.naughter.com/smtp.html (source code included) ...Show All
Visual Basic run program without logon windows
hi, I have a tray application ready to running when windows start but this only happens when a user logon windows. (adding to registry key) How can I start the program whitout user logon windows (when computer is locked) Thanks. If you are not against the idea of losing your tray icon (or having the tray icon be located in a separate application), you may want to look at building your core application into a Windows Serivce . ...Show All
Windows Forms Displaying non-characters in text
For an app I'm building, I have a few icons that need to be placed in blocks of text. As far as I know, they aren't in any standard character sets. How should I go about doing this It would be something like: "Find the tab labled with a <<green square>>." I need to actually display the green square or red ...Show All
Visual Basic strange multi thread behaviour
why would putting one thread to sleep cause the second thread to sleep as well one form (UI) with two worker threads (simple counters) **************************************************************** Imports System.Threading 'import the threading namespace Public Class Form1 Inherits System.Windows.Forms.Form Dim thrd, thrd2 As Thread Delegate Sub ChangeTextControlDelegate(ByVal aTextBox As TextBox, ByVal newText As String) Delegate Sub SCdelegate(ByVal iterations As Integer) 'a delegate for the secondary thread's subroutine "count" ...Show All
Smart Device Development Printing from mobile device and compatibility
Hi, First I would like to tell u wat I am doing actually I am creating a windows form for device application which is link it to sql mobile edition 2005. So is definitely running on .net cf 2.0. So my question will this application of mind which is running on VS2005 will work on a device which is running window mobile 2003 Secondly the form which I am creating have some of the form component like text input and combo box etc etc. So once the form is filled actually I will have a button at the bottom of the form labeled as "print" which need to print my current form on a mobile printer. What is the best mobile printer that ...Show All
