Alexei Pavlov aka BlackTiger's Q&A profile
.NET Development Problem with Type Converter
Hello, I am experiencing a design time problem while designing a control. I have designed a Custom Web control 'DataProvider' which has a 'DisplayPanelDataSources' collection property which contains a collection of WebControls which are used to define data source for each 'DisplayPanel' Web custom control as 1 to 1 relationship such as: ------------------------------------------------------------------------------------------------------------- DataProvider ---|------ ID |------ DisplayPanelDataSources ---|--- DisplayPanelDataSource1 |---- DisplayPanelDataSource2 ...Show All
Visual Basic Register for COM interop
Ok, I have done a standard DLL project, I select the “Make assembly COM visible” I set “Make COM visible” to true. I go into the properties and select the Compile tab but I don’t see the “Register for COM interop” option anywhere. Anyway, I register the DLL with the RegAsm.exe using the /TLB switch, this goes well, I know make reference to it in AutoCAD VBA this also goes well by selecting the *.tlb I created when I registered. Now if I try to use any part of the reference in the VBA application I get an error. Can anyone guide me in the right direction Thank in advance. William Apopka_ ...Show All
Windows Forms DataGridView Calling EndEdit when row is removed
Hello, First I will tell you how to recreate my problem: First add a datagridview to your project and add a couple of columns. Then add a timer with a 2000 interval. In the timer tick event write code to delete the first row of the datagridview. Add a button to start the timer. Start the program add 10-15 rows to the gridview, then start the timer. The timer of course will start to remove rows on the top. Go into edit mode on any row below the first. When the first row is deleted it will throw the gridview out of edit mode. This is extremely frustrating considering I am building a client/server program where anyone could delete a row, and on ...Show All
Visual Studio Team System Adding new Test Types
Hi, Can anyone tell me where I can get information on how to add my own test types to Team Test. An example would be really helpful. TIA Let me try to help. For that I need more information. Could you answer a few questions for me 1. Do you see your files unzipped under VSINSTALLDIR\Common7\IDE\ItemTemplates Cache \CSharp\1033 2. Does your .vstemplate file contain the following xml tag <TemplateGroupID>TestProject-V1</TemplateGroupID> Leo Huang Dev, VSTS ...Show All
Visual Basic Why do the ODBC 3.5.1 and MySQL 3.1.8 drivers not work?
Why do the ODBC 3.5.1 and MySQL 3.1.8 drivers not work Michael Seriously I read a few of your post, atfirst I can understand that you are pissed off. But then when I read a couple more, I totally think you should go do something else. I have the same problem with MySQL but I know its a B E T A, and people answering this thread is just like YOU and ME. Its not like every reply is OFFICIAL MICROSOFT SUPPORT. So STFU. Dont act like a kid that doesnt get candy. You made me register to post this................ ...Show All
.NET Development UsernameToken WSE and .NET 2.0
Does .NET 2.0 define a UsernameToken class anywhere Or is there any WSE for 2.0 You can use WSE 2.0 SP3, if you intend to go for production. it works well. BTW the newly released WSE 3.0 CTP is meant for .Net 2.0 thus it's a lot better with .Net 2.0. ...Show All
SQL Server What is the difference in WM5 windbase.h and windbase_edb.h ?
Hi all, I am having a hard time with WM5 edb. I saw some post to use "windbase_edb.h" header file, and the "Porting CEDB to EDB" use "#define EDB ..windbase.h". It is very strange that using difference headers, the parameters of default structures are not the same (i use the debugger to observe the values) "windbase_edb.h" CEDBASEINFOEX DBInfo; the sortspec of DBInfo defaults to [4] ------- this is the old CEDB default "#define EDB "windbase.h" CEDBASEINFOEX DBInfo; the sortspec of DBInfo defaults to [16] ------- this is the EDB default I ...Show All
Visual Basic Publishing an EXE
In Visual Basic 6.0, you could publish your program directly to a single .exe file. Now with Visual Basic 2005, I'm having some difficulty doing that. When I select 'Publish', I get to a wizard. When I click 'Next', however, it asks me where I want to install from.. Does this mean I don't have the publishing wizard installed Anyways, what I've been doing is selecting 'Back' from there and saying 'Finished'. This creates a few (usually three) weird files, including a setup file and an 'Application Manifest'. When I run either one, it asks me to install it.. So I let it, and the program will run then. However, I have to install it every time I ...Show All
Windows Forms Registry question.
Hello, I have am having difficulty with my application. What I am trying to do is retrieve a value from the registry, and write and if - else statement for it. I am working in Visual C++. Here is my code: // Declare string for defualtValue arguement String^ value; if (Registry::GetValue( "HKEY_LOCAL_MACHINE\\SOFTWARE\\DCOM System Mainframe" , "IsFirstLaunch" , value)== "true" ) { // Open the Security Form Form^ CreateAccount = gcnew AccountCreationScreen(); CreateAccount->Show(); } else { // Skip the Account CreationForm() Form^ MainForm = gcnew MainframeForm(); MainForm->Show(); } What I am ...Show All
Smart Device Development CF2 - Closing a form with an embedded WebBrowser closes my entire app
I've been programming in the UNIX world for years, so I'll admit that I'm fairly new to programming Windows Forms and CF... but this seems definitely idiosyncratic and I was wondering if anyone knows of a decent workaround... I'm using an embedded web browser control to display formatted text output of variable length (it seemed the only fairly straight forward way of doing it for Windows Mobile 5), but when I call the form.close method, my entire application exits. Everywhere else I've ever used this, it returns me to the perviously-open form before it in the navigation stack. I've 'worked around' this by calling form.hide here, instead, ...Show All
Windows Forms problems with system.drawing
I thought I was following the examples in help very closely, but no luck. Can anyone tell me why the following code does Nothing Dim bmp As Bitmap = New Bitmap("OcasoCamino.jpg") Dim gph As Graphics = Graphics.FromImage( Me .bmp) Private Sub frmMain_Load( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase .Load Dim rect As New Rectangle(x:=24, y:=104, Width:=674, Height:=256) Dim p As New PaintEventArgs(Graphics:=gph, clipRect:=rect) p.Graphics.DrawImage(Image:=bmp, rect:=rect) End Sub I would greatly appreciate any help on the matter. smtraber Assuming you just want ...Show All
Windows Forms Databind to collection object
I've created a customized collection and want to databind it to a DataGridView. After some research, I found that I need to create a bindingsource control and then bind to the specific collection object. The first problem is that I need to retrieve the collection instance for some additional method calls. How can I get the underlying collection instance back I found that the databingsource will use BindingList<T> as its internal store. How can I convert it back to my specific collection so that I can make additional method call your custom collection should inherit from BindingList. . . if you have a class FooBar. . . and a ...Show All
Visual Basic Regions bug
Every day after I’ve been working in the IDE for a while, the collapsed #regions will not open with a single click on the plus sign anymore. Instead it takes 5 to 10 clicks to open them. Actually in different source code files it takes a different number of clicks in order to un-collapse a #region . (but always the same number of clicks within the same source code file) I sure hope this will be fixed soon. It's been doing this all along since I switched in February. Any idea what's causing this Which versions on VB are you using.... VS Studio, VB Express Has it been doing this f ...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
.NET Development Registering events dynamically with a remote object
Ok where do i begin... well i am trying to come up with a solution to allow me to register event handlers with an event dynamically. Consider the following code if (aEvent.Name.CompareTo("getFilesCalledEvent") == 0) { Delegate myDel =Delegate.CreateDelegate(aEvent.EventHandlerType, this, "EventCalled"); aEvent.AddEventHandler(this, myDel); } As far as im concerned this should register the method EventCalled contained in the running instance of the object pointed to by (this). When executed i get the exception "Object does not match target type", when i call the AddEventHandler Method. As far as i can assume ...Show All
