Brad Radaker's Q&A profile
Visual Basic Visible Property
Hello, I have an event that occurs when my context menu is opening, and it makes certain items visible or invisible. Then it resizes the context menu to accomidate for the diffrent items becoming visible or invisble. The only problem is trying to figure out what items are "going" to be visible. Becomes the context menu is not visible yet, it returns all the items as being invisible.... Meaning I can not resize the menu, depending on the visible items unless i resize it after the menu opens, which looks really strange when all of a suddent he menu shrinks in size after the viewer already saw the larger version. Any help would be ...Show All
.NET Development Where's the Web dev forum?
Like the title says... where's the Web dev forum for us ASP.NET monkeys I think some people forget or do not know there are two specific sites for specific .net development I would always consider http://www.asp.net as the primary asp.net forums And I would always consider http://www.windowsforms.net as the primary windows forms forums. Those site have been there since day one. These I guess would be everything else. ...Show All
SQL Server error when changing published article at the subscriber
Hi Using merge replication - the stored procs are published articles. When trying to change the article at the subscriber (sql express) I get the following errors: Msg 21531, Level 16, State 1, Procedure sp_MSmerge_alterschemaonly, Line 45 The DDL statement cannot be performed at the Subscriber or Republisher. Msg 21530, Level 16, State 1, Procedure sp_MSmerge_ddldispatcher, Line 181 The DDL operation failed inside merge DDL replication manipulation. Msg 3609, Level 16, State 2, Procedure usp_Anniversary_upd, Line 21 The transaction ended in the trigger. The batch has been aborted. Does this mean it can only be changed ...Show All
Visual FoxPro Info Combining on Page 2 in Page Frames
How can I get my info on Page 1 to stay on Page 1 when I select Page 2 When I select Page 1 just the info I placed on Page 1 appears. When I select Page 2 however, the info I placed on Page 1 also appears on Page 2 along with Page 2's info. Thanks! I finally got it! I was making it harder than it needed be! Thanks again for your patience & help. ...Show All
.NET Development Communicating with USB port using a .dll file
I am using a .dll file to communicate with the USB port and can anyone tell me how to use the below two lines of code in the program. Bind Dll to the program ---------------------------------------- hInstDLL = LoadLibrary(“ABCLib.dll); To Initialize ----------------------------------- status = ABC_Init(hInstDLL, DLL_MESSAGE_OFFSET); Willfin You need to call GetProcAddress() to obtain the address of the UST_Init() function. Google for this API to get examples. Instead of using LoadLibrary, consider statically linking to the DLL by including the ...Show All
Windows Forms Partial type request for RTM
I just noticed that in VB.NET 2005 Beta 2, you can't tell (by default) what class a Windows Form inherits from. For example: Public Class Form1 End Class We use visual inheritance a lot at my company. It would be nice if MS would move the inherits statement out of the designer code and into the 'main' VB form. I'm not& ...Show All
Visual Studio 2008 (Pre-release) NavigationWindow for a Wizard?
I would like to use a NavigationWindow to present a sequence of pages to the user as a wizard (not the main window). Can this be done I want to load several pages into the window when initialized. I have tried using a CustomContentState to preload entries in the BackStack and then GoBack to return to the first page. But, that does not seem to work. The AddBackEntry does not appear to do anything. My application is just a normal WPF application not a NavigationApplication because the main window is just a window. What I would really like is to be able to have the window just enable the forward/backwa ...Show All
Visual Studio Team System CA1062:ValidateArgumentsOfPublicMethods False Positive?
I have the following code that gives me the CA1062 warning. Looks to me like a false positive: public static string Format(IFormatProvider provider, string format, params object[] args) { ... int argsLength = args != null args.Length : 0; ... } Regards, Erwin Erwin, I can't reproduce this warning given the above code, however, if you have something like the following: public static string Format(IFormatProvider provider, string format, params object [] args) { ...Show All
Visual Basic VB2005 Express - Sub Main in Windows application
hi, Is it possible to use a custom Sub Main on a VB2005 Windows Application project It was possible to set the entry point to Sub Main manually in VS2003, however in 2005 I can only set it to start a form. Thanks, Hi Ryan, Well, in the full version of VS2005, you can. If you go into the project properties, you can uncheck the box labeled 'Enable Application Framework'. Once that's done, the 'Startup Form:' dropdown becomes a 'Startup Object:' dropdown, and you pick your sub mains and stuff. In VBExpress I'm not sure if it's the same deal - give it a try, and if not, then I guess you can't :) ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Lost Device? What Scenario?
Hi I Have a problem with a simple D3D application. The program runs in windowed mode. 1) When I minimize/iconize the window it hangs (not crashes) in the taskbar and I cannot restore it again unless I forcibly close the window, as if it were running an infinite loop. Even the Debugger cannot report anything what's wrong. I can only close it with the debugger. 2) While resizing the window quickly and after sometime I get the error message: Direct3D9: (ERROR) :Viewport outside the render target surface 3) Lost device is ahndled in both the WM_RESIZE and Render function. However I'm not sure if this is the correct scenario, Coul ...Show All
Smart Device Development How to Display Modal Dialog?
Basically, I have a fairly straightforward question. How to display a modal dialog form and then return to the calling form. Most of my experience to date is with VB6 and I'm probably just going about this the wrong way. I'm using the following code to display a Help|About dialog from a menu click. Fairly standard. private void mnuAbout_Click( object sender, EventArgs e) { frmAbout frm = new frmAbout(); frm.ShowDialog(); } I'm assuming that the ShowDialog is modal, and that's how it differs fom the Show method. Maybe I'm all wrong about this. Anyway here's what happens. The About dialog appears, and when ...Show All
Windows Forms Problems with my combobox
I'm using a form to add information about companies in my program and i need to use a combobox filled with information about another table and the selected value became saved in the companies table. How can i do such thing using databindings in design mode When i do it in a datagridvew it works perfectly but if it is a single control in my form, it seems not to provide the compnies table the selected value and i have an error thats says that that row could not be null Thanks Andres Is the combobox bound to a datatable If not, how are you filling it with items ...Show All
Windows Forms The rowstate for the selected row in a child datagrid remains unchanged in a hierarchical scenario
Hi In my form I have 3 datagridViews namely grid1, grid2 and grid3. Grid2 is the child of grid1 and grid3 is the child of grid2. I have assigned dataRelation in a dataset. Used binding Source and the binding source is bound to the grids. Each of the 3 grids is having a column named "Active" which is a check box column. When the user unchecks the active column in grid1, all records in grid2 and grid3 should also get inactive. That is the active columns in grid2 and grid3 will be unchecked programatically. We are using dataAdapter.Update() in the datalayer to update the database. On the client form when the user checks/unchecks ...Show All
Windows Forms beta 2 - Negative Min value causes error
If i enter a negative value (with 2 decimal places) as the minimum value in the VS 2005 beta 2 form designer, for a numeric up/down control, then things seem fine, but the next time I make a code change and the designer updates its display I get an error: Decimal byte array constructor requires an array of length four containing valid decimal bytes NB: I have discovered a negative integer value works, but a negative value to 2 decimal places does not. I've been trying a relatively late build and things look as though they are working or I havent quite got the repro scenario your showing. ...Show All
Visual Studio Add projects to VSS
Hi, I installed VS2005 Professional Edition and Team Foundation Client to my computer, and have problem with the VSS. I selected "New Project" from the File menu and wanted to add a new project to VSS though the add to source control checkbox does not appear in the New Project dialog box. How can I add a project to VSS I can check out projects from Team Foundation Server. Thanks ! If the Source Control Check Box is missing from the Create Project it sounds like your copy of Visual Studio is configured with Source Control Plug-in = None. But if that was the case you should not be able ...Show All
