Dominatrix's Q&A profile
Visual Basic Registry Key Class
When I use the following statement in VB2005 Dim rk As RegistryKey = Registry.CreateSubKey("Dan") Visual Basic returns an error saying tht CreateSubKey is not a member of the Registry or RegistryKey Class. I have imported the Microsoft.win32 Could somebody please tell me why it says this thanks Yes thats what i've got. Somethings not right I have triple checked my code. Even made a new app just to interact with the registry. I've looked at about 45544 tutorials on the web about it and they all say the same thing. I tried uninstalling VS2005 but it said it couldn't find a valid ord ...Show All
Windows Forms flex grid functions
i can't work like this ! i cant find the textmatrix propertie is the new datagrid where is it and how can i add rows to this dataGrid without binding it to a data source why there is no new FlexGrid The equivalent of TextMatrix is the indexer, so you could do MyGrid(15, 3) = "Hey" 'VB or MyGrid[15,3] = "He ...Show All
Visual Studio Tools for Office Multilingual CommandBar?
Hi, I am currently developing an add-on to Word using VSTO that adds a custom CommandBar. As it is directly constructed in the code, how can I have multilingual texts on the buttons Thanks in advance. lynnbt wrote: Does this code work across multilingual installations of Word ThisDocument.Application.CommandBars["Menu Bar"] Or is the "Menu Bar" parameter culture specific Really looking forward to this question's answer ... ...Show All
.NET Development ExecuteReader Error
Can anyone tell me what is wrong with this code : SqlConnection con = new SqlConnection("Data Source=(local);Initial Catalog=Orders; User id=sa"); SqlCommand comm = new SqlCommand("Select * from cust", con); con.Open(); SqlDataReader dr = comm.ExecuteReader(); while (dr.Read()) { Response.Write(dr.GetSqlValue(0).ToString()); Response.Write(dr.GetSqlValue(1).ToString()); } Whenever i try to execute this code, it displays the following error: Server Error in '/Orders' Application. Unknown error. Description: An u ...Show All
Visual Studio Tools for Office How to update Excel CommandBar via Events from C#.NET Addin
Hi there, I have created a C#.NET (2.0) Excel 2003 Addin. It creates two commandbars. One of the command displays the status of several external components in the form of icons. The C#.NET addin receives information about the status of these components and raises events to update the Excel command bar icons. The events are received and processed ok, however in the processing code I update the icons that are displayed in the command bar and this does not work although the code does execute correctly. I am assuming that this is because that GUI update event is not happening on the main Excel GUI thread. In WinForms I use the PIn ...Show All
Visual Studio Team System Sampling works but Instrumentation hangs.
I have an application that does not wish to be instrumented. It's a C++ project, non-managed. I get "Successfully instrumented file" and then "Successfully attached to process: 3040" but nothing after this, it just sits there. When I finally hit stop it gives me an VSP1386 error. I can run it in Sampling mode and it works fine. I tried another C++ application and it worked with both profiling types. I even put a return() as the first statment in WinMain but still get nothing. Any ideas Thanks! Here are the steps you should be performing, assuming the following program in a file winapp.cpp : #in ...Show All
Visual C++ Converting ByteArray to Char Array.
Hi. I'm having some troubles when performing this conversion. In my C# code I read a image to memory, a TIFF, then I convert this to a ByteArray. After that I call a method from a managed class that I developed in C++/CLI, that receives a Byte Array and a int. On my managed method I need to call a unmanaged funtion from a C header file, and that functions receives a Char *. However, when I call the function the return is not waht I'm expecting, and I thing that there might be some problem with the data that I'm sending. Can I peform this operation to pass the char * to my C function pin_ptr <Byte> aux = &buffe ...Show All
Visual Studio Tools for Office Problems with opening custom Forms in Outlook 2003, VSTO 2005
Hey, i searched this board, but did not find a proper answer for my problem. I'm developing an addin for Outlook 2003. I've added a Button to the New Mail-window, and there i want to open a Form, that i've developed. My problem is, that this Form shows up, but does not load completely. That means it hangs somewhere in the Form.Show() procedure. The funny part of the problem is, that i can open this form anywhere else without any Problem, so for example directly from Outlook Main window. But this form does not open when called by the eventhandler of my button. Do you have any ideas, what i've done wrong I'm developing with Outlook 2003, VSTO ...Show All
Visual FoxPro Cancel Button Does not work--A known bug?
I have no idea if it is a known bug. The important fact for me is that it is a bug. It occurs in _VFP.StartMode = 4 as well as in interactive session (_VFP.StartMode = 0). It caused me to lose numerous error records before I realized what was going on. In exe environment when one error follows another there is no way to quit because the Cancel button does not do what it is supposed to be doing. You crush the system and no records are saved of course. Anyway, this is a stamp of one of the session errors: An error has occured "feature is not available" (1001) ADDPROPTOFORM 2998 .... Record details in error log files Two opt ...Show All
Visual Basic live video from webcam ? - VFW WDM DirectX/Directshow?
I have spent the last several days searching the internet for the best way to add live video from different USB webcameras. In my search I discovered using VFW with the capCreateCaptureWindowA Lib "avicap32.dll" and the showmessage from Lib "user32.dll" runs into two problems: 1. VFW is an old standard that is going away and 2. that it always brings up a dialog for selecting the video source device because it uses a wrapper for the webcamera and can only wrap one camera at a time. I have looked at sample applications like AMCAP and others that use the avicap32.dll with the same problems. I also had trouble finding any good info ...Show All
Visual Studio Tools for Office InfoPath 2003 Tools for Visual Studio 2003
I am a regestered partner, Action Pack subscriber, and part-time developer. I own a copy of Visual Studio Professional 2005 but I do not have a MSDN subscription. I need to create a Visual Studio project to add an enhancement to an InfoPath 2003 form. As I understand it, I need to install the InfoPath 2003 Tools for Visual Studio 2003. How can get the needed tool. The InfoPath tools for the previous version of Visual Studio were available without cost. The only options I see are to pay $2,500 for a Premium MSDN subsription or pay another $799 for a sperate copy of Visual Studio 2005 Tools for Office. That can't be right. There must be ...Show All
Visual Studio Express Editions Print() Method in VB.NET
Hi. Is there any way to make the equivalent of the print() method in VB.NET VB 6 has a print() method, which, from what I can tell puts out text to the form without any labels or whatever needed. 1. Is my assumption correct 2. If it is, can it be done in VB.NET also 3. If it can, HOW Thanks, The Digital Pioneer Option B failed me. More details on option A please. In other words, the File.Encrypt method didn't do much for me. No matter what I tried, it just gave me an 'Unhandled IOException'. You said I could try encrypting your text and save it so that nobody could just read it OR use the File.Encryp ...Show All
Visual C# Please read This!!! Buttons question
Ok i make a buuton for every process that has the MainWindowTitle.Length>0 like This:: int x = 0; // X is the X coordonate for pozitioning the buton Process[] pros = Process.GetProcesses(); foreach(Process b in pros) { if (b.MainWindowTitle.Length > 0) { buton = new Button(); panel1.Controls.Add(buton); buton.Name = "buton"; buton.Text = b.MainWindowTitle; buton.TextImageRelation = TextImageRelation.ImageAboveText; buton.Size = new Size(160, 28); buton.Location = new Point(x, 0); buton.Click + ...Show All
Visual Basic Installing a VB 2005 App under both Old and New OSs
I am about to distribute a new application to a diverse group of customers. Some are running XP, some Windows 2000, and some even have Windows 98. What's the best way to handle this I understand Windows Installer 3.1 that accompanies the VS package is fine for Win 2000 and more recent. I also understand that I can download a v2 Installer that will handle Windows 98. Does the v2 Installer handle Net Framework installation as well Can I use the v2 Installer for all target systems, and are there disadvantages to doing so you can use ClickOnce. It should work on window98 http://msdn.microsoft.com/ms ...Show All
.NET Development PageTimeOut....HELLLP :)
Im new to this, but have made an OK site. i just need one thing....... And thats a pageTime out. I have tried all i can find on msdn, but can get it to run.. In JavaScript you have the commando: window.setTimeout('window.location="Default.aspx"; ',5000); What is the correct .NET way to do this ...if there is one. Hope somone can help, as i have used a hole day on this toppic Best regards from Denmark. the hood What behavior are you looking for For the page to redirect after a specific amount of time You can use meta tag to accomplish this. http://www.dnzone.com/ShowDetail.asp NewsId=565 If you'r ...Show All
