Jabber's Q&A profile
Visual Studio Express Editions Help!! - Code doesn't update when I run debug
OK - This is my second time asking. No one has answered my last post. Yesterday - I created a program. While I was working on the code I occasional would run the program. I would then see some errors in the way I wanted the code to work and then make changes to the code. All the sudden – when doing the same thing as above – when running the code through debug I noticed that the changes in the code where not taking effect. I then tested my theory and found that I could even create errors or remove large chunks of code and the program would still run as if I didn’t make these changes. Can anyone please explain OK - I got a simple app to do it - I'll list it below: namespace WindowsApplic ...Show All
Windows Forms Empty space in DataAdapters returned values
When I display DataAdapters returned values in some control (eg TextBox, DataGridView, ...) empty space is added at the and of every returned value. Eg. if the database field is 10 chars long, and value stored in it is 7 chars long (eg. 'HELLO'), returned value is 'HELLO '. Is there any easy way to solve this problem I've solved this with added RTRIM functions in DataAdapters Select, Insert and Update command RTRIM but I'm very disappointed at Microsoft about something like this. This problem is even shown in SQL Manager Studio (of course they use their own controls :) Hi, This might be because you set the data type of the database columns to char (character) or nchar (unicode). These are fixed lengh ...Show All
Visual Studio Crystal Reports: How to make Parameter fields optional
Hi, Im a newbie at both C# and CR10. Im converting a M/F report to CR10, which actually contained 3 different layouts and selection criteria. I've got the selection criteria working except it needs to be optional. How do I make the CR parm fields optional thxs, drc "you mean to say that the user can have the option of entering what to filter... " That not exactly what i meant. Instead, if the user does not select anything from the the drop down list the filter should act as an include all. what is happening now is CR10 is forcing at least one selection. sorry for not being clear, i was trying to be brief. thxs again. drc. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. What is the .X file limbs equivalent
Please take it easy on me, I'm new to XNA and DirectX in general. In previous applications I would model say two boxes in Caligari GameSpace and join these as a sibling. After I save this as a .x file, I could access each box as a limb of the main model. Doing a count for limbs would return 3, 0 being the model as a whole, 1 being one box, and 2 being the other. Looking through the docs, I'm unable to put my finger on the equivalent in XNA. I do see a model class and mesh classes seem to be under this. Is this the same as limb 0 = the main model of the object, and then two meshes under the model that represent the two boxes Sorry if this makes no sense or if it has been asked previously. I really did try to search these forums for this ...Show All
Visual Studio Sdc.Tasks SetEnvironmentVariable - Why wont it set environment variables for me?
I have a small project which I call to set environment variables (for various 3rd party tools in our build process, etc.). I use the Sdc.Tasks.SetEnvironmentVariable which executes fine, and I know it's stepping in there because it throws an error if I call it with a bad property-name etc. Problem is, it doesn't seem to do anything, i.e. when MSBuild returns back to the command line, and I type 'set foo' there is no env-var created. In fact, the only env-var output from this project is 'USERNAME' which obviously already exists. What am I missing... Many thanks, Duncan Smith. <Project DefaultTargets="ValidateConfiguration" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <UsingTask TaskName=" ...Show All
Visual Studio Express Editions Button Click within a for each loop
Fairly new to VB express. Is it possible to have a button click event from within a for each loop on a form i.e. the button being clicked refreshes the form and moves on to the next iteration of the loop Any suggestions welcomed. I hope this helps or sheds some light: Dim myOtherArray() As String = { "Bob" , "Beth" , "Conrad" , "Grant" } Dim i As Integer = 0 For i = 0 To 3 Label1.Text = myOtherArray(i) 'MessageBox.Show(myOtherArray(i)) Me.someButton .PerformClick() 'this will click the button specified, replace "someButton" with the name of the button you want to click Next is this what you are after my apologies for being ...Show All
.NET Development Editing a MembershipUser without changing it’s logged on status or updating its last Activity date?
I have been trying to retrieve and update a MembershipUser properties without changing the MembershipUser loged on status for some reason I an unable to do it protected void Page_Load( object sender, EventArgs e) { // retrieve the username from the querystring userName = this .Request.QueryString[ "UserName" ]; if ( string .IsNullOrEmpty(userName)) userName = User.Identity.Name.ToString(); lblRolesFeedbackOK.Visible ...Show All
Windows Forms Disable Button Hover in C#?
How do you disable a button hover in C# I dont want to change the color I just want to disable the hover so that when the mouse goes over top of a button the button does no hover action. You can create your own button control, or what you could do for a quick solution is change the button's FlatStyle to Flat, then use a screenshot of a button as the background image of the button. ...Show All
.NET Development Regex Help
Let's say that I have a bunch of input strings as such: ----------------------- blah blah blah Attendees: Mr. Jones Alfred Mrs. Smith John Mr. Black Peter Mr. White Arnold blah blah blah ------------------ And I want to extract the last names of the attendees (i.e., in the above regex, I want four matches: Jones, Smith, Black, White) If a string does not have the "Attendees:" keyword, then I don't care about that message at all. Likewise, I don't care about people's names if they don't follow the "Attendees:" keyword. For example, in the two following input strings, "Chump" should not be returned: --------------------- blah blah blah Losers: Mr. Chump Chimp Mr. Chump Chimp blah blah blah ---------------- ...Show All
Smart Device Development Array.Resize
I'm trying to dynamically resize an array of objects and getting a error: Error 1 The type arguments for method 'System.Array.Resize<T>(ref T[], int)' cannot be inferred from the usage. Try specifying the type arguments explicitly. D:\Code\CSharp\StuntFighter2000\StuntFighter2000\StarField.cs 89 17 StuntFighter2000 I'm confused what this means my code is: Array .Resize( ref cStarArray, 210); cStarArray is declared as: private Array cStarArray = Array .CreateInstance( typeof ( Star ), 200); Any thoughts DodgingRain wrote: Not the same type so that isn't going to work. Not the same type of array, but say content. Array will work with Star[]. If you're using Ar ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Using Non-XBox 360 Controllers
As far as I can tell the XNA framework doesn't allow me to use controllers other than the XBox 360 gamepad. In future releases of XNA will the use of other controllers be possible If not, then the framework is fundamentally flawed for those wishing to make games for windows. Grayson Peddie wrote: My question for those of you making XNA games are "How many of you are only targeting Windows PCs " * Jim Perry raises hand. Are you talking about running XNA games under Wine for Linux systems I'm not really concerned about it. ...Show All
SQL Server convert character data to datetime
Hi! I need to insert character data into a SQL 2005 table in the datetime format. The strings I need to convert are in the following format: ddmmyyyy I tried using case and convert: cast('08162006' as datetime)) convert(datetime,'08162006',101)) Both attempts fail with the following error: The conversion of a char data type to a datetime data type resulted in an out-of-range datetime value. Any advice is greatly appreciated. Thanks. Good discussion. I'm having a new problem. I want to use the following sproc to perform the conversion when I insert records: set ANSI_NULLS ON set QUOTED_IDENTIFIER ON go CREATE proc [dbo].[spInsertType11TransactionData] @LoadTransactionCode decimal, @CompanyID bigint, @Period decimal, @CardType ...Show All
SQL Server IN function syntax - how do you delimit set members?
I am using the IN function in an expression. Can someone tell me the delimiter for members in the set I tried semi-colon but that doesn't appear to be working. My expression looks like this: IN(Status1, "Issued;Entered;Closed"). It always returns false even though the value of Status1 will always be one of the three listed values. The Help files describe it this way: IN Determines whether an item is a member of a set. Syntax IN (item, set) I should have made the point that this is not the SQL IN operator although it shares the same name. It is the IN function that is available when creating expressions within Reporting Services. I guess this might be consi ...Show All
Windows Live Developer Forums Any examples of new SDK's custom tile layer, but loading a mapcruncher created layer instead of the custom tile layer?
I didn't seem to find any references to how the mapcruncher layer object precisely "maps" to the new VETileSource object in the new SDK reference. It seems it would need to reference the layer's crunched xml file instead of the tile images directly, right Thanks for any help on this! use mapcruncher to make the png's from your source map. Put them in a folder that you can access through IIS or as a sub folder off your page using built in webserver from .NET change the one line: tileSourceSpec.TileSource = " http://localhost:4523/Customtiles/tiles/%4.png "; clearly it will only work while the port number stays the same. I'm pretty sure that you need a complete path here. On the web that woul ...Show All
Windows Forms Very Dangerous message
Dear all After I finished my Financial project by using VB2005.net and SQL SERVER 2005 and made publish for this project ,After that I Installed this project on my computer and when I open some reports from this project appeared this message below "Financial Project has encountered a problem and needs to close. we are sorry for the inconvenience If you were in the middle of smothing, the information you were working on might be lost " This message appeared alone in reports viewer and in this case I need to close the program How I can solve this problem I'm sorry, I'm a bit stuck now. Does it look like the exception is coming from your application, or something else, outside your app.. ...Show All
