Heikki-Pekka Noronen's Q&A profile
Visual Studio Express Editions variabels in a name
I 've got a question: is it possible to set a variable in a name I 'll give an example of what I want! I want to add some text in textbox5. and variable x = 5... Textboxx.text = "example" You see I know this code isn't working but I wanted to give an example of my problem. Is there anyone who know (if it is possible) how you can get variables in a name thx I don't quite follow... do you want to change the variable name of a variable at runtime If that's not the case... would you mind walking us through it in psudo code so we can better understand. ...Show All
Visual Studio Express Editions Arguments passed to an event
Hello, I'd like to know how I can acces the arguments passed to an event function. For example, let's say I have a button on my screen. To make a click event, I double-click on it in the designer. Then I get code like this in my code screen: private void button1_clicked( object sender, EventArgs e) { sender.Text; e.X; //Both not working } Now the object sender should be the button, right But I can't do things like sender.Text or e.X. And according to some resources on the web, things like that should be possible. Also, changing EventArgs e to MouseEventArgs e, is not working. It gives an error when trying to run the program saying: Error 2 No overload for 'button1' matches delegate 'System.EventHandler' ...Show All
SQL Server sqlcmd –S .\%INSTANCENAME%... fails after install
I'm new to sql, so go easy ;) I'm attempting to install sql for a BCM 2007 installation, and I'm using this document: http://www.microsoft.com/downloads/details.aspx familyid=f24267ee-9ad5-4be5-b888-c9a50ae395ca&displaylang=en Now, I'm trying to do this on Windows 2003 Standard server, which may be the problem, but perhaps not Anyway, the command I'm attempting to run is: sqlcmd –S .\% INSTANCENAME % –E –Q “exec sp_grantlogin [% DOMAIN %\% USER %]; grant create database to [% DOMAIN %\% USER %]” which is basic enough (and I did replace the %%'s with the correct info) but I'm getting this error back: Sqlcmd: '-S': Unknown Option. Enter '- ' for help. Any ideas edit: I did just notice this ...Show All
Software Development for Windows Vista No show on samples
Ok, IE file version of 7.0.5450.4, .Net 3 CTP (as sandbox instructions), card selector no show on samples, fully able to login to Kim's site, can select and send card to sandbox, but site is "Unable to service my request". Why Luke You need to see the AssemblyInformationVersion (open in reflector, and select the assembly, and hit <space>) You should see this for the July CTP: [ assembly: AssemblyInformationalVersion ( "3.0.4307.0" )] Anything other than that, and it's not going to work Garrett ...Show All
Windows Forms IE Favorites
I tried to restore a backup of my "IE Favorites" folder and now I can not view my favorites or add new links. I get "Unable to create folder, or access denied". I need help This group is for the development of windows forms applications, you will need to follow the support links for the windows xp system, you can get to this from the windows xp home page on Microsofts main site. On a side not, make sure that you have copied them to the right directory and that you have the correct permissions on the objects. You may have to go into the advanced options in the permissions section and take ownership of the files. ...Show All
Visual C# [otp] Finding controls on a web form
I'll set out the pattern for you. I am writing a method - purpose unimportant but the location I think is important. The method is based in a user control, this control is on a web page that also inherits from a Master page. I am trying to find a control that is on a different user control that is in the same web page. I have tried various routes of the Page.Controls collection and using the FindControl method always returning me a null. If I understood the heirarchy better I could probably find it. Page.Parent is returning null. Page.Controls[0] appears to be the base page It's probably Page.Controls[0].Controls[a reference to my usercontrol in question].FindControl("control"); So far though I haven't found it :) ...Show All
Windows Forms ClickOnce deployment
I can't get click-once deployment to work from Visual c# express. The upload works fine, but when I click on the link to install, an XML page opens and nothing else happens. I am using my ISP's host server. Hello! Thank you, Marie! In the meanwhile my problem has been solved by the provider. After adding the mime-types they only did a reload of Apache the first time - which was not enough. After restarting the server everything now works fine. Nice greetings Horst ...Show All
SQL Server One report based on two cubes
Hi, Is there any possibility to build one report based on two cubes please come up with different solutions for this issue. One way to do it is to create separate data sets for each of these two cubes contained in the report. E.g., in "Adventure Works DW" data source, one data set could be created with cube "Channel Sales" and another for "Direct Sales". More on using AS data sources: http://msdn2.microsoft.com/en-us/library/ms156334.aspx More on the cube selection button: http://msdn2.microsoft.com/en-us/library/ms155880.aspx ...Show All
Visual Studio Breakpoints stopped working
All of a sudden some breakpoints in my solution stopped working. The tooltip displays the following error message: "The breakpoint will not currently be hit. The source code is different from the original version." I rebuilt the solution; deleted /bin and /obj directories of the project in question; restarted Visual Studio; all to no avail. Any hints what might cause this, and how to solve it I'm using Visual Studio 2005 Professional Edition. Addendum: This seems to affect only breakpoints set on a method head. Breakpoints set on a statement inside the method still work. I'm getting this also. On a C# winforms solution with 7 projects it seems that VS2005 does not correctly identify changes to an ...Show All
Visual Basic Problem with a calulator
Hello, im new here and i have a quick question. When i make VB do maths like: Label1.Caption = Text1.Text * Text2.Text (or 5*5=25) However if i try Label1.Caption = Text1.Text + Text2.Text i get something like 5+5=55. How could i make it add up numbers in a text box Int() Attempts to convert the object into a integer Same a CDbl() for double, Cbool for boolean, cStr for string... and so on. You could also use CType() command to cast objects from one type to another. (When possible.) Dustin ...Show All
Windows Forms Answer DataGrid row insertion
How to add new row in datagrid in between two rows I tired to add new row in selected index in table but its not working still it adds new row at last position in datagrid. Thanks just check the following link. This link will helps you to add the new row in between rows http://www.codeproject.com/aspnet/DataGridInsert.asp ...Show All
Smart Device Development expected 'text/xml'
I have a webservice that returns a DataSet. The webservice is added as a webreference to a PocketPC WM5.0 project. I cannot figure out this error. If I run the compiled exe of the PocketPC from the project bin directory, it works fine, but once I try to run it through the VS emulator it throws the below listed error. System.InvalidOperationException was unhandled Message="Client found response content type of 'text/html', but expected 'text/xml'." The webservice is at http://24.248.49.225/Service.asmx and the code for the service is: using System; using System.Web; using System.Web.Services; using System.Web.Services.Protocols; [ WebService (Namespace = "http://tempuri.org/" )] [ W ...Show All
Visual Basic How to develop divided interface to show 3 forms
Previously my program in VB6.0, i am using Activex Dockit to divide the Mdi Form interface into 3 parts. meaning that- left frame, center frame, and right frame. But after migrating to vb.net, the AX Dockit is not compatible with vb.net anymore. So there any way to have the same interface in VB.NET without Dockit Leo Ng wrote: Yes, it is possible to load the form to right or left panel Hi Leo, Yes, you can put a Form into a Panel. I found this example on the MSDN forums... Private Sub LoadForm( ByVal oForm As Form, ByVal Title As String ) 'Change the Caption Text = System.Windows.Forms.Application.ProductName + " " + Title 'Set the form up for display With oForm .TopLe ...Show All
Visual Studio 2008 (Pre-release) Resize Controls in Canvas
Hi, I want to use Canvas Panel in XamlBrowser Application And whenever my page is going to resize according to that my controls are also resized ... Can anyone guide me what to write in .xaml file and i don't want to write a single line in Page1.xaml.cs file... Code must be in Pag1.xaml file only.... Thanks in Advance.............. If you choose Grid instead of Canvas, you'll get many of the autoresizing/layout capabilities you are asking for. For example: <Page xmlns=" http://schemas.microsoft.com/winfx/2006/xaml/presentation " xmlns:x=" http://schemas.microsoft.com/winfx/2006/xaml "> <Grid > <Grid.ColumnDefinitions> <ColumnDef ...Show All
Visual Studio Express Editions Where to keep User ID and Password if the user choses to check remember my user name and password
Hi all, In a C# windows Application I have a login screen which will ask the user id and password. It also provides a check box "remember my user id and password". So when ever the user checks that check box, I have to store that information (user id and password) some where so that the user need not to enter again and again. So where should I store this information Which is the efficiant and secured way. Is this information should be stored in cookies or some where in windows registry or should I write a windows service for this or should I store in a file or database Please do me favour by your valuable answer. Thank you, Raviner Reddy.K ...Show All
