VictorSalcedo's Q&A profile
Visual Studio Express Editions Trouble changing Label Text Permanently
I have two custom fields in my application. By default, they are labeled Custom and Custom2. From the main screen I have set up a Text Box and Button to allow the user to rename the fields (the label) for their own use. The code I am using for the Custom field is below: Private Sub Change_Button_Click( ByVal sender As Object , ByVal e As System.EventArgs) Handles Change_Button.Click List_Screen.Player_InfoDataGridView.Columns(9).HeaderText = CustomChange.Text Filter_Form.Custom.Text = CustomChange.Text Filter_Form.Custom_2.Text = CustomChange.Text MsgBox( "Custom field has been changed to " & CustomChange.Text) CustomChange.Text = "" End Sub To explain some of the code I am using, List_Scree ...Show All
Visual C++ Matrices of constant data
Why is it that the compiler can convert from 'int *' to 'const int *', but not from 'int **' to 'const int **' An example is included. Any thoughts would be appreciated. #include <stdio.h> int main() { int A[] = {0, 1}; A[0] = 2; const int * X = A; // ok printf("%d\n",X[0]); int B[] = {1, 2}; int C[] = {3, 4}; int * D[] = {B, C}; D[0][0] = 5; const int ** Y = D; // not ok //int ** Y = D; // ok printf("%d\n",Y[0][0]); return 0; } Mike Danes wrote: int A[]; is actually int const* A; Whether or not the [] form is used for the D pointer makes no difference in this case, the standard forbids the conversion either way. ...Show All
SQL Server XML Data Manipulation
HI, Since i started working on SQL 2005 Server i'am curious to know more about the usage of xml datatype. my idea is to create an xml column in a table and store the primary key value as the ID of XML tag, so that we can make the HDR DTL table in one single table, but i'am not sure this will work out or this is right way to approach XML in SQL2005 . Any links or methods showing the syntax for XML data manipulation will be great in this context. Mat Whilst that makes saving the data very simple for the application. It means all your data is stuck in side xml fragments in your table. if you want to start querying the data by fields within the XML you need to store materialise those out of the xml column. Additionally if you h ...Show All
Visual Studio Express Editions IDE Issue
I'm coding in unmanaged code. And the intellisense is bad for unmanaged c++. I have to close the project and open it up over and over to get the intellisense to work for like 2 times then it dies ;_;. How can I fix this issue Kiryn wrote: I wish there was a fix for this ;_; Could you provide more information on your working environment like the vc version, windows version and everything you think might be helpful for others to better understand your situation. thanks bite ...Show All
Windows Forms Click Once Configuration File
Hi, I am developing a smart client that is connecting to a database directly for now and want to put it on a CD that can deploy the files on a server. During the deployment, I want to set some application settings on the smart client, like setting the database server name and so forth. I don't want to do this on the client side. Is there a way to do this. Please let me know. Thanks!! Actually, when I tried changing the <application-name>.exe.config.deploy file to have the correct value after deploying the files to the server, I could not install the client. It said application failed to validate. Probably there is some hash check being done. :( ...Show All
Visual Studio Team System Merge branch to new branch
Is it possible with TFS to merge one branch to another branch - both branches created from the same trunk - but at different times The objective here is not to merge either branch back to the trunk, rather just merge the branches together. Thanks, Kerry We needed to do the same sort of thing, so we create the first branch from the trunk, then the second branch from the first branch. This allows merging between the branches, but not from the second branch to the trunk. ...Show All
.NET Development AD Authentication across domains
Hi, I have an ASP.net web application which has Forms authentication enabled. The users are authenticated by connecting to Active Directory using .net directory services. Everything was working fine untill the search domain matched with that of the domain of the server where the code is deployed. If i deploy the same code in a different server which is under a different domain, my authentication fails as by default it checks the domain of the server first rather than using the domain giving in the AD(LDAP) path string. How can I achieve cross domain authentication Web server is a windows 2003 machine and .net framework used is 1.1 Any input is highly appreciated. Thanks, Dinakar Folks ...Show All
Software Development for Windows Vista Working Sample with the Live STS
Greetings all, I managed to get a sample working with the Live STS and Cardspace UI trusting my own site. Figured I'd share: https://www.francisshanahan.com/cardspace/l.aspx regards, -fs ...Show All
Game Technologies: DirectX, XNA, XACT, etc. 3D presentation
Hi guys, I really want to waw my client and write a window display for a real estate shop using C# and managed DirectX 3D. It will be a presentation running accross 4 screens. I have a basic amount of experience working with meshes and textures, etc (I made a 3D space shooter around a year ago). But, I'm lacking ideas really of how to present pictures and info about apartments and houses... Could anybody possibly inspire me Thanks! Well, the origional request was a boring powerpoint style presentation, but as soon as I mentioned 3D they kinda perked up a little... Besides, I think powerpoint window displays dont really get noticed these days as its not different. Where, a ...Show All
Windows Forms AxWebBrowser: Method 'Navigate' cannot be invoked at this time.
I have a somewhat complicated problem, but it boils down to this: When calling Navigate() on an AxWebBrowser control, I get this error: "Method 'Navigate' cannot be invoked at this time." What exactly does this mean and how can I fix it [Note: I am using Visual C# - and I'm relatively new to it] Details: I have a custom tab control ( Magic TabControl ). At runtime, I add new tabs with an AxWebBrowser control in each one. The first one added works fine and I can call Navigate() successfully. The second one produces the error when calling Navigate(). If I use the same setup, except with the basic tab control (System.Windows.Forms.TabControl) I get no errors whatsoever. I conclude that it has something to do with the custom tab control an ...Show All
.NET Development What is the difference between Int.Parse() and Convert.ToInt32() ?
Hello all could any one tell me in details What is the difference between Int.Parse() and Convert.ToInt32() and when to use any of them on another way, when getting a numerical value from a TextBox, which one is the best and simply, try to demonistrate your reasons in deep plz. thanks again Mohamed The following is the defining of Convet.ToInt32 public static int ToInt32(string value) { if (value == null) { return 0; } return int.Parse(value); } ...Show All
SQL Server Transact-SQL equivalent of MySQL LIMIT
In mySQL for example i could have: ORDER BY ID DESC LIMIT 5,25 where it would start from 5'th row found and return up to 25 rows. How do i achieve the same in Transact-SQL The LIMIT 5, 25 part. Now i have this but its complaining about line 23 near 'WHERE'. Any ideas SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE PROCEDURE getMessages @username varchar ( 10 ), @startFrom int AS BEGIN SELECT ID , Sender , Subject , Date , New , Unread FROM ( SELECT ID , Sender , Subject , Date , New , Unread , ROW_NUMBER () OVER ( ORDER BY ID DESC ) [RowNumber] FROM Messages WHERE Username = @username ) WHERE ...Show All
.NET Development key container security
I'm trying to make an asymmetric key available across all users of a machine. Dim cp As New CspParameters() cp.KeyContainerName = "Red Pill" cp.Flags = CspProviderFlags.UseMachineKeyStore Dim rsa As New RSACryptoServiceProvider(cp) rsa.PersistKeyInCsp = False rsa.Clear() cp = New CspParameters() cp.KeyContainerName = "Red Pill" cp.Flags = CspProviderFlags.UseMachineKeyStore rsa = New RSACryptoServiceProvider(cp) First of all, is that the correct way to do it Second, if I run this from an admin account, and then run it from a limited account, I get an "Object already exists" error. What can I do to make it so any user across the machine can access ...Show All
Visual Studio Team System Problems with libraries being displayed on Quick Launch bar
I have tried to change the doc libraries that are displayed on the Quick Launch on the TFS sharepoint but it is inconsistent at best. Checking/unchecking the button in "modify columns" does not work on built- in item. When a built-in item was removed through Visual Studio, all of the libraries disappeared from Quick Launch except Project Management. We've encountered the same problem. Is there any way to restore the quick launch bar I tried using FrontPage to fix them but even if the web part is repopulated the links don't appear on the rendered page. Since we can't restore an individual project from backup this makes the issue bigger. ...Show All
SQL Server How to To transfer SQL server Express to web hosting Provider
Hello, FYI, I'm using Visual Studion 2005 with SQL server Ex Edition in my developer PC. So the problem now is how i can migrate the database into my web hostin provider . The provider also use the same version of SQl server. What i noticed the express editon dont have function to import or export. Anybody iin here know how to solve Right now, i'm create the databse using my controll panel in my web hosting then i create tables using management studio express, this way i must do twice works, 1st in my developer PC then into my web hosting..please anybody give a hand please I already copy web site include the app_data into my web hosting, but unfortunately i dont know the connections strings when i ask the provider they told m ...Show All
