SimHrdy's Q&A profile
Visual C# Variable doesn't increment
Hi, I'm creating a Tetris game in which I have an 'x' and a 'y' variable. At first they are set to 0. I use a timer to change the 'y' value to move the figure down. Here's the code: private void timer1_Tick( object sender, EventArgs e) { y++; Graphics grfx = this .CreateGraphics(); PaintEventArgs f = new PaintEventArgs (grfx, this .ClientRectangle); DrawFigure dr = new DrawFigure (f, x, y); grfx.Dispose(); if (y > 569) timer1.Stop(); } Yet, after each event, 'y' goes back down to 0, instead of incrementing. Why is this happening Check that this timer ...Show All
Visual Basic Buying Visual Basic 2005
Am I able to buy just VB 2005 or do I have to buy the Visual Studio suite Thanks in advance! I just looked, again. I didn't see anything in the way of a Standard edition. There hasn't been a pro edition since VB6 (So I'm told) So basically the answer is no. But you can still get just VB by way of an express version. http://msdn.microsoft.com/vstudio/express/vb/ And it's free and downloadable. Randy Dear Santa, Please make a VB Pro version with ASP.Net, webtools & mobile development for X-mas. Thanks. I been good! ...Show All
Visual C# Adding ListView Groups through code
The following code doesn't add the group names to the listview control. Anyone have any suggestions This is coming straight out of the documentation too... private void Form1_Load( object sender, EventArgs e) { // Adds a new group that has a left-aligned header listView1.Groups.Add( new ListViewGroup ( "Group 01" , HorizontalAlignment .Left)); listView1.Groups.Add( new ListViewGroup ( "Group 02" , HorizontalAlignment .Left)); // Adds a new item with ImageIndex listView1.Items.Add( "item text 01" , 0); listView1.Items.Add( "item text 02" , 0); listView1 ...Show All
SQL Server response time when browse
When I go through management studio and browse the cube it takes a very long time. When I run MDX queries the response time is less than a minute. What does Analysis Services do when you browse the cube through management studio Thanks, Edwina Derrick It is slow anytime we open it through the management studio. Thanks, Edwina ...Show All
SQL Server closing pipelinebuffer
Is there a way to signal to the PipelineBuffer during ProcessInput that no more rows are necessary Say I have a component's output connected to a custom destination component... in the destination component's properties, I can set the number of rows I want to consume. (The first 50 rows for example.) If I do it this way, the source component continues delivering rows - I can set my destination to ignore all rows after 50, but would like a way to tell the component above it "no more!" Is this possible Steve Steven Pasetti wrote: Actually, that's exactly what I'm doing. But ...Show All
Software Development for Windows Vista Cannot Pass Parameters Into Workflow
I've seen a couple of other similar posts, but I have still been unable to solve my problem. I am attempting to pass 3 parameters into my workflow. When I call the following code, I get the error that follows: workflowParameters.Add( "CurrentData" , submitData); workflowParameters.Add( "ProviderName" , _providerName); workflowParameters.Add( "ConnectionString" , _connectionString); WorkflowInstance workflowObject = _workflowRuntime.CreateWorkflow(workflowType, workflowParameters); EXCEPTION: Workflow Services semantic error: The workflow 'NdtWorkflow' has no public writable property named 'Cur ...Show All
.NET Development UnauthorizedAccessException thrown when Writing to a Remote Registry key
Hi all, I am trying to set a registry key value on a remote machine. I can open the key and read the current value without problems. I can also use Regedit (on my local box) to update the remote key value without problems. However, when I issue the following statement, I get an Unauthorized Access Exception thrown: ... regKey = RegistryKey.OpenRemoteBaseKey( RegistryHive.LocalMachine, remoteName).OpenSubKey(strKeyName); // Getting the value is just fine... string strVal = ( string )regKey.GetValue(strValueName); // However, Setting it throws an exception regKey.SetValue(strValueName,strValue); ... (where ...Show All
Visual Basic adventure works and 101 Sample files
hi All i have downloaded both of the above but can't seem to get any of the sample files to run in VB express 2005 which need the adventureworks_data db. does anyone know if it should work at all I succeded running the CreatingMasterDetails sample doing the next: 1) Using the DataBase Explorer (Open Table Definition), I have added the next two columns to Employee table: DepartmentID smallints Allownulls=true BaseRate money Allownulls=true 2) Using the DataBase Explorer upadate the colu ...Show All
Visual Studio 2008 (Pre-release) SetValue on Field, or Just Use Property?
Using BezierSegment as an example, can someone explain the difference using SetValue with the BezierSegment.Point1Property field and directly setting the BezierSegment instance's Point1 property There should be no difference. CLR properties like Point1 are there to simplify the coding experience and also provide "up-front", discoverable strong typing since DependencyProperty SetValue has to take object since properties can be of all diff. types. I highly recommend reading this section of the SDK if you're looking to bring yourself up to speed on dependency properties. Also, as a shameless plug, ...Show All
Visual Basic Class properties: an invitation to weaker OOP programming?
Why have class properties It just looks too much like a way to modify an object's data from outside the object, which leads to sloppy OOP programming( ) Coming from a strong OOP background with C++, selectors and modifiers seem appropriate if we are trying to be truely Object-driven. So instead of: Class ThisClass ' ' Data ' Private m_sName As String ' ' Properties ' Public Property Name() As String Get ' Return the value stored in the local variable. Return m_sName End Get Set(ByVal Value As String) ' Store the value in a local variable. m_sName = Value End Set End Prope ...Show All
Visual Basic Sharing classes between solution projects
I have created a VB.NET project (Project1) in a solution and I would like to share some of its classes with a new project (Project2) I am adding to that solution. If I right click on the target project, Project2, and add existing items, and then use 'link file', I am able to add a link to the desired class files residing in Project1. However when building the solution I find that I get errors because Project1 refers to the classes with "Imports Project1.MyClass", and Project2 when reading the linked file does not understand what Project1 is. I want to keep the code for each project encapsulated in one exe ...Show All
Visual C# Thread question
Hi all When i make a new thread how can i set its ThreadPriorityLevel to idel or lowest mmm... I think i sad ThreadPriorityLevel... not threadPriority !!!! The ThreadPriorityLevel is in System.Diagnostics namespace... not in the System.Threading.. But thabks for u`re interesting. ...Show All
Windows Live Developer Forums create a messenger plugin
I would like to create a messenger plugin, something like pressing a button in the messenger, and a windows form should open and show me a few options. Do you know any example for doing this Sorry this is not exposed with the activities API or any currently released API. Please refer to How to get Messenger Technical Support http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=368260&SiteID=1 ...Show All
Visual Basic Function for Time Help!!!!
I am trying to write a Shared Function that compare a students score in the mile to a standard score with age and gender as variables: I broke the time into two seperate units, Minutes and Seconds. The problem that I am having is that when the seconds is under the time permitted it kicks to the wrong boolean. Example: Public Function MRPassed( ByVal Min As Integer , ByVal Sec As Integer ) As Boolean Dim a As Integer a = Profile.Age Dim g As Boolean If (Profile.Gender = "Female" ) Then g = True ElseIf (Profile.Gender = "Male" ) Then g = False End If If (g = True ) The ...Show All
Visual Studio Team System TFS thinks I am TFSETUP
When I connect to our TFSServer for some reason it thinks I am TFSSetup. I cannot find anything in the registry to tell it otherwise and it appears that it is only happening to me. Any ideas Gary A. Bushey That's the first I've ever heard of that. TFS picks up "who you are" by examining your Windows credentials (who the IIS server sees you as). Here is some sample code that you can build into a tool to check who the server thinks you are. Create a C# console application, add a reference to Microsoft.TeamFoundation.Client.dll and put this code in the main file. Then run it passing the server o ...Show All
