ctlok83's Q&A profile
Visual Studio Express Editions WeatherTracker Web Service
Hi All, Been working my way through the book "Visual basic 2005 Express Edition: Build a Program Now!" (available as a download once registered). I've reached the last chapter where it references the Web Service for http://www.esje.com/WeatherService/Service.asmx however, this does not seem to be 'live'. Also, the service appears to be US based and I was hoping that someone can point me in the direction of another similar service which I can att ...Show All
Windows Forms If I don't close stream, will it cause memory leak when I want to display many images?
From MSDN, I was told that a stream couldn't be close during image lifecycle. So I can't launch stream.Close(), if I don't close stream, will it cause memory leak when I want to display many images public override void Display(ResourceData myResourceData) { MemoryStream stream=new MemoryStream(); try { byte[] myCotent=myResourceData.content; stream.Write(myCotent,0,myCotent.Length); stream.Position=0; PictureBox1.Image=Image.FromStream(strea ...Show All
Windows Forms Better design-time support for custom objects in collections
I think one of the biggest weaknesses in the WinForms (and ASP.NET, for that matter) design-time story is the lack of support for adding your own custom objects to designed collections. For instance, I once wrote a MenuItem class that could be ...Show All
Visual Basic ComboBox
Hi, I have a requirement where in I have to read the data from a particular database table the structure of which is something like this ... It has a Code column, Descript column, and a host of other columns. I now have to render a dropdownlist control(not sure if I can use this control out of the box) on a form and show the descript column value as the display member and an object containing the values of other columns as the ...Show All
Visual Studio Team System Team System Builds and dropping an MSI
Hi, I just started using Team System this week, and I've been able to muddle along fairly well, but I've just discovered something that to me is a real show stopper. And based on the searches that I have done in Google and in these forums, I'm beginning to think there is something fundamental I missing based on the small number of responses to this problem. My problem is that the team system build does not build the Setup projects ...Show All
Visual Studio Tools for Office The current .NET security policy does not permit ...
Hi there how can i fix my excel VSTO .NET 2005 Problem the error message is " the current .NET security policy does not permit the customization to run. do not change the security policy in your computer.... ". i tried to run the follwing BATCH file C:\WINDOWS\Microsoft.NET\Framework\v2.0.50215\caspol -pp off -ag 1.1 -url " file://D:\folder\ *" FullTrust -n File C:\WINDOWS\Microsoft.NET\Framework\v2.0.50215\caspol -pp on pause but didn' ...Show All
.NET Development occasional "Cannot generate SSPI context"
Can any of you experts help me out on this error “System.Data.SqlClient.SqlException: Cannot generate SSPI context” The weird thing is that this only happens occasionally, about 20 times per day [1] Client side: 1. What is the connection string in you app or DSN (please specify) "server=mydbserver; database=mydatabase; uid=; pwd=; trusted_connection=yes; Max Pool Size=10; Connection Timeout=60; Packet Size=4096; ; ...Show All
Windows Forms Designer-enabled Panel
Hi all, I subclassed the Panel control and added a little bit of custom functionality because I wanted to create the equivalent of a web user control. In other words, I wanted developers to be able to subclass my subclassed Panel control, put ...Show All
Visual Studio 2008 (Pre-release) How do I access child ui elements of a ListBoxItem
Is it possible to get the child UIElements from a ListBoxItem created via a DataTemplate The Context property in this case is set to the bounded data object. Do you mean you want to get to the ListBoxItems (and their content) generated by a data bound ListBox If that is the case, please see my blog post in http://www.beacosta.com/Archive/2005_09_01_bcosta_archive.html with title "How can I get a ...Show All
.NET Development Proper design pattern
There is the issue: I have a DTO class that defines some information structure. I have coded some facilities to treat that class (copy values, validation etc.). Having all of this facilities I have to rework each of them if my information structure is changed (a new field is aded for instance). I remember every method dealign with this structure and I modify it according to the changes of information structure. BUT! I am not the only developer a ...Show All
.NET Development Storing ConnectionString in app.config
Hi, I'm sure I'm missing something really obvious here, but I can't see it!! I have a Data Access Layer project (DLL) which contains a typed dataset (just containing stored procedures - no DataTables). This is fine, and does what I want except the connection string is stored in the Project Settings. My problem with that is the DAL is used from different WinForm projects which may require a different connection string (tw ...Show All
Visual Basic How to instance a class in the current project
Hey NG So, the subject says everything - I think. I have a MDI-Application. In one of my ChildForms I have some UserControls. By changing the CheckedEvent of a RadioButton(in the Form), my class enables or disables all TextBoxes of the UserControls. - Therefor I use ReadOnly Property to access the status. But I do need the status also in the UserControls. I don't want to check the RadioButton - I don't think that is the correct way. - Beca ...Show All
Visual Basic Validating within a User Class
I need to populate a container with an indeterminate number of label/textbox pairs for input. Since it is indeterminate at design time, I thought I'd create a user class with both a label and at text box in a pair so I could create them at run time and populate the labels appropriately from a data file. I need to validate each text box for numeric value. Then, I need to use that value to build up a subtotal on the form...sort of like this: ...Show All
Visual Studio Team System Can I create a label using MSBuild types?
Can I create a label on team system source control before the build process using MSBuild (I am using VSTS Beta 2). Thanks lot for info. I also noticed that team system automatically creates labels corresponding to the build id. ...Show All
Windows Forms ContainerControl inside another ContainerControl
<.NETFramework> I am facing problems using a ContainerControl inside another ContainerControl. The child ContainerControl is not getting on the design surface probably. I'm not being able to drop any control (e.g a Button) on the inner ContainerControl. It is dropping the control (Button) on the outer ContainerControl instead. I know there is something like EnableDesignMode in Framewrok 2.0. But I cannot find it in Framewrok 1.1. I w ...Show All
