priyananda's Q&A profile
Smart Device Development ContextMenu and CompactFrameWork!!!
Hello, I can add a context menu to any control, like Button, TextBox, TabPage etc; it works all fine but when I add context menu to TabControl it doesnot show up . In my Windows application it works all fine too even on TabControl. Any clue Best Regards, I don't believe this is possible, even looking at underlying native windows messages on PPC. It appears that on PPC, TabControls don't ever get the NM_RECOGNIZEGESTURE notification. You can look at these two articles for more information on inspecting and responding to windows messages. part 1: http://blogs.msdn.com/netcfteam/archive/2005/05/20/420551.aspx part 2: http://blogs.msdn.com/netcfteam/archive/2005/05/23/421143.aspx ...Show All
Visual Basic Access DB distribution
Hi all. I have developed a simple VB.NET app that displays some data from an Access database. No updating, just reading the data. I want to distribute the db with the installation, I know how to include it in the user's application folder, but how do I make the app know where to look once it's installed (maybe |DataDirectory| ) I've been searching through other postings for a few days, but they all seem to be using VS 2005... Thanks for any help! P.S. I'm using Visual Studio 2003 Why not just use the file name if it's in the same directory: Dim ConnectionString As String ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=MyDB.mdb" ...Show All
Software Development for Windows Vista Problems reading the registry with RegQueryValueEx
I've got an exception under Vista when i call CWinApp::GetProfileString to read a string from the registry. Everything works correctly under XP or NT. After debugging, I've found that this MFC method uses the following code: CString strValue; DWORD dwType=REG_NONE; DWORD dwCount=0; LONG lResult = RegQueryValueEx(hSecKey, (LPTSTR)lpszEntry, NULL, &dwType, NULL, &dwCount); if (lResult == ERROR_SUCCESS) { ASSERT(dwType == REG_SZ); lResult = RegQueryValueEx(hSecKey, (LPTSTR)lpszEntry, NULL, &dwType, (LPBYTE)strValue.GetBuffer(dwCount/sizeof(TCHAR)), &dwCount); strValue.ReleaseBuffer(); } The first call to RegQueryValueEx returns a dwCount of 23 when the registry contains the string "Courier New" ...Show All
Visual Studio VS 90 day trial download 2.8Gb doesn't install
This download took about 6 hours When it finished, I got a message "windows cannot open this file File: En_vs_2005_Pro_90_Trial.img select the program from a list etc..." Can I install it or do I have to download it all over again Thanks Paul That file was intended to be burned to a DVD-R. You might be able to rename it to a .ISO file and access it with Daemon or IsoBuster ...Show All
.NET Development VB .net "downgrade"
I am working on a fairly simple application using VS2005, VB code.. and Dot Net 2.0. I was shocked when I checked... the application was using something like 40 mb of ram and thats just plain *ugly* and a huge bloat factor. Is there a proper place to discuss moving these types of applications back into something like VB6, or doing something to get rid of this huge bloat Thanks! Gary The application uses the new datagridview control and a webbrowser control. Other than that, I don't think there is really any special. Usual buttons, text boxes, radio buttons, list boxes etc... I did a little test, made a new project in VS2005 (VB side) made a single form with a single button. I created the exe fil ...Show All
.NET Development Performance problem
Hi, i'm coding with C# something like that: j = 0; for (int i = 0; i < bmpArr.Length; i += bytesPorPixel) { colorArray[j] = new T(); colorArray[j++].FromBMPColorArray( bmpArr, i); if (j % bmp.Width == 0) i += paddedBytes; } This code take 5-8 seconds to execute when the loop have 2'500.000 cycles. I need that this code take only around 1-2 seconds in these case, but i really don't know how i can do that. I've treated to isolate the lack speed problem and i've saw that the object instanciation take the most of the time colorArray[j] = new T(); until the rest of instructions: colorArray[j++].FromBMPColorArray( bmpArr, i); if (j % bmp.Width == 0) i += ...Show All
SQL Server multi line rows
Using Visual basic 2005 I have a form and set up my datasource, bindings etc. All works well, adding, updating, and deleting via form to sqlexpress except..... I have 2 columns set up in sqlserver that get data from muliline textboxes on my form. Column 1 "Material" is nvarchar(50) Column 2 "Quantity" is int The first multine textbox "Material" works fine, eather updating in the textbox or in the Datagridview cell. the second multiline textbox "Quantity" works when I just put in a number in the first line of the multiline textbox, when I put in the 2nd number on the second line, nothing gets updated. I I do that in the datagridview cell (Shift-Enter), I get an error. " ...Show All
Commerce Server Developer's workstation
I'm still struggling with the notion that all of our developers must have Windows Server 2003 running on their desktops to build CS based applications. There are few references on the net about this and the bottom line is that doing it on XP is an option but not recommended ('I told you so' on one of the blogs). Being aware that some features may not work (warehousing) I still would like to have development done on XP. I've installed CS2007, already have VS2005. I've unpacked CSharpSite and when trying to access the page get this error: ' Login failed for user ''. The user is not associated with a trusted SQL Server connection'. I went to Commerce Server Mangager and for each (I hope I've covered all) connection to into Profiles, Mar ...Show All
Windows Forms Directory.GetFiles Gives CRC Error on DVD
Any ideas how to get around the problem I'm implementing a basic DVD playback. WMP needs the location of VIDEO_TS.IFO as the input; however when GetFiles is used with d:\VIDEO_TS as the input I get a CRC error. Some DVDs work fine. I'm scanning Resident Evil: Apocalypse. I think that kind of protection is only for the "no-brainer" DVD-copy which doesn't really address the problem of piracy if that's what they are trying to do. Direct DVD-copy is the least used form of DVD piracy. To me it's just a nuisance. ...Show All
.NET Development web site error xmlns attribute not recognized
Getting a strange error in my vb 2005 web application in the web.config file. This runs just fine in visual studio 2005 in debug mode and it also runs fine on my development laptop outside of the development environment. However, when I deploy it to my Windows 2003 web server running the .Net 2.0 redistributable framework, I get the following error: Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately. Parser Error Message: Unrecognized attribute 'xmlns'. Source Error: Line 8: \Windows\Microsoft.Net\Framework\v2.x\Config Line 9: --> Line 10: <configuration xmlns=" ...Show All
SQL Server restore back up from sql 2005 beta 2 to sql 2005 original
hai, When i try to restore the backup which has been taken in sql2005 beta 2 and restore it in sql2005 original it is displaying the following error message. System.Data.SqlClient.SqlError: The database was backed up on a server running version 9.00.0852. That version is incompatible with this server, which is running version 9.00.1399. Either restore the database on a server that supports the backup, or use a backup that is compatible with this server. (Microsoft.SqlServer.Smo) please let me know how i can restore the back. You may have to script out the schema and then copy the data from the Beta2 database to the RTM (1399) version database. You might be able to use Visual Studio fo ...Show All
Visual Studio Express Editions Limitations of Visual C++ Express Edition
I have created a very simple C++ hello world program, and it seems that VC++ EE will compile the program, but it's not able to create a .exe that I can execute from the command line. Is it correct that VC++ EE cannot create .exe files and that you have to buy something from Microsoft in order to be able to create them nobugz wrote: No, it can create runnable programs. What happens when you try to run it from the command line I could not figure out how to run it from the command line! I see a number of executables in the bin directory for VC++ EE, but it's ridiculously confusing. There's no "cc" or "gcc" or "g++". ...Show All
Visual Studio Tools for Office Attaching objects to mails in outlook using c#
Ive developed an add-in to Outlook 2003 in c# using vs2003 and Vsto. In that i would like to attach an object of a user-defined class created in the project to an Outlook mail-item. This mail item is then stored on the hard-disk. The Outlook object model provides no technique for creating an OLE attachment programmatically. It can attach only files and Outlook items. Maybe if Word is the email editor, you can go through Word's object model using MailItem.GetInspector.WordEditor. ...Show All
Visual Studio 2008 (Pre-release) How to access WCF service over internet?
I think i'm missing something very basic...I have a working WCF service that i can access from my localmachines no problem. I have now setup an outside address that other developers can use to access the wcf service. they can, in fact bring up the wsdl if they put in. http://www.mydomain.com/myservice/service.svc However, the page internally references just the machine name: svcutil.exe http://mymachine/myservice.svc In .NET 2.0, when the outside developers try to add a web-reference to the http://www.mydomain.com/myservice/service.svc wsdl .NET complains about broken links at http://mymachine , which obviously the outside develoeprs don't have access to. I have tried playing with the endpoint in the webconfig and adding ...Show All
Visual Studio Tools for Office Not all nodes available as VSTO-Controls in a VSTO2005 Word solution
I made a VSTO2005 Word template solution created with an existing Word 2003 template. Attached to the template is an extensive XML Schema, all the nodes, even the optional ones, are used once in the template. Unfortunately not all nodes are available as VSTO-controls. All nodes below an <extension>-Elements in the XML-Schema are invisible. Is there a documentation about which schema-elements are not supported Please consider the following example, first the XML-Schema: < xml version="1.0" encoding="utf-8" > <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:t="myNamespace" targetNamespace="myNamespace"> <xsd:element name="course"> <xsd ...Show All
