Benj78's Q&A profile
Windows Forms Scroll Event in List Box
Hi how would i handle the scroll event in List box. Thanks and Regards Jayesh Are you asking this because you want to dynamically load list view items as they scroll into view Perhaps you should look into using virtual mode in the list view, which will notify an event when it needs a list view item. http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=191033&SiteID=1 ...Show All
Visual Studio Tools for Office CommandBarButton Click event is not raised
Hi, I have several buttons in a toolbar in an Outlook Addin. All buttons are members of the class (The instance of the class), so the garbae collector does not collect them, and they are kept referenced. When clicking them, they work fine. The problem is when the toolbar is wider than the window, so some buttons are hidden. When i click the button, it does not raise the event, but only replaces it with a button that is not hidden. When clicking it again (after unhiding it) it raises the event. Any help Adrian Looks like I may have spoken to soon on this one, because it looks like you are correct, in that once the button is selected, it also performs the action (both in Word ...Show All
Visual FoxPro Printing Rich Text
Hi, all Can anyone tell me if I cam print th content of a Rich Text Box In case I can't, is there any way to print formated text (i mean, with justification, italics, bolds, etc..) Thanks a lot David.Cheung wrote: ... Starting from this year, all the new project started to use HTML in most of the reports. so, I use the HTML format instead of RTF as the source text. ^O^ Hi David, how do you incorporate HTML in reports Thanks, Danny. ...Show All
Visual Basic Accessing Windows Forms Class
I have found the following problem: 1. I have a Form1, which has a non-private constant named TestConstant. 2. I have a Form2, which on Load will retrieve the constant from Form1, using the syntax of Form1.TestConstant. 3. The compiler generates a warning about accessing constant via an instance. Most likely is caused by the default instance of Windows Forms. Any way to remove this warning (by accessing the class not the instance) Hi, have you considered something like using read-only shared variable instead of constant Public Shared ReadOnly TestConstant As String = "TestConstant" Andrej ...Show All
Visual C# Writing to a custom event log
Hello I've created a custom event log which I want my application to write events to. When I run my application it writes logs to the custom event log and also to the Application log. This is OK but all log entries in the Application log are also written to my custom event log. Is there a way to prevent other application to write to my custom event log I've created my custom event log like this EventLog .CreateEventSource( "MyCustomEvtSrc" , "MyCustomEvtLog" ); I write logs like this EventLog log = new EventLog ( "MyCustomEvtLog" , "." , "MyCustomEvtSrc" ); log.WriteEntry( "Log message" ); Thanks for your help, /Ulf ...Show All
Software Development for Windows Vista Stop excution of compisite activity but not terminate parent workflow!
Hi all, I have to implement a big workflow. I have to divide this big WF into some small part and add them to custom activity. In custom activity, i want to terminate (or stop) execution of it. I try to use Terminate Activity for this, but when i do it, not only the custom activity terminate but also the parent workflow terminate to. How can I fix it I need to do the same, you could do it The problem is that each activity runs in a different thread, and it is provided by the scheduler service. To stop a running activity you need to abort this thread, but it isn’t accessible. Did you find another solution ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Problems with UNICODE.
Hi all Im using Visual C++ 2005 Express Edition.. Im trying to make a little game and when i was first doing it i was using the MULTIBYTE character set.. and i could display numbers for ( FPS , SCORE , ..ect ) using the DirectX 9 DrawFont and it worked fine.. Then i wanted to add some sounds to my game and i had to change the Character Set to UNICODE.. for the directx helper files DXUT, DXUTsound, ect... and now i can't display any numbers, I was wondering how to display numbers (int , float ..ect).. I have tryed converting the number into the LPCWSTR but i can't work it out being a newbie to C++ and DirectX SDK or if there is some way to use the MULTIBYTE char set and still have sounds in my game... this is ...Show All
Windows Forms found listbox's selecteditems(display)--associated values(value member)
Hi, I have a listbox with displaymember and valuemember I need to fetch all the valuemember values from the listbox selected items. I'm able to fetch the display member like the below. System.Windows.Forms. ListBox . SelectedObjectCollection mgr = new ListBox . SelectedObjectCollection ( this .lstManager); if (lstManager.SelectedItems.Count >0) { foreach (System.Data. DataRowView dr in mgr) { string s=dr[0].ToString(); } } Unable to proceed further. Please help me venp-- HI, I found the way to fetch the value for all the selected listbox items. Here is the code. System.Windows.Forms. ListBox . SelectedObjectCollection mgr = new ListBox . SelectedObjectCollect ...Show All
Windows Forms Move Column in DataGrid
Hi, I'm using DataGrid where I need to move the last column to the first(Remember it is a CheckBox Column that I need to move) and the rest by one position(i.e 2nd to 3rd, 3rd to 4th....). I require a code snippet or atleast an idea about implementing this. Thanks Thanks Knowles, but, I need a Function which sets the transition of columns in the DataGrid ...not the DataGridColumnStyles...Hope to have a function from you. Thanks again ...Show All
Windows Live Developer Forums MSN Messenger API without Windows Messenger
Hi all, I'm very confused right now. I made an application that grabs the contact list of MSN Messenger and imports it into an address book. This works fine untill I remove Windows Messenger for the system. I've clients that use MSN Messenger without Windows Messenger and the tool doesn't work for them. Is there a way to grab the contact list without Windows Messenger (and the Messenger API) installed Does anybody has some great code snippets What's language you use I did a Delphi VCL component here . I think I can convert it to other language if you like. ...Show All
Visual Studio Express Editions problem with .exe file of vb.net project
why cant i open my vb.net project .exe file on another computer(were connected on a network) How can i make an installation file for my vb.net project so that i can install it on a remote pc. thanks very much Check out the following web cast which will run you through the entire process of creating a clickonce deployment. http://dnrtv.com/default.aspx showID=8 Watch this and you'll have a good understanding of deploying you vb express applications. ...Show All
Visual Basic find a character in string
Hi I have a variable server = "sqlmodl2\sql_modl2" I want server2 =modl2 i.e I want to return all the characters after the _. Can anyone help me. Here are two ways to do it: Dim server As String = "sqlmodl2\sql_modl2" Dim server2 As String = Split(server, "_")(1) Debug.Print(server2) server2 = server.Substring(server.LastIndexOf("_") + 1) Debug.Print(server2) There are probably several more ways to do it as well. ...Show All
Visual Studio Express Editions NEW to prgramming/VBE
OK I'm having a hard time trying to get a program together, I thought I was clever enough to cut and paste here and there and to get the thing done. Well, I'm clever enough to see that I can do it, all the books and articles I've found aren't of much help, because I'm starting from scratch, don't care about the web and I have loads of string manipulations to do, basically I'm trying to build a custom log_files interpreter. So here is the questions: Were can I find decent documentation/books that I can source, document myself and get going THX to all that can answer or provide guidance PAOLO Exactly.... the fortran I knew at dec was quit sophisticated and I never use ...Show All
Visual Basic vb6 to vb.net
hi everybody, Is there any easiest way to do conversion If any of you have good experience in Converting the applications from vb6 to vb.net, Please give me your suggestions. Regards A.K Open the VB6 project in Visual Studio - the conversion wizard go through the upgrade process. Note that this is not a light undertaking except for the most trivial of applications - you will still need to go through the code almost line by line to ensure it still does what you want. The converter is more of an 'interpreter' than anything: it won't take advantage of the more powerful ways of doing things in .NET. Expect to have at least a dozen (or several hundred) warnings and errors that you may ne ...Show All
SQL Server Checking Job Status using T-SQL
Hi. How can i check the job status using SQL Query Raja, I meant If the job (last execution/historical) executed successfully or not..From the above query.. KangKang, use RUN_Status column to find the status 1=Executed Successfuly 0=Failed with error When Failed you can find the details from the Message Column ...Show All
