Nick Russo's Q&A profile
Visual Basic Disappearing rectangles
Hi there I have a pretty straight forward program. There are two forms. User enters some values in a textbox in form1 and then clicks on a button. Program uses the values as a seed to draw rectangles of a random size, color and position on a picturebox on form2. Problem is that when i click on the button form2 loads and i see the rectangles flash up for about half a second as they are drawn, but then dissapear leaving an empty picturebox. ...Show All
Windows Forms Display customized message when no value is return to DGV
hello all, anyone has any idea how can i display my own message like "There is no data" instead of just a blank space when DGV displays rows from datasource. tq. You could easily disable the DataGridView control and display a message box if that would fit your need. What exactly are you trying to accomplish ...Show All
Windows Forms 2005 RTM: A circular control reference has been made. A control cannot be owned by or parented to itself.
Well, dang. I had re-done a form that was causing me other problems with the designer. All seemed fine, I went home, and returned to the form this morning to find this: A circular control reference has been made. A control cannot be owned by or parented to itself. This form has a few split containers on it. This instability is very frustrating. Anyone else ever see this Has anyone found a solution to ...Show All
Visual Studio Express Editions Can't Add Member Function
I found an msdn article describing how to add a Member Function to a class. I am trying to do this to a class called "Form1" (it's a forms application) but I just can't find the add menu. Can anyone tell me how to access it Take a look at http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=382546&SiteID=1 Thanks, Ayman Shoukry VC++ Team ...Show All
Windows Forms TableAdapter.Insert and Identity
Is there a way of returning the identity from the stored procedure when doing a TableAdapter.Insert() or will it only return the return value eg I want to be able to do something like this int newrecordid = MyTableAdapter.Insert("new record field1","new record field 2",...); Thanks Amit ...Show All
Visual C++ EETypeLoadException
Hi I’ll migrate a VC++ 6.0 MFC solution to VC++ 2005 (managed c++). My solution consists of one exe-file which call’s some MFC extension DLL’s and some MFC extension DLL’s. After I compile the code with "/clr" I get the "Loader Lock" Error on some DLL Main function’s. I have fixed the Loader Lock" Error by the manuals of MSDN library, but now I get these errors when I debug the code: … ' myprogramm.exe' (Managed): Loaded 'C:\WINDOWS\WinSxS\x8 ...Show All
Visual C# set the Text value from another Form
Hi, I am using this code to set the Text value of a Label on WorkingAreaForm from the FindForm but nothing is changing.. why frmWorkingArea WorkingAreaForm = new frmWorkingArea(); WorkingAreaForm.txtName.Text = "HELLO"; Thanks... yes because txtname is private by default it will be better if you made a property in WorkingAreaForm and make this property public to change thetxtname.text ,then you can ...Show All
.NET Development Tips for implementing an Authenticode signed .NET browser control?
I currently support a signed Java applet and a signed ActiveX control. When downloaded via an HTML page, they access the file system to perform some tasks (write data to disk, execute some code, etc.). No, they're not viruses or anything like that. They're signed with the usual certs, Authenticode, etc. so that users are presented with the standard permissions dialog with my company's name before proceeding with the work. I'd ...Show All
.NET Development Can I open an Access database from vb .net if the mdb file is opened.
if I try to use the following connectstring "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=\\cse1\src\test.mdb;Mode=Share Deny None;User Id=admin;Password=;" I get the following error "The Microsoft Jet database engine cannot open the file 'test.mdb'. It is already opened exclusively by another user, or you need permission to view its data." I was assuming that mode-Share Deny None would open the database in read-only mode, since I have to ju ...Show All
Smart Device Development Can't append menu items to command bar menu after migration from EVC4
Hi I've migrated my project from EVC4 to VS2005. It's targeting Pocket PC 2003. I'm trying to append menus to a CCommandBar like this: CMenu *menu = AfxGetMainWnd()->GetMenu(); CMenu *submenu = menu->GetSubmenu(0); submenu->InsertMenu(0, MF_BYPOSITION, 100100, L"test"); AfxGetMainWnd()->DrawMenuBar(); The function doesn't return any errors, and in fact the number of items returned by submenu()->GetMenuItemCount() increases b ...Show All
Visual Studio Express Editions Lost Key
Hi, i have downloaded and installed visual estudio express app. (Basic C#,C++) but my system has broken and i lost my keys, how can i recover them You can simply re-register the product for a new key, you don't need to have your old key and there is no key limit per person. Thanks, Dan Fernandez Product Manager http://blogs.msdn.com/danielfe/ ...Show All
.NET Development static data at process level (rather than AppDomain level)
For unit testing purposes, I would like to be able to share some data between AppDomains. More precisely, I would like to achieve the "static" semantic but at the process level (as opposed to AppDomain level). Is there some simple way to do that (simple as opposed to building a whole dedicated remoting architecture for that purpose) Is there an equivalent of the LocalDataStoreSlot at the process level Thanks in advance, Joannes Vermorel ...Show All
SQL Server Excel connection properities -
In my package I need to change the filename name for my input Excel based on a the contents of an external file. I want to read the external file, get the filename/location from this file and then dynamically set this as the property for the Excel Connection. I saw some posts related to this but did not understand which tasks I need to use and in which order. thanks No I'm not - I had a feeling that I was doing som ...Show All
Windows Forms Is this possible?
Is is possible to have a C# app update text boxes in a webpage that I don't own For example if there was a webpage that had a couple of textarea input fields would it be possible to write a C# app that could put text into those textarea's Thanks. Indian Ocean wrote: Yes, its possible but you have to use some WIN32 apis for that. Its a inter-application communication in fact. If you want to do ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Namespaces Microsoft.DirectX not found
I've installed the DirectX 9.0 SDK and the runtime and can run the sample executables, but when I try to run the code in the edit or debug mode (using vb.net ver.2003) it can't find Microsoft.DirectX and Microsoft.DirectX.DirectInput namespaces. I verified it as having 9.0c using dxdiags.exe. It does find DirectX 7 & 8 type libraries in the COM references section... I expect to find the missing namespaces in the .NET reference sections ...Show All
