Nishith Shah's Q&A profile
Smart Device Development How can I prevent the user from changing tables columns width
Hi How can I prevent the user from changing tables columns width for "ListView" and "DataGrid" Thanks I tried to set the Nonclickable property of the ListView it just disable the click event when clicking the columns header but it still let the user change the columns width. In the DataGrid want to see the column titles just not let the user cghange the width of the columns. So sorry it did not help Thanks anyway ...Show All
Visual Studio Tools for Office URI Formats are Not Supported
Software: VSTO SE, Visual Studio.NET 2005 Solution Platform: MS Word 2003 Template I'm using the following code to open the SaveAs dialog with file name created in prompt, and set to the path of a common web folder. However, the error I get back says that "URI Formats are Not Supported". Please advise as to how I can edit this code for the save to web folder. Thank you, for any assistance you can provide. sample code: Private Sub FileSaveWebFolderWithNamingProtocal() Dim eRom as string eRom = " http://www.eromaddress.org/erom/foldername/subfoldername/ " ChDir(eRom) With Application.FileDialog(Microsoft.Office.Core.MsoFileDialogType.msoFileDialogSaveAs) .InitialFileName = varia ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Sample of animated character.
Some time is passed after "XNA Game Studio Express/Framework 1.0" become available, there are now some source code samples from Microsoft (or others) of animated character (loaded from X file, animation too) Thank you Toni Dastle and his team has released a sample and also a tutorial at there Codeplex site of the XNA Animation Components. http://www.codeplex.com/animationcomponents There is a video on Youtube demonstrating a dwarf walking and runing. http://www.youtube.com/watch v=jD9DrHr8jwU ...Show All
Smart Device Development Object reference not set to an instance of an object
Hi expert, I have downloaded the callEvent application and hope that I can use this application to send SMS to my pocket PC emulator. However, when I click the connect button an error message saying that "Object reference not set to an instance of an object." I try to debug it and i found out that the following bold code is the cause of the error message. m_conman = new Microsoft.VisualStudio.DeviceConnectivity.ConMan(); m_conman.SetLocale(1033); // English m_conman.Initialize(); m_ds = m_conman.DataStore; m_platform= m_ds.Platforms.FindPlatformByInvariantName(platformName); m_device = m_platform.FindDeviceByInvariantName(deviceName); In addi ...Show All
Visual C# Is it safe to remove a delegate inside its delegated method?
This sounds a bit strange but it's a real world problem. Say I have an event Disposing and a method F() handles that event. obj.Disposing += new EventHandler(F); ... void F() { ... obj.Disposing -= new EventHandler(F); } Here's the problem, F() is going to remove itself from the invocation list of the Disposing event right at the time it's invoked. I don't find a statement for this in the spec. So could anybody tell whether this is designed to be safe or not guaranteed Thanks in advance. Emrah Yi it wrote: But I didn't know that user uses Managed Directx, so first post should be more explanatory... I talked in general and in general there is an event which is Component.Disposed and a p ...Show All
Windows Forms Checked List Box File Type Sorting
I am trying to write a program that will automatically change a users wallpaper image based on a list of images that I ahve shown in a Checked List box. The first Method i want to use to add files to it is by selecting a folder with images in it and adding them to an array. Then use a foreach loop to add them one by one to the Checked List Box. What I have now works, but it adds everything I want to know how to check the file extensions and sort out only jpeg, jpg, bmp, png, gif, and whatever else is viable for a wallpaper. Also do i need to detect sub directories incase they select a folder with subfolders Here is what I have now: [code] if (fbdWallpaperDirectory.ShowDialog() == DialogResult.OK) { string ...Show All
.NET Development Quick way of getting day and month and year from datetimepicker component
I want to get the day, month and year separately as three integers from a DateTimePicker component (Visual Studio 2005 - VB.Net). It seems that there is no property or method that allows you to do this..am I correct or did I just miss it... Would one need to write a custom function to obtain this then Thanks The DTP exposes the DateTime value through the Value property. You can then use use Day , Month and Year to get the values like so: int day = dtp1.Value.Day; int month = dtp1.Value.Month; int year = dtp1.Value.Year; Michael Taylor - 12/4/06 ...Show All
Visual C++ error LNK2001
Hi, (I saw the post on same subject but it seems to be a little different. so I'll use some word from that post!) There is a project earlier written in VC++ 6.0. I opened the same project in VS. NET 2005 and I am trying to compile. The code compiles properly (with couple of warnings) but while linking I am getting unresolved external symbol errors like this: The linker seems to have problem with seeing .obj from files in program (which are in the debug directory). It doesn't seem that the /Zl switch or the /NODEFAULTLIB are on. 1>Linking... 1>Utm.obj : error LNK2001: unresolved external symbol _RTC_Shutdown 1>Zone.obj : error LNK2001: unresolved external symbol _RTC_Shutdown 1>Zones.obj ...Show All
SQL Server Date Formatting
My problem is with the paramater format date. My code and data in SQL are showing the date correctly as dd/mm/yyyy. When I run report in SSRS a couple of columns show the date mm/dd/yyyy. The format option in all cells are set to 'd'. There is no difference between the properties on these cells. The dates themselves seem to go wrong on the date "31/12/4000" and returns them as "12/31/4000". Any help wqould be appreciated You need to change the report properties language setting to: English (United Kingdom). It defaults to English(United States) ...Show All
SQL Server SQL Backup hangs, server freezes
We have SQL 2000 running on Server 2003. The server has 4 GB RAM, RAID 1 and has the /3GB switch in Boot.ini. We have 6 databases, the largest is about 14 GB. Until recently I could use Enterprise Manager to perform database backups to a folder on the same server but now the operation fails. After selecting the location for the backup and clicking OK, the hard drive light comes on but goes out after 15 - 30 seconds. The progress bar does not move. I've waited and waited but nothing further happens and the server doesn't respond. The only solution is to push the power button and let the server re-boot. Very occasionally the backup will run for a minute or two and the progress bar might get to about one third of the way across, (in which cas ...Show All
Visual Studio Express Editions Can't get XSD to regenerate!
Visual Basic 2005 Express: After using Database Explorer to make a change to an SQL database table, there is no way to get the changes into the XSD generated code without deleting the entire project and starting all over again from scratch! I see no way that SSMSEE can help! Hi, I guess you can rightclick your Dataset in your Data Sources window. Select Configure Dataset with Wizard. From there you can update your changes in the xsd file... cheers, Paul June A. Domag ...Show All
.NET Development Using client to handle server events
I'm trying to use a client to handle an event on on a server. I have managed to do this successfully, however my solution seems somewhat convoluted... 1. Register server channel and all appropriate well known types on the server , and register client channel and create a new object from the server on the client . 3. Instantiate a new object from my custom-made EventProxy class and assign a delegate from this class to an event on the server. 4. Use this EventProxy object to handle the event fired on the server , then within this action, fire another event on the EventProxy class (so, we're on the server at this point). 5. Assign a delegate on the client to handle the event fired by the EventProxy class; so no ...Show All
SQL Server data are not allocated in the properly NDF. Why?
Hi everyone, The followings actions works fine. But only the first NDF (PRIMERO) is growing up. I don't get the point at all, I though that SEGUNDO would store February, TERCERO March and CUARTO April to December (according RANGE LEFT) I feel that there is something very important that I did not in all of this... I'm stuck. --Definition table CREATE TABLE [dbo] . [DatosMensuales] ( [Id] [int] NOT NULL, [Concepto] [varchar] ( 50 ) COLLATE Modern_Spanish_CI_AS NULL, [FechaAlta] [datetime] NULL ) ON rangoMesFE ( FechaAlta ) CREATE PARTITION FUNCTION rangoMesFP ( datetime ) AS RANGE LEFT FOR VALUES ( '200601' , '200602' , '200603' ); CRE ...Show All
SQL Server sql server connection
hello, before i'm using vb-access, now i would like to shift to vb8-sql server. i have here sql server express. i can make a connection with them but when i run my application to another pc, i cannot install it and i don't know if my connection will be working. i'm using a peer-to peer networking. please bear with me, this is my first time to do this stuff. can somebody explain it to me please thanks You said you're doing peer-to-peer networking. I recommend you use SQL Server Authentication for this to make it a bit more simple. Then, on your connection string, specify "Data Source=computername\SQLEXPRESS;Initial Catalog=sample_database;uid=name;pwd=password;" ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Shared SpriteBatch as a GameService
Hi everyone, Just wondering if having a global SpriteBatch is a good idea Does calling Begin() and End() a lot make things less efficient What would happen if you Begin() in the Game.Draw before base.Draw, then End() after If you had a bunch of classes drawing sprites would that be a good way to do it :) I've found it hard to find much about GameServices, and what I had read talked about creating Interfaces for the services you add. I tried adding a SpriteBatch as a service, and I was able to get a reference to it elsewhere and have it work fine, but is it a good idea Thanks! Nick The ZMan wrote: In SpaceWar I made several things static on the main Game class so that they could be used globa ...Show All
