Search results for query: *

  • Users: gchq
  • Content: Threads
  • Order by date
  1. gchq

    Question Getting an image into a DataGrid

    I have tried every which way to get an image into a DataGrid... Any ideas where I am going wrong? Thanks (I know the variable is called DGV - winforms habit, but it is a WPF DataGrid) Public Class DGVx Inherits DataGrid Public Overrides Sub BeginInit()...
  2. gchq

    Question Adding item from a ResourceDirectory

    This one is driving me bonkers... I want to add a status bar to the last row on a dynamically build grid . I think I have found the method for accessing the Resource Directory Dim vResource As New ResourceDictionary With vResource .Source = New...
  3. gchq

    Question Clearing selected rows in DataGrid

    The code below works fine the first time it is loaded, but if the navigate back button is used the selected row remains the same as the last input - I have tried a myriad ways to clear it, but sadly nothing seems to work.... Try Mouse.OverrideCursor = Cursors.Wait...
  4. gchq

    Question Access of shared member, constant member...

    Hi there We will probably be moving from WinApps to WPF soon so I getting my head around a few elements. When using Grid.SetColumn and Grid.SetRow I get the following error - it works OK, but.... Access of shared member, constant member, enum member or nested type through an instance...
  5. gchq

    Question StartupNextInstance - e.BringToforeground not firing

    Hi I have ClickOnce app that is set as a single instance app. In ApplicationEvents there is this Private Sub MyApplication_StartupNextInstance(sender As Object, e As Microsoft.VisualBasic.ApplicationServices.StartupNextInstanceEventArgs) Handles Me.StartupNextInstance...
  6. gchq

    Question SetDelimiters as variable

    Hi there I am attempting to set the delimeters for reading a csv file to a variable (in case it is not seperated by a comma) so that in Reader.SetDelimiters(","c) "," can be set as a variable - I have tried a number of ways but the character literal is the problem. Thanks
  7. gchq

    Question Query XML

    I am attempting to return the value for "productID" (850352) from the following XML where "locName" (6576) is supplied in the query. Any help would be appreciated.... <?xml version="1.0" encoding="UTF-16"?> -<vps> -<vendorProductSets> -<vendorProductSet version="1" vendorID="81"...
  8. gchq

    Question MS Word Late Bindings

    Hi there I am attempting to rework some MS Word 2000 code to work with Late Bindings, but adding a document to word.documents is giving me some grief. The only examples I can find involve opening an existing word document... Here is the existing code that works with Word until you hit 2007...
  9. gchq

    Question Cannot access a disposed object.

    When a tab panel is loading I have the following lines of code If MainSS Is Nothing Then MainSS = New CustomControl.SS_Label End If TabPanel.Controls.Add(MainSS) On rare occasions it will throw an error Cannot access a disposed object...
  10. gchq

    Question ListBox blues....

    So here's the thing. The code below moves items up and down in a listbox and works fine until, it seems, the selected item is below the scrollbar then nothing happens. Any ideas please? Private Sub Reports_ListBoxMoveUp(ByVal LB As ListBox, ByVal DT As DataTable, ByVal DisplayName As...
  11. gchq

    Question Transparent DataGridView

    According to MS this should set the background colour of a control to transparent How to: Give Your Control a Transparent Background The trouble is setting the value .backcolor has no effect whatsoever - .backgroundcolor works, but not for transparent... What I need is for the grey background...
  12. gchq

    Question VS2010 Re-sign ClickOnce manifests

    Hi there We have a ClickOnce application deployed that is currently using a Test Certificate... I have just noticed that this certificate expires on 31 October - sigh... The question is - can I simply just click 'Create Test Certificate' once again to gain another 12 months, or is there some...
  13. gchq

    Question Singing the Environment.NewLine to <br /> blues

    In the past a text string saved to a DB and later retrieved to say, a div control, using .InnerHTML has preserved line breaks by using String.Replace(Environment.NewLine, "<br />").. For some reason that is no longer working. Have I missed some changes, or is it just Friday afternoon? Thanks...
  14. gchq

    Question WebBrowser Control stripping out query string

    Hi there. When a WebBrowser controls loads and navigates to a page it strips out everything after the '?' Any idea how to overcome this and pass the query string to the page? Thanks
  15. gchq

    Question ListBox problem - DisplayMember 'vanishes' when datasource updated

    Hi there I have a function that changes the text in the DisplayMember of a ListBox by first changing the DataTable DataSource and then reloading the datasource. Trouble is, editing any value under the first item causes the DisplayMember values to 'vanish' from sight - they are still there as...
  16. gchq

    Question Client to WCF throwing The request was aborted at dead on 60 seconds

    Running an async job to WCF it blows out at dead on 60 seconds with System.Net.WebException: The request was aborted: The request was canceled. at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult) at...
  17. gchq

    Question ProgressBar ProgressBarStyle.Marquee not working

    Hi there I have the following sub that displays the progress (the Animation speed is 50 - but I've tried with other values) Public Sub MainTabsLoad(ByVal Message As String) TabsStatuslabel.Text = Message TabsProgressBar.Style = ProgressBarStyle.Marquee...
  18. gchq

    Question Saving a file from MemoryStream

    I have a function that downloads an image from a DB, saves it to a Temp directory and passes the string back to an app that opens it. Ran fine with .NET 2.0, but throws a variety of exceptions in .NET 4.0. (like System.AccessViolationException was unhandled). It somehow seems to relate to the...
  19. gchq

    Timeout expired. The timeout period elapsed prior to obtaining a connection...

    Hi In the process of moving a WinApp from .NET 2.0 and and a WebService from WSE 3.0 on W2K Server to WCF and Server 20078 R2 I am now getting timeout errors... "Timeout expired. The timeout period elapsed prior to obtaining a connection from the pool. This may have occurred because all pooled...
  20. gchq

    WCF Could not load type problem

    Hi there Attempting to connect to a WCF service I am getting the following error:- VS2010 Server 2008 R2 Could not load type 'CustomValidator.CustomUserNameValidator' from assembly 'UserNameLibrary'. Description: An unhandled exception occurred during the execution of the current web...
Back
Top