EyyHomero's Q&A profile
Visual C# How do I uotput data to excel?
How do I uotput data to excel Thank you. http://support.microsoft.com/kb/306023/en-us#12 ...Show All
Visual Studio 2008 (Pre-release) DateTime display format in GridView
Does anyone know how to format the DateTime text and display it in my grid view. Right now the format is rather arbitrary. xmlns:local = " clr-namespace:BonusPromoWPF " then later: DisplayMemberBinding = " {Binding Path=startDate, Converter=local:DateTimeConverter} " wont parse XAML file, throws exception ...Show All
Visual Studio Express Editions How to create a LIB
Hi VB experts, I'm creating a series if small programs that will use several classes and user controls that I've created. I'm at a loss on how to package these together so that they can easily be used in the programs. From what I've read, I believe that I should create a library to contain all these elements. I am also confused as to how this is related to a namespace. I need a kick start on how to create a library in VB Express. Your assistance would be greatly appreciated, thanks. GrandpaB, I was able to add usercontrols (dll's) to the toolbox in VB express. I think it was as simple as 'Tools', 'Choose toolbox items', 'Browse' and point to the compiled dll. If my 'ol memory serves me correctly ...Show All
SQL Server SQL SMO Object
hi all, i'am engaged in migrating the database of one application which is developed in VB6.0 and SQL Server2000 to SQL server2005. Here the client is using the SQL DMO objects of SQL2000 to perform many database data manipulations for the end user, my problem is when i'am connecting the application to SQL2005 that session is ending up with an error. From the compatibility documentations i come to know that we need to use SQL SMO objects instead of SQL DMO , when i checked in msdn online i could only find code to connect to vb.net, can any one provide me information how to use SQL SMO object in VB 6.0..... thanks in advance Mat pls log your issue on http://forums.microsoft.com/MSDN/ShowForum.aspx ForumID=88 ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Spacewar .fbx models.
Just me, or are the models used in spacewar needlessly huge in dimenisons and in vertex count In wireframe render mode it's easier to see - the ones with gun barrels that have cooling holes are individually modeled that way - it's not like you can see that level of detail. The flying saucer one has an enormous number of verticies can could have been welded away. I haven't seen anything as to what's 'right sizing' a model for xbox360 but these have got be excessive for the level of detail that's shown in game. Dr.9 wrote: Ok, enough whining. Don't get me wrong, XNA is a _great_ start . Some features needed, and the demo's are a little lack-luster. Hopefully the xna team takes some advice (and ...Show All
Game Technologies: DirectX, XNA, XACT, etc. The device does not support creating a texture of the given format with the given ResourceUsage
Hello everyone. We've just started writing a PC game in XNA, and are progresing very quickly. However we're a bit concerned by the fact that the game started not to run on the artist's machine. Through installing VC#, we discovered basically it's failing to create a Texture2D with the following parameters: // Create the cache texture this.Texture = new Texture2D( graphicsDevice, 256, 256, 1, ResourceUsage.Dynamic, SurfaceFormat.Alpha8, ResourceManagementMode.Manual ); "The device does not support creating a texture of the given format with the given ResourceUsage" Or practically any parameters, truth be told. The graphics card is an NVIDIA FX 5900 Ultra, this works fine on various othe ...Show All
Visual Studio 2008 (Pre-release) What is most efficient way to create the list of image thumbnails?
Hi! I have a "little" question... ;) I would need to have (kind of) photo-album functionality in my application - it should display thumbnails of images from certain folder (and entering a folder with 2000 images should not bring the system to its knees!), and user should be able to move in that thumbnail view (using keyboard!) and perform some actions. Problem is, that there are so many options in all respects (what should be the container, how to get thumbnail of the images, how to do it asynchronous - so that folder with 2000 images would not block whole machine, etc.), that it is difficult to choose something In your opinion, what would be the most efficient way to do this Thank you very muc ...Show All
.NET Development ObjectDataSource_inserted - Get last inserted id
i am trying to get the id of the last inserted row in my table. have created an sql.xsd with query called test. when i configure the sql statement i use advanced options to make the sql "Refresh the data table". my problem is that i cant get the value from my query :( any suggestions using vb in Visual Studio 2005 Depending on a database, you would need to use scope_identity() function (for SQL Server) or @@IDENTITY variable for Access to query last identity value. Next link shows you how to do this http://support.microsoft.com/kb/816112/en-us ...Show All
Visual Studio Express Editions string count
I have in a string variable that has the path to a file. I want ONLY the count of the file name that is at the end of the variable. Example: string fName = C:\Program Files\Temp\test.txt I only want the count for test.txt, which equals 8. How do I accomplish this Hi, int posEsc = fName . LastIndexOf('\\'); int count = -1; // some value for "undefined" if not \ exists if(posEsc >= 0) count = fName . Length - posEsc -1; -- SvenC ...Show All
Visual Basic Layering JPG files in PictureBox
Hi, I am having some difficulty with a project I am working on and I haven't been able to get much help on it. I want to create a stoplight using GDI+. What I have are 4 images: - A normal stoplight where all three lights are gray-ed out - A red circle exaclty where the red would be on the stoplight - A yellow circle exaclty where the red would be on the stoplight - A green circle exaclty where the red would be on the stoplight All of these images are the same image/canvas size and if placed on top of one another would look like the stoplight has all three colors on. What I am looking to do is layer all these images, on top of one another, in a picture box. When I press a button labeled RED, I want the red light to appear on. Another butto ...Show All
Visual Studio Team System VS crashes when trying to change database connection in a SQL Project after installing datadude
As the subject says, since installing data dude CTP 6 and still the same after CTP 7 when I try and change the connection string on the properties on a SQL project VS crashes. Multiple crahses have been submitted. I have tried reinstalling VS team suite but no luck. Any pointers or should I raise a bug in connect. Simon, Can you please describe the steps you are doing before observing the crash, starting from opening the VS instance. Does it also happen on the empty project. Which connection string you are changing. "Target Connection:" What was the value before. - Sachin Kumar (MSFT) ...Show All
Visual Studio 2008 (Pre-release) Why doesn't this Code work?
Hello, my Code: Public Class Class1 Dim frame As Frame Dim _name As String Public Sub New ( ByVal name As String ) _name = name Dim win As frmMain = Application.Current.MainWindow Dim g As Canvas = win.FindName( "can" ) frame = New Frame frame.Name = name g.Children.Add(frame) End Sub Public ReadOnly Property Name() As String Get Return _name End Get End Property Public Sub BlendIn() Dim ani As New Animation.DoubleAnimation ani.From = frame.Opacity ani.To = 1 Animation.Storyboard.SetTargetName(ani, Name) Animation.Storyboard.SetTargetProperty(ani, New PropertyPath(frame.OpacityProperty)) a ...Show All
SQL Server Roles
Hi, I have added two roles to sql server. One called Officeusers. The other AdminUsers Added the appropriate logins to these roles. For example; james, john, ahmad to OfficeUsers and Mat, Nick to AdminUsers. How can these roles be now used in a connectionstring I can use each user login and his relevant password in a connectionstring to connect to sql server but not sure how/where/when the Roles come in to development. i.e. do I need to use the role in the connectionstring if so then what happens to the password. Not quite clear about all these. Thanks Hi, you can just login with the user, the appropiate roles and permissions will be associated with the users. You don’t have to do anything else like tweakin ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Microsoft's recommendation...
"If you are planning to release a game using the .NET Framework, it is recommended that you adopt XNA Game Studio Express, currently in beta." - wait, your now telling us it's *safe* this time to adopt the beta Didn't we also hear that with MDX 2.0 Michael J. Brown wrote: wait, your now telling us it's *safe* this time to adopt the beta Yes Didn't we also hear that with MDX 2.0 No - I certainly never saw anything that said that. However always adopting a beta is *always* a risk. And this thread is locked..... we're not discussing MDX2.0 timebomb in the forums any more. There is contact information if you have a business issue . ...Show All
Visual Studio Tools for Office insert image
how to insert image into word application from resource file. I would not use the clipboard as the solution this is a potential security issue with regards to data loss. For example the user has some important information on the clipboard and your solution replaces it with the picture the user will lose that data. I think the first answer works the best. Paul Stubbs Program Manager ...Show All
