John Boggess's Q&A profile
Smart Device Development picturebox help
I am dynamically creating picture boxes and adding them to a panel. I want to add clickability to these pictureboxes. Does anyone know how to do this. So far I have picture = "\SD Card\APIS Mobile\ApisPics\ApisQuestionScreens\" + picture Dim bmp As New Bitmap(picture) picturebox2.Image = bmp Panel1.Controls.Add(picturebox2) Now I want to be able to click on the picture and call another form to show a larger picture. Any help will be appreciated. Use AddHandler Statement . For example : Addhandler picturebox2.click, addressof button1_click ...Show All
Windows Forms Generic BindingList copy constructor bug
Hello people, I believe i have found a bug in the Generic BindingList copy constructor. The following example code doesn't show all my code, just enough to show you my issue. Whenever i copy the bindinglist and try to remove an item from the copied list i get an exception: An unhandled exception of type 'System.NotSupportedException' occurred in System.dll Additional information: Specified method is not supported. Although i have given permission to remove items from the copied list via orderList.AllowRemove = true; i still get this message!. When i change the AllowRemove property for the original list to true then all goes well, although i'm removing items from my copylist!. Whenever i do not use the copyconstructor but just copy the ...Show All
SQL Server Merge Replication / Metadata Cleanup / Help!
At a client site we just had a customer away on holidays, came back and went to replicate and received the error. I understand why this would happen after the default 14 days, and the obvious fix to prevent it from happening in the future is to extend the period, however I am hoping someone can offer me assistance on the best way to correct the issue now Error is: The Merge Agent failed after detecting that retention-based metadata cleanup has deleted metadata at the Publisher for changes not yet sent to the Subscriber. You must reinitialize the subscription (without upload). The problem is we cannot lose the data that has been entered on this machine since the last replication. Writing scripts to manually save and pump this d ...Show All
Visual Studio 2008 (Pre-release) WPF Extensions for VS2005 Problem
I have downloaded .NET 3.0 final edition and installed VS2005 but the WPF extensions setup says it did not detect .NET 3.0. Does anyone know when there will be a release of WPF Exts. that supports the final .NET 3.0 nat1192 wrote: I have downloaded .NET 3.0 final edition and installed VS2005 but the WPF extensions setup says it did not detect .NET 3.0. Does anyone know when there will be a release of WPF Exts. that supports the final .NET 3.0 I have the same problem ...Show All
Visual Studio 2008 (Pre-release) LINQ and .NET Runtime Version
Hi! I know that it is impossible to load different versions of the .NET Runtime into one Win32 process. We are writing components for a host, that is working with the .NET Framework 3.0 (and therefore .NET Runtime Version 2). Our components should use LINQ. As far as I know LINQ CTP preview is working on the same .NET Runtime version. But what about the final release Will the final release still operate within an environment that hosts .NET Runtime Version 2 Thx in advance, Jorn At this point a compiled LINQ application runs on top of the 2.0 framework with some additional query libraries dedicated to support the various LINQ components (SQL, XML, Sequence, etc.) The initial goal was to continue to leve ...Show All
Smart Device Development Smartphone C# Applications => Can all PPC applications run on a smartphone?
What truly is different between smartphone and pocket pc. If we have 2 cellulars (1 smartphone/1pocket pc) aside from the touch screen what is different If the processor potentially different (restricted to arm on PPC) Are libraries provided w/ the OS different What other design considerations need to take place for an application port Thanks again! I know you guys should be all over this question! Cheers! From a .NETCF perspective there are a couple of key differences:- .NETCF v1.0 will run on Windows Mobile 2003 and above on both Smartphone and Pocket PC, v2.0 requires either Windows Mobile 5.0 or Pocket PC 2003 - not Smartphone 2003 .NETCF for Smartphone has only a subset of UI components - if you creat ...Show All
.NET Development The new configuration design in 2.0
Elsewhere I wrote, regarding putting an XmlDocument into the config file "surely, if anything, this ought to be easier than de/serializinging a binary object into XML and then saving it". I've read more and am pretty much concluding that in spite of the fact that this seems to make sense, the reality is the precise opposite - instead of being simple, it's actually impossible to directly place an XmlDocument/XmlNode into the config file. Which brings up a much larger question for the community at large regarding the design for this configuration stuff. Isn't all of this solely for the purpose of putting some arbitrary XML into app.config under a given application name And doesn't the framework already have great facilities for producing XM ...Show All
Visual C++ malloc or new?
In our application there are constantly being allocted and deallocated small amounts of memory. We use VC8. Should we go for malloc/free or new/delete (Speed is essential). malloc(100); new char (100); Is there any difference thanx Soren In my opinion it is difficult to give a precise answer to your question. It depends on the implementation of run-time library and other factors. For example, if new is based internally on malloc , then we can expect that malloc works faster. Otherwise, if malloc is based internally on new , then new should work faster. If we suppose that new and malloc are implemented as separate routines, then it depends on used allocation algorithms. These routine ...Show All
SQL Server ReportingWeekToMonthPattern possible values
Hi, I'm working with a server Time dimension which one of it's many purposes is to provide sales analysis by Reporting week. I'm using the property ReportingWeekToMonthPattern to divide the months in weeks but none of the default values is good to me {4-4-5 | 4-5-4 | 544}. According to the business rules, the pattern is not that regular and instead, I need this exact pattern that includes the 12 months of the year: 4-4-5-4-4-5-4-5-4-4-5-4 That is, the first half of the year with a 4-4-5 pattern, and the second half with a 4-5-4 pattern. Is this possible to set in the dimension Thanks in advance, RAH I don't think you can do this using a server time dimension. You would probably need to create a dimension table and bu ...Show All
Visual Studio Tools for Office Office 2007 Add-in permission problem
Hi, I've written an Outlook 2007 Add-in with VS2005. When I used VS to deploy the add-in, everything was fine. Now I tried to deploy the add-in on a machine where no visual studio is installed. I're read this and I placed the dll file to a folder and got through the granting wizard of .Net 2.0 configuration. But when I tried to add my VSTO add-in via COM add-in browser, I got this message: <myadd-in.dll> is not a valid Outlook add-in. What else should I do Hi, Thanks for the hints, I looked for the original setup project and installed my add-in. However, it was inactivated by Outlook, and I can't find a way to make it active. The program contained no errors so I don't get it why inactivated. The link you gave me says the necess ...Show All
Visual C# monitoring registry and folders
Hello, I want to know (using C# 2005,) how would I monitor changes or additions made to selected registry keys and to certain folders in Windows XP Regards, SSZ You can use RegNotifyChangeKeyValue API Function to monitor Registry Key you can see an example of this here RegistryMonitor - a .NET wrapper class for RegNotifyChangeKeyValue For watching Folder .Net Come with FileSystmWatcher component you can use it ...Show All
.NET Development DoEvents not working?
This code doesn't seem to be working right. What I need to do is watch for left and mouse downs, and when both are down at the same time, show a window. This class should do it, but isn't working. The processMessage variable tells the mousehook to send the message to the appropriate window or to consume it. Public Class mouseComboWatcher Private WithEvents mh As WickedOrange.MouseHook Public Event ComboPressed() Public Event ComboReleased() Sub New () Me .mh = New WickedOrange.MouseHook End Sub Private leftMouseDown As Boolean = False Private rightMouseDown As Boolean = False Private comboDown As Boolean = False Private Sub mh_Mouse ...Show All
SQL Server Reporting Services custom authentication and web reportviewer - familiar question
This is a subject that has been brought up before but I have not seen a definitive answer/solution. We have implemented a custom authentication extension (forms authentication) for reporting services and it has been working just fine under "normal" conditions; "normal" being users logging in, viewing reports, and then moving on. Recently some reports were created by our report group and they contain Dundas gauge controls for "dashboard" style reports. These reports are meant to be up all day and they post back every few seconds because the data they present is mission critical. This of course exposed the inability of the reportviewer control to stay in the context of Report Manager when it comes to the cookie ...Show All
Visual Studio Team System Need Stand-In user account on Team Foundation Server
My company is hiring an outside firm to complete a piece of development. I need to track work item progress in Team Foundation Server. Is there a way to add a 'strawman' user account that will represent the outside firm's work items Thanks. You could create a John Doe account in Active Directory and then add that user to a Team Project group such as Contributors. Then assign all their workitems to that user. If your company has policies against creating this new user, then possibly creating a local use on the TFS machine and add the user in that way. ...Show All
Windows Forms dataview count doesn't shows properly.
Hi I used dataview for a subset of rows , from a datatable. In that subset, there will be zero quantity and non zero quantity rows . and there may situation to move quantity value from one row to another row.(may be quantity can be moved from an existing row to a newly added row). after that non zero quantity rows has to be deleted. the dataview.item(i).delete works fine for, if I have more than two rows(either non zero or zero). The Problem is if I have Only one zero quantity row and another non zero quantity(newly created. quantity is transferred from that zero quantity to this new row). If I made attempt to delete that zero quantity rows. it deletes both row.(ie., the dataview.count shows 0 inste ...Show All
