windiswebwerkstatt's Q&A profile
Windows Forms Run-time,design-time component
I am interested in dividing my components into run-time and design-time components. I want to do this so that code I only need for design time is not included in the run-time component, which is shipped to an end-user. The design time component would only be needed by the programmer when making use of the design-time capabilities of my component, such& ...Show All
Visual Basic help declaring a number and refering to it later
hey im develeping this little game where you are asked to guess a number bewteen 0 and 50. it raises some wuestions for me, i have tryed some coding, but they fail all the time so im asking you for help. 1. how do i declare the random number the user is soposed to gues i have tryed: "dim guessn as double = <50" but it returns "end of statemaent expected" whats that im missing and how do i make a life counter "dim life as double = 5" 2. lets imagin i actually got it working with random number thing, how do i refer to it lets say the user pushes the gues button: "if gusstxt.text = gu ...Show All
Visual Studio Express Editions Read line listbox to variable
Hello I have a listbox and i need some of the lines But how can i write them best to an variable,array() I am looking but doesn't found the right code (instruction) Thanks The listbox has an items collection. Just iterate over it, or use the indexes if you know them, and copy them to a list. The list should have a ToArray method when you're done, at least I know ArrayList did. ...Show All
Visual Studio 2008 (Pre-release) Vector3D.AngleBetween Bug
Hey there! I'm using WinFX Beta 2 - MayCTP and I think I have found a little Bug ( ) in the Vector3D.AngleBetween Method. If you want to know the angle between two identical Vectors you would expect that 0 (zero) would be the return value. While for most vectors this is true, it seems as if it isn't for the following example: Vector3D sampleVector = new Vector3D(0,-1,-1); double angle = Vector3D.AngleBetween(sampleVector, sampleVector); angle should be zero but - at least on my system - it is 0.0000012074182697257333 I also found out that this happens with other vectors which x-coordinate is zero. Am I missing something or ...Show All
Microsoft ISV Community Center Forums Closing a dependent file in Excel97
I am trying to set up programming for an Excel97 spreadsheet. Because the file (call it Alpha) takes a long time to save, I want to put the code in another file (call it Beta) and call it from Alpha. I have that figured out, and the references set up. The problem is that I want Beta to close automatically when I close Alpha. I tried putting a Close command in the Before_Close subroutine, but then I get an error message telling me that I cannot close the file (Beta) because it is referenced by another open file (Alpha), even though it is itself in the process of closing. How can I order Beta (that is, the file with subroutines) to close when ...Show All
Windows Forms Please HELP!!
Hi, We have made our collections bindable at design time..by implementing IComponent.. One of my form has CustomerCollection(variable is CustomerCollection1),and textboxes are binded to its properties at designtime..We are having a global function which loads customercollection..when user gets logged in..called..global_CustCollection..Now, on form load of customer I am assigning this global collection to, collection object binded to form at design time(CustomerCollection1)..but when I view the form no data is being displayed though the collection object(CustomerCollection1) has the data.. why is it so thks If I unde ...Show All
.NET Development Checking User Group in Active Directory
I am building an application that will need to check the group assignment of the currently logged in user. I basically have 4 group types, administrators, supervisors, backup and restore users and, general users. I just need to determine what group the current user is part of so that my application will only provide options relavant to that group. I also need to grab the username of the currently logged in user as well. The information must be accessed from an Active Directory Server. how might i do this Thanks, Think you could explain how you solved your problem Maybe you could help someone ...Show All
Visual Studio Tell VSS to ignore a file - basically like .ignore in CVS
I have a file containing the connection strings for a project like this: < connectionStrings configSource = " ConnectionStrings.config " > Each developer has their own ConnectionStrings.config file - we would like this file to be part of the project (with Copy always set for the "Copy To Output Directory" attribute), but not included in VSS (or at least ignored on check ins and definitely not overwritten on when we get the latest version). In CVS we could add the an entry to the .ignore file and it would be ignored by CVS clients - is this same functionality available in Visual Studio / VSS If not how you handle th ...Show All
SQL Server ForEach Loop Container
I am using a SQL Task to load the data needed for the loop into a variable, then using a script task to perform calculations. Is it possible to update a table from the script task with the calculated values . Thanks Yes the structure for all reports are the same, the calculations are dependant on the specific measure. May I contact you offline and not involve the forum until a suggestion is ready ...Show All
.NET Development can i get the type of an unreferenced object?
I want to get the type of an object which belongs to an assembly that isn't referenced when building the calling assembly. For example, I currently have ObjectHandler oh = Activator.CreateInstance(typepath, typename); object o = oh.Unwrap(); System.Type t = o.GetType(); and it works. If I use System.Type t = System.Type.GetType(typeName); then t is null which I understand, as the typeName's owner assembly is not referenced. Is there a way I can get the type without the Activator and Unwrap lines Many thanks Jason It doesn't matter whether or not you have referenced the ...Show All
Windows Live Developer Forums Bonus Challenge
I have read the e-mail about Bonus Challenge at 18:00. Decided to participate - and to make small, but useful (I hope ) app. At 24:00 I have completed the work. During this 6 hours I had time to drive from work to home, to have dinner, to read the last news, and of course to write code and test it. As a result: 15575 characters of code and 5 images. Extreme programming At 00:30 I have submitted it. BTW, question to admin - I hope it was submitted succesfully Web page said that all right, but still it will be better to receive confirmation to e-mail... The e-mail that I was used during submission is a-vas[at]hotmail.com The winners fo ...Show All
Visual Studio IM002
Front-end: VB.Net 2003 Database: SQL Server 2000 Report: Crystal Report XI Developer Edition ---------- hi, im doing an application where i view a report using CR Viewer. All the codes are working except one which produce an error: ERROR [IM002] [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified Here is my code: ------------------------ Imports CRAXDDRT Public Class frmViewReport Inherits System.Windows.Forms.Form Dim grp As New CRAXDDRT.Report Dim capp As New CRAXDDRT.Application Private Sub frmViewReport_Load( ByVal sender As System.Obj ...Show All
SQL Server Report Server Web Site Shows File Not Found
Hi - I have installed VS2005 and SQL Server 2005, with all reporting services features turned on. When I look at IIS i see applications for ReportingServer and Reports. But i cannot seem to browse or run any reports. From SQL Server management Studio, from IIS, from browser all give same results - page not found. Did I miss a configuration Who needs permissions to what I created the report in VS2005 and deployed it but i cannot see it in the IIS virtual directory for ReportServices. When i look at folders in management studio, i see the folders for the project, and the report, but they dont show up in IIS. HELP! nothing works! ...Show All
Visual Studio Express Editions The things I draw don't stay!
Hi all, my application involves retreiving information of pixels to form an image. I created an access database with 3 field, PixelColumn, Pixel Row and Colour. I'd then draw rectangles as pixels and fill these pixels with the corresponding colour from the database. A screenshot is available here. http://i5.tinypic.com/120mipz.jpg But if I minimize the form and maximize it again, the rectangles disappear! Is there any way I to make them stay This is a code sample of my DrawImage subroutine. ------------------------------------------------------------ Private Sub DrawImage() Dim myBrush As New System.Dr ...Show All
SQL Server How to add 'ALL' as report parameter in drop down with other parameters
Hi ALL, I would like to add 'ALL' to other report parameters.The other report parameters are counties.I would like to add 'all' so that user can select all counties from drop down. I added union select 'ALL' to sub query. in main query @county='all' is it right or wrong.After I did this report is running very very slow.performance problem begins. what exactly is the procedure to do. thanks r sankar Very interesting thread...Sounds like 2005 has this issue resolved! But just for fun I would like to continue the "2000" workarounds... You see, I was trying to get "(ALL)" or single item capabilities adde ...Show All
