BrianW's Q&A profile
Windows Forms default values for inherited control
I'm trying to subclass a Windows.Forms.Label control so that rather than having to set a whole bunch of attributes in the designer every time I add one, it is done automatically. For example, I always want the font to be courier and the AutoSize attribute to be true. I went to "Add...", added a "Custom Control", changed it to inherit from Label instead of Control. Then I can go into the properties window and change the Font, etc, and it shows up in the designer-generated code in InitializeComponent(). However, when I drag my new control into a Form, it adds its own code for setting the font into the Form's InitializeComponen ...Show All
SQL Server Initializing Script component
hi, This might be a trivial question. I am using a script component (inside a data flow task) as a transformation component. The method below is called for each row in input: Public Overrides Sub Input_ProcessInputRow( ByVal Row As InputBuffer) End Sub All I want to do is initialize my script component i.e. run some code only once and to be able to use that initialization inside the method above. I am a VB.NET newbie. Maybe this can be acheived by using an overriding constructor and calling base constructor from the overriding constructor - don't know if this is preferred way or feasible in VB.NET). Thanks for your help in adva ...Show All
Windows Forms a control that looks like VS.NET toolbox
How can i create this kind of control Or where kan i buy it I have tried to make something that looks like the Visual Studio toolbox. But i cant get it right! Please help! I'm trying to greate a "button list" that has the same look and feel as the VS.NET toolbox... I have checked out the lib you sugested, but& ...Show All
SQL Server Linked servers and Windows Authentication
I have seen similar questions, but none of the answers have solved my problem. I have several SQL2000 servers running under Win2003. In the past, we have been using SQL logins, but I have been trying to transition to using Windows Authentication. It has been working great except that sometimes queries using linked servers fail. The linked servers are set up for the connection to use the login's current security context. For testing this problem, I have limited myself to two servers to do this between. My Windows account is defined with sa rights on both servers. I have tried explicitly to impersonate my account, I have told it to ex ...Show All
Windows Forms How to locate a certain pattern in image?
Hello. I have a bitmap image that has in it a certain graphical pattern (say 'P'). I know the exact BMP structor of the 'P' but I don't know where is it in the image. I need code to locate the x,y position of the pattern. Help! Sweet - thanks for the link. I'd love to get an AI forum here. I know this site is&nbs ...Show All
Visual C# Databound combobox with narrative
Hi all, Using C# in VS2005 on WinXP Pro. I have a combobox bound to a dataset. The dataset binding is done first then I load a narrative to the combobox using the .Text property. The narrative just says 'Select an item from this list' and appears when the user opens the application. The problem is that if the user does nothing with the combobox the first item from the dataset is loaded as the .SelectedValue. How can I prevent this regards, H Hi SysDev, The binding will occur when the Form initialization automatically by .NET binding mechanism. But we can change the Text property after the ...Show All
SQL Server SQL Task - passing parameters
Hello, I have a SQL task wich executes the following statement on a OLEDB connection (SQL 2005 DB): TRUNCATE TABLE DimTime GO DECLARE @CurrentDate AS Datetime DECLARE @EndDate AS Datetime SET @CurrentDate = '10-20-2003'; SET @EndDate = '10-20-2005'; while(@CurrentDate < @EndDate) begin INSERT INTO DimTime SELECT DATEPART(month, @CurrentDate) AS MonthNumberOfYear ,DATEPART(quarter, @CurrentDate) AS CalendarQuarter ,DATEPART(year, @CurrentDate) AS CalendarYear ,dbo.GetSemester(DATEPART(month, @CurrentDate)) as CalendarSemester ,DATEPART(quarter, @CurrentDate) AS FiscalQuarter ,DATEPART(year, @CurrentDate) AS FiscalYear ,d ...Show All
Visual Studio How to emulate "Get Recursive" on source safe to see what files are changed
I really hope this is possible, because it seems to basic. I would like to know all the files that have been updated since the last time I synced with my source safe database. If I do "Get Recursive" on my top level project it simply updates the files, and doesn't even tell me which ones. Is there some output or log I can look at every time I do Get Recursive so that I can go and see what changes have been made Thanks, Kevin The command (tf.exe) is in ...\Program Files\Microsoft Visual Studio 8\Common7\IDE This is the main command line utility for TFS version control; you can do everything from here you can ...Show All
Visual Studio help..!!Error when install VS 2005
During installation, it was showing an error message which is telling "Suite Integration Toolkit Executable has encountered a problem and needs to close. We are sorry for the inconvenience." I cannot continue to setup this VS2005..Anyone who can help me Thank 1. Clean out your %temp% folder 2. Try the install again 3. If it still fails, try copying the CD/DVD to your hard drive and install from there. ...Show All
Visual Studio Sorry, another:The report definition for report has not been specified
I've gone through all of the posts on this subject and cannot find a resolution. I do the report creation using a Report Server project. Create the .rdl report with the subreport. Beautiful, works as advertised! When I copy them over into my project, rename them to .rdlc and run the project I get the infamous message in the immedite window and the subreport doesn't load. The .rdlc files are loaded as an embedded resource. I found the post that says 'if it knows where to load the main report it also knows where the subreport is'. I use: Dim hdl As New SubreportProcessingEventHandler( AddressOf MySub) AddHandler reportVie ...Show All
Visual Basic Just move from VB6 to VB.NET
Hello, I'm just move from VB6 to VB.NET and found many things differ from VB6. I found it almost likely to OOP such as C++ and Delphi. Is VB6 and C++ in VS6 is death So which is better, VB.NET or C++.NET (C++ is same to C# ), because study VB.NET is likely study C++ I'm not sure Please give me some suggestion. Thank you There is little or no difference between C# and VB.NET. There some bells and whistles that each langauge features but in general go with the one you feel more comfortable with. If you did a lot of VB6 programming go with VB.NET. If you come from a C background go with C#. ...Show All
Visual FoxPro Computer stops after loads form
I'm facing a rather strange problem: I've got a form wich calls another form. When I call this second form, the computer (not only VFP)stops at the last comand line in the Load method. No matter what this last line is. But it only happens if I've realized some operation before I do it. Otherwise it runs Ok. I'm using VFP6.0 and SQLServer 7.0. The Load method uses "CREATE CURSOR" and "SQLEXEC" commands only. Thanks in advance for any help. I find out what was happenning. Looks like VFP6 may find problems with the virtual math coprocessor. I've just stoped the coprocessor and everything's copacetic ...Show All
Visual Basic problems with IIF
Private Sub Amount_KeyUp(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles Amount.KeyUp IIf(RoundValues.Checked, convertRound(), convertLength()) End Sub The problem is that it calls convertRound() then convertLength(), no matter what the state of RoundValues is. Can IIF be used to call functions I could use If RoundValues.Checked = True Then Call convertRound() Else Call convertLength() End If which is fine but I want to use IIF. Any suggestions links are fine too. One problem with IIf is that it evaluates both possibilities, so it will indeed call both functions. In C#, you can do thi ...Show All
Smart Device Development bluetooth for smart devices in managed code
Microsoft said in a previous webcast that they would have a visual studio upgrade on 10th May for bluetooth client/server communications in managed code (vb or c#), particularly for smart devices. I don't really want to use native code, but if that were necessary how would I use native code (ce) within visual basic I’m not aware of such update for smart devices. In fact, latest update (NETCF V2 SP1) has been released just yesterday and it does not have BT support. BT story is even more complicated than simple P/Invoke from managed to native. There are different BT stacks available. Microsoft's stack i ...Show All
.NET Development Create and array or search within parenthesis?
This is an example document (doc). I am trying to create a program in Visual Basic (VB). What this program needs to do is search through a doc for acronym’s. After all the acronym’s are found it creates a acronym table at the end of the doc. 90% of all the acronym’s are within parenthesis. Not sure exactly what to do about the other 10%. I have a Master Acronym List (MAL) that is a table that can be used to help with the search. I’m just unsure how to code this. This will be appended after program reads this doc…. Acronym Definition ...Show All
