Hernan93's Q&A profile
Visual Studio Express Editions 2. POST : Help request on how to draw a vertical upward string?
Hi! I could not find my first post on the same request which I put on the forum pages today. Therefore, I am posting it a second time. Assume that I have drawn two coordinate axes on the screen (X and Y). When I want to put axis captions on the screen it's OK with X-axis such that Graphics^ gObj = this->CreateGraphics(); String^ xAxis ="X-Axis"; // Make necessary arrangements here such as measure string and find the optimal screen position, etc. then draw the string gObj->DrawString(// put necessary parameters here); Then the result is "X-Axis". It is just fine. How can I do it for the y-axis When I choose text alignment vertical, the string containing "Y-Axis" is drawn like this : Y ...Show All
Windows Live Developer Forums Virtual Earth 3d install
This may not be the place, but I can not find help anywhere for my problem. The Live.Mail group referred me here. My problem is that when I open and select the 3d map, the 3d objects are represented by a blue silhouette and never fill in the object. I went through the acceleration settings, FAQs, etc. to no avail. I am running XP Pro, IE7, 3.2 GHz P4 CPU, 1 mb ram. When I originally installed VE, I had my default browser set to Firefox 2.0. I reset my browser to IE7, uninstalled and reinstalled VE. I saved it to disk, also ran it from the site all to no avail. During the original installation, I also installed Live Local for Outlook. This seems to be OK so I left it as is. I noticed the map was taking a minute to load ( I have 768 kbps DS ...Show All
Windows Forms Form validation - Please help
HI I have a form with many tabs and textboxs. I have a button in the form to validate the fields , If its validation sucessfull it will save to the database OR it has to be directed to the relevant textbox in the TABPAGE. How I can direct the user to the relevant field if validation fails. (Note: I have many tabs in the form) I am using following code Private Sub Submit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Submit.Click ValidateCertAgent() (----If the above validation Fails, then user directed to the relevant text box or should be passed to the next validation---and so on---) ValidateCertProperty() ValidateCertPurchaser() ValidateAgentName() ValidateTrustee() If txtold.Text = "" Then ...Show All
Windows Forms ClickOnce deployment - Application identity is not set
I have developed a program using Visual Basic 2005 Express Edition. I have a Microsoft Access database included in the application, whose Build Action is set to "Content". To generate the connection string for the database, I use the following code: Public Shared ReadOnly Property ConnectionString() As String Get # If Debug = True Then Return "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & _ Application.StartupPath & "\AnniversaryReminder.mdb" # Else Return "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & _ My .Application.Deployment.DataDirectory & "\AnniversaryReminder.mdb" # End If End Get End Property When testing, I set my ...Show All
Software Development for Windows Vista vista 5600 what the difrence between each build
Windows Vista RC1 (x86) (Build 5600) - DVD (Checked Build) (English) Windows Vista RC1 (x86) (Build 5600) - DVD (English) Windows Vista RC1 (Build 5600) WDK - DVD (English) Windows Vista RC1 (Build 5600) SDK - DVD (English) vista 5600build what the difrence between each build and for example lets say i want the vista OS + the SDK do i need to download and install both one build on top of the other The first is the debug build and the other one is the retail build. WDK is the driver developer kit for Vista and SDK is the software developer kit for Vista. So you need to download and intstall the Vista retail build and the SDK. The debug build runs much slower but i ...Show All
Visual Basic BackgroundWorker - Best way to wait during CancelAsync()?
Hello, What is the best way to wait for the BackgroundWorker during CancelAsync() I have tried a simple loop like this: While BackgroundWorker.CancellationPending Application.DoEvents() End While This works most of the time, but sometimes I get this error: An exception of type 'System.InvalidOperationException' occurred in System.Windows.Forms.dll but was not handled in user code Additional information: Operation is not valid because it results in a reentrant call to the SetCurrentCellAddressCore function. Thanks for any ideas, Tom Why do you need to wait for the background worker's cancel to be completed The BackgroundWorker.RunWorkerCompleted event will be raised whe ...Show All
Game Technologies: DirectX, XNA, XACT, etc. XNA and MDX
hi guys. what is the future of MDX will the development of MDX go on or will XNA replace the existing MDX ...Show All
Visual Studio 2008 (Pre-release) Streaming with mtomMessageEncoding with readerQuotas, maxBytesPerRead issue
Hello there! I've just found that when streaming is enabled over HTTPS transport, setting <readerQuotas/maxBytesPerRead> for <mtomMessageEncoding> doesn't affect amounts of bytes that can be read from the streamed message. It is always 4096 which is the default value. My binding looks like: <customBinding> <binding name="DataStoreServiceBinding" receiveTimeout="00:30:00" sendTimeout="00:30:00"> <mtomMessageEncoding maxBufferSize="1048576" messageVersion="Soap12WSAddressing10" writeEncoding="UTF-8"> <readerQuotas maxBytesPerRead="524288"/> </mtomMessageE ...Show All
Visual C# Executing sql command in C# problem string literals
hi! I need an extra qoute in sql command to execute correctly but how do we execute through c#. This is what i do>>>>> string scriptTaskConnectST = @"Data Source=SE413695\AASQL2005;Initial Catalog=TestDB;Integrated Security=SSPI;"; executing this through c# code jobCommand = new SqlCommand("xp_cmdshell 'dtexec /f \"" + path + "\" /Set \\package.Variables[User::ArchivePackageName].Properties[Value];\"" + name + "\" /Set \\package.Variables[User::ScriptTaskConnectST].Properties[Value];\"" + scriptTaskConnectST + "\" When i check i resulting vaue i get this for scriptTaskConnectST as /"......\" \" Data Source=S ...Show All
Visual Basic Passing an array of integer from vb.net into excel
hi friends, Please help me passing an array of integer or string from vb.net in to excel.Suggest me a particular function. explain me if "resize" function is used for this. thanks regards Abhishek Hi spotty, Thanks for reply, The way u have suggested me already has been tried,but if u help me find a function which should be associated with an array for ex. " strarray=new string("a").Somthing()" to put values in spreadsheet then it will be comfortable as well as reduction of execution time.Pls help me if possible. Regards Abhishek Vaishnava ...Show All
.NET Development Display data retrieved from a datasource in a label
Hi all, can someone tell me how to display some data from a datasource into a label control Thanks What kind of DataSource are we talking about (Afaik there is no such class... or interface) this.label1.Text = dataSource.SomeProperty; this.label1.Binding.Add("Text", dataSource, "SomeProperty"); .. ...Show All
Visual Studio 2008 (Pre-release) Running WCF GettingStarted sample
I am getting the following exception when running the WCF GettingStarted sample. Searching through the forum by 405 revealed a solution but it does not say exactly how the App.config and Web.config should look like. I am using RC1 on XP. Thanks ........ System.ServiceModel.ProtocolException was unhandled Message="The remote server returned an unexpected response: (405) Method not allowed." Source="mscorlib" StackTrace: Server stack trace: at System.ServiceModel.Security.IssuanceTokenProviderBase`1.DoNegotiation(TimeSpan timeout) at System.ServiceModel.Security.SspiNegotiationTokenProvider.OnOpen(TimeSpan timeout) at System.ServiceModel.Security.WrapperSecurityCommunicationObject.OnOpen(TimeSpan t ...Show All
SQL Server Processing of cube created via DSO in AS 2005 fails
We are testing an application originaly written for AS 2000 with AS 2005. This application uses DSO from VB to create and process cubes. I have gotten over the major hurdles of getting DSO to work with AS 2005. However, upon creating of the cubes, I get errors processing it (even from Management Studio). Here's the code (abridged to remove error handling) that we use to create a cube: Dim dsoCube As DSO.MDStore Set dsoCube = m_dsoDatabase.MDStores.AddNew(cubeName) ' set the cube's description dsoCube.Description = sCubeDesc ' set the cube's datasource dsoCube.DataSources.Add m_dsoDatabase.DataSources(mvarDBName) Dim dboStr As String dboStr = sLQuote & "dbo" & sRQuote & "." ...Show All
Windows Forms Stored Procedure Syntax Error
Dear All, I tried following syntax to create Stored Procedure in Access db. But, it is not creating. is there anything wrong in the syntax CREATE Procedure ProductDetail ( @ProductID nvarchar (50) , @ModelNumber nvarchar (50) OUTPUT , @ProductName nvarchar (50) OUTPUT , @ProductImage nvarchar (50) OUTPUT , @UnitCost money OUTPUT , @Description nvarchar (4000) OUTPUT ) AS SELECT @ProductID = ProductID, @ModelNumber = ModelNumber, @ProductName = ProductName, @ProductImage = ProductImage, @UnitCost = UnitCost, @Description = Description FROM Products WHERE ProductID = @ProductID Thanks SELECT ProductID, ModelNumber, ProductName, ProductImage, Unit ...Show All
Visual Studio 2008 (Pre-release) SQLMetal bug...
Hello, I used Northwind.cs generated from SQLMetal tool and I wrote this simple code: Northwind ndc = new Northwind ( connString ); Region r = new Region (); r.RegionDescription = "Demo" ; r.RegionID = 5; Territory t = new Territory (); t.TerritoryID = "00000" ; t.TerritoryDescription = "Demo" ; r.Territories.Add(t); ndc.Regions.Add(r); ndc.SubmitChanges(); Region demo = ndc.Regions.Single(n => n.RegionID == 5); ndc.Regions.Remove(demo); ndc.SubmitChanges(); I received the following error: Unhandled Exception: System.InvalidOperationException: An attempt was made to re move a relationship between a Region and a Territory; however, one of t ...Show All
