Rich Denis's Q&A profile
Visual Studio Missing Icons and Bad Links in MSDN
Hello. I'm having trouble with my installation of MSDN. Some of the little icons that should appear next to some of the links don't show up, and many of the links don't work. When the links don't work, I get a JScript error "Object does not support this property or method." If I attempt to debug it, it's always a simple, one-line, code block, such as; alink_301.Click() This is an example of what the missing icons look like. The little box, next to Look here, should be an icon; Send feedback to MSDN. Look here for MSDN Online resources . But other icons Do show up, as in this case; Platform SDK: Perf ...Show All
Windows Forms Save File Dialog
My question is di I have to place menu on the Child Form for saving from RichTextBox or it can work by placing the code on the MDI Form and here what I am tying to use but it did save the file but it was empty. private void saveAsToolStripMenuItem_Click( object sender, EventArgs e) { saveFileDialog1.Title = "Specify Destination Filename" ; saveFileDialog1.Filter = "Text Files|*.txt" ; saveFileDialog1.FilterIndex = 1; saveFileDialog1.OverwritePrompt = true ; if (saveFileDialog1.ShowDialog() != DialogResult .Cancel) { childForm childForm = new childForm (); // Save the con ...Show All
Smart Device Development OpenNETCF beta 2 and VS2005
Has anyone gotten the OpenNETCF stuff to work with VS2005 I have been trying for a week now and response on their forums might as well not exist. Getting error from VS2005 that the package dll is not supported by VS but that doesn't make much sense to me. Not sure if there is something in VS that is looking for the old stuff or what is going on. VS lets me add it to the toolbar, and it lets me include the packages into my references section for the project but when I try to compile I just get that its not compatible. Very strange stuff... any ideas anyone have it working Thanks, glenn Tim has sumarised very ...Show All
Windows Forms Reordering individual rows in a DataGridView
Hi, Is there a simple way to swap the position of two rows in a DataGridView I am using it to display an ordered list, where I want the up/down arrow keys to shuffle a row up and down the grid, but I can't see any way to reposition a row within the grid without completely repopulating it, which seems excessive. The Index value for a row is read-only. John. This bit of code almost does the trick, the only problem being that the attempt to select the moved row doesn't work, I end up editing the first column in the row. private void dgvConditions_KeyDown( object sender, KeyEv ...Show All
Visual Studio Express Editions Terrific News - SQL Server Reporting Services
Hi There From Another Thread "Will SQL Server Reporting Services work with SQL Server Express in the Visual Studio 2005 VB Standard Edition To be absolutely explicit, SQL Server Reporting Services will work with SQL Server Express and Visual Studio Standard Edition. As I stated before, there is no such thing as "VB Standard Edition" as there is only one version of Standard, known as Visual Studio Standard Edition and that includes support for all languages. Hope this clears up any confusion. Thanks, Dan Fernandez Product Manager http://blogs.msdn.com/danielfe/ " This is TERRIFIC for $300 (US) One can Generate a ...Show All
Visual C++ What does error C2065 mean? I have the error posted below. How do I fix the problem?
c:\documents and settings\projects\mortgageapp.cpp(7) : error C2065: 'end1' : undeclared identifier Build log was saved at "file://c:\Documents and Settings\Visual Studio 2005\Projects\MortgageApp\MortgageApp\Debug\BuildLog.htm" MortgageApp - 1 error(s), 0 warning(s That means you have been using some variable without being defined or declared previously. In your case, you need to define end1 before using it. Take a look at http://msdn2.microsoft.com/en-us/library/ewcf0002.aspx for more detailed description of the error. Thanks, Ayman Shoukry VC++ Team ...Show All
.NET Development Is this hard to do, or is it just me ;-)
I have an xml document I want to extract information from and I am having a hard time achieving this. I want to extract data from the field elements. I want to know the name and the contents in the CDATA. So in the doc posted below I want to know: name = dossiernr and data = test name = naam and data = test My xml doc: < xml version="1.0" encoding="UTF-8" > - <RESPONSE XMLID="dd8433dd-356a-4cad-9d9d-0dacdd5fcc0e"> <SUCCESS REQUESTID="0" COMMAND="LOGIN" /> - <SUCCESS REQUESTID="1" COMMAND="DOCUMENT"> - <DOCUMENT ID="$(#STANDARD)\TROOST,000 ...Show All
Smart Device Development progressbar not updated
Hello! I have a strange problem: I am using a timer for updating a progressbar. Well, this is working when I am using the emulator but not when I copy the app on my smartphone. I tried to force a Redraw() on both the progressbar and form. I also tried Application.DoEvents() in timer_tick. I am clueless. Do you have any ideea why I searched the forum for "progressbar" but it seems nobody faced this before. Thank you, Augustin Calin Well, sometimes my phone is smarter than me . The reason why the progressbar was not updated was a theme I "developed" myself. Well, the colours for background and foregr ...Show All
.NET Development Possible bug? FileIOPermission failed
I think the following code should throw an SecurityException if I run the code from a network path. But it does not. try { FileIOPermission perm = new FileIOPermission(PermissionState.Unrestricted); perm.Demand(); } catch (SecurityException ex) { MessageBox.Show("Sorry, you can only run this application from your local disk.", "Security Error", MessageBoxButtons.OK, MessageBoxIcon.Error); return ; } And another problem I found is that I do not need to call Demand() to let SecurityException be thrown. Look at the following code: FileIOPermission p ...Show All
Visual Studio Express Editions Unable to add connection to SQLServer
Hello In the 'Server Explorer' dialog, I am unable to establish a connection with SQLServer Express. When choosing 'Microsoft SQL Server (SqlClient)' as the data source, the list of servers does not include the local machine. Manually typing the local host name or localhost does not resolve the problem, as a test of the connection to the local SQL database results in connection timeout: Error msg: Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding. Connecting to my local Oracle database is no problem however. I am running VS2005 Beta 2, and did not have Beta 1 installed ...Show All
Windows Forms howto set "display" text of dg Column headers @ design time?
hi, I have a datagrid that pulls data from the database. the fields in the db are as follows: 1) companyId 2) companyName etc This casues the headers to appear as: 1) companyId 2) companyName etc ...not very neat :-( I want the column headers in the datagrid to be: 1) Company ID 2) Name etc IOW, I want to be able to assign the text for the column headers, via the&nbs ...Show All
Windows Forms DGVComboBoxColumn gives ThreadStateException
I'm having a problem when selecting cells in a DataGridViewComboBoxColumn. Each time a cell is selected I see the following error: "DataGridView Default Error Dialog: System.Threading.ThreadStateException: Current thread must be set to single thread apartment (STA) mode before OLE calls can be made. Ensure that you Main function has STAThreadAttribute marked on it. ..." Firstly, I don't use any Main() methods in my application. I did try adding one with the suggested attribute, but it had no affect. Does anyone know what this means Thanks, Nate Another note: After clicking OK for th ...Show All
.NET Development HTTP status 407: Proxy Authentication Required +ISA Server
Hi, We're getting the follow exception thrown when calling our web service: System.Net.WebException: The request failed with HTTP status 407: Proxy Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy service is denied. ). I've found this article, but the problem is we don't want to edit machine.config as a pre-req. http://support.microsoft.com/ id=307220 So does anyone know how to replicate these attributes through code Thanks. I don't want to do this: NetworkCredential nwkCred = new NetworkCredential("username","password","domain"); myProxyClass.Proxy = new WebProxy("p ...Show All
.NET Development Monitor & Lock
Please verify whether the following observation is correct or not: ________________ public void fun() { Monitor.Enter(x); Console.WriteLine("Locked X"); Thread.Sleep(100); x=y; Monitor.Exit(x); Console.WriteLine("Released X"); Monitor.Enter(y); Console.WriteLine("Locked Y"); Thread.Sleep(500); Monitor.Exit(y); Console.WriteLine("Released X"); } __________________ In the above function let x,y be some objects. I started 2 threads on the same funtion fun(). Now both of these threads will try to lock "x" (the delay is deliberately inserted to achieve this). Now only one of them will suceed. But the thread that s ...Show All
SQL Server Moving ntext to nvarchar(max)
I just move our SQL server to version 2005. In new version ntext field is deprecated and documentation says that ntext(max) should be used. If I have table Table1 and ntext column Column1. When I execute following SQL statements: alter table Table1 alter column Column1 nvarchar(max) go 1.) Are out of row data automatically move to in row 2.) Or should I also execute something like this update Table1 set Column1 = Column1+'' where Column1 is not null 3.) Is there way to check if data is stored out or in row Best regards edvin The default fo ...Show All
