Malleswar's Q&A profile
Visual Studio Tools for Office boilerplate text/Autotext
When migrating a vba app using vsto, what would be the best approach for 'carrying forward' numerous fragments of autotext Currently I have an attached template with the autotext and am using the command bar for a dropdown menu to insert the autotext into a Word document. Using VSTO (creating a Word smart doc application) - would it be better to utilize document fragments if so, where can I find info on this - specifically geared towards VSTO I have some info re: DocumentFragmentControls but this was through the very complex Smart Document Interface - is there a way to access a similar control in VSTO Bottomline: I would like to b ...Show All
.NET Development Display data from multiple tables into datagrid
I am using visual studio 2003 and was able to create a dataset and bind it to sql adapter but the data is from one table. I want to view the data from multiple table when i add the tables to dataset it only shows me 1st table. Not sure how to accomplish this... Any help will be appreciated. You have to use different datagrids or if you want it in the same grid you can create something called a view in the database & then bid it to that view. See below I created a view using enterprise manager for sql server called "bid21" & bind it to the adapter. thanks vj Example in C# ---------------------------- ...Show All
.NET Development .NET Remoting & Indigo
I had a look at the famous article "Introducing Indigo: An Early Look" ( http://msdn.microsoft.com/library/default.asp url=/library/en-us/dnlong/html/introindigov1-0.asp ) and I would like to add another row to the comparison table and that is "activation model", while .NET remoting has got a comprehensive model for activation (Single call, SAO, CAO), web services on the other hand just support single call. My question is about Indigo, Which model does it support I used the CAO model and it was wonderfull, its model is very close to local object oriented model and basically you can have one piece of code for both of local objects and remote ...Show All
Windows Forms DataGridViewCellToolTipTextNeededEventArgs
hi, why DataGridViewCellToolTipTextNeededEventArgs class have no constructor, how we can create an object of that w/o constructor Thanks Beolijza ...Show All
Visual Studio Express Editions Preventing a Null
Hello Folks, This is my first post, so please forgive me any mistakes. I have a form I have connected to a menu that allows the user to add color names that appear in a combo box on the main form. All works well. If the user tries to add a new record and save it, alas an error. I expect that because the two fields in the DB are set to "Do not allow Nulls." I want to build in some error checking so that when the user tries to save nothing (Null), a message box appears and allows them to correct the mistake. Anyone got any pointers for me Remember, I am very new to programming and this answer is probably stari ...Show All
Visual Studio Express Editions Do Loop
The problem is when the main function of a do loop is too short the program will freeze like so: Do Until Running = False lbl.Text = "meh" Loop well since lbl.Caption = "meh" is executed so quickly in the loop the loop is executed at a rapid speed and the program will freeze immediately >_< what I want is to have a very rapid speed speed(less than 1 millisecond) but without having the program freeze immediately. Any ideas on how this can be done PS: I already tried using Application.Doevents like so: Do Until Running = False lbl.Text = "meh" Application.DoEvents() Loop but it really lowered the speed. ...Show All
Visual C++ Simple (?) SQL DATETIME question SQLServer and C++
Dear all: I am stumped (again) with what appears to be the precision of the datetime field in an SQLServer table, where it is defined as 'datetime' length 8. I can enter date/time to the second there via the SQL Server Enterprise Manager. I use VC++ .NET 7.0 (just the ANSI C part of it though) doing ODBC. I got char strings and integers to work, but the datetime only works if full minutes are entered. As soon as a second is non-zero, it fails to update the table. I use SQLBindParameter for update and the SQLBindCol for the result set of the selection, and I tried two versions of which I always list one first and the other second: SQL_T ...Show All
Visual C# Making a window/control/panel dockable
I'm trying to mimic the same action on my form as the "Properties", "Solution Explorer", "Server Explorer", "Class View", "Toolbox", etc. tabs within the .NET IDE. What I want to accomplish is to be able to make my PropertyGrid control on my form perform the same way as the "Properties" tab, ie. be able to have my PropertyGrid control slide in and out of the side of my form, and have the option to "tack" it down. Hi sweeps78 I`m not an expert but i think i can help you woth this.. 1. U can make a panel or a form (what ever you want), 2. Make a butto ...Show All
Visual Studio 2008 (Pre-release) How can I determine the remote IP in WCF Service? (1)
(Repost from 2 months ago http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=335969&SiteID=1 ) -- maybe someone has some info now :) I understand that the title is fundamentally flawed -- the binding used might not have the concept of an IP. But, assuming I'm using HTTP or TCP bindings, how can I access the remote IP and similar data I looked into OperationContext, and it seemed to have a lot of interesting things, but I couldn't figure out what exactly to look for. It seems that the message headers aren't exactly useful (like OutgoingMessageHeaders.To) -- they always return an http://...Anonymous Uri. The scenario I'm trying to e ...Show All
SQL Server OLE DB Source - Data Access Mode - SQL Command
I got a package with data flow task. Within the data flow task I have flat file with Fiscal Calendar defined. I got another data source within the data flow task, which is OLE DB Source. I want to use SQL Command as data access mode. SQL similar to one the below is in there. ---------------------------------------------------------------------------------------------------- DECLARE @startdate DATETIME DECLARE @enddate DATETIME DECLARE @date DATETIME DECLARE @id INT SET @startdate = '1993-09-26' --Change these to SET @enddate = '2010-09-25' --whatever you want SET @id = 1 SET @date = DATEADD(dd, @i ...Show All
Visual Studio Express Editions invoke a sound with a timer
how would you write visual basic code for a metronome i'm fairly new and can't find help anywhere Find a nice metronone wav file invoke the sound with a timer You can control the interval with a slider. ...Show All
.NET Development ASPNET user not found
Hi, Uses: Windows 2000 Server, Windows XP, Sql Server, ASP.NET 1.0, Visual Studio 2003, .NET Framework 1.1; I've an ASP.NET application, and thought of deploying it in a Windows 2000 Server installed computer which also takes the role as Additional Domain Controller. I've installed .NET Framework 1.1 onto it as well, besides have run the ASP.NET application exposing the SQL Server's "SA" password in the Connection String which is stored in the Webconfig file. It was working perfectly without giving any errors.(The authentication mode is given to = forms). This the Webconfig file and the way I've declared the connection string ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Pixel and vertex shaders
hi, im wanting to learn how to use common framework inorder to show off my own vertex and pixel shaders. does anyone know where there might be a tuttorial for creating an evironment using programable shaders thanks in advance Hi, A "Common Framework" is a bit of a holy grail at the moment - it's fuel for an endless number of discussions online Seems that not everyone agrees on all the same things, some standards aren't considered ready (e.g. not everyone is happy with DXSAS yet) and then theres a whole bunch of tools that simply bend the standards to their own interpretations... Anyway, you ...Show All
Visual C# real time paint
how can i draw in real time a line on my form i dont want to paint it when the form is painted with the paint event is there another option Depending on how fast you want to draw you have at least 2 options: Use a Timer and in the Tick event use Invalidate() method to force the control to repaint (still using the Paint event). Use a Timer and in the Tick event use CreateGraphics method to get a Graphics object and do your painting. Use CreateGraphics to create a Graphics object and create another thread that draws on this graphics object you created. Be aware that no matter method you use you may still need to be able to ...Show All
Software Development for Windows Vista Purpose of HKCR/Record?
I couldn't find a more relevant forum. I'm suprised there is no COM Interop forum here. Anyway, can anyone tell me what HKEY_CLASSES_ROOT/Record is for Its subkeys are all GUIDs, and their subkeys are (generally): Default, Assembly, Class So each "entry" under Record points out a type/class in a COM Interopted assembly, but why What further confuses me is not all the types defined in my DLL are present in HKCR/Record, it seems to be a random sampling. No types in my DLL are marked [ComVisible(false)]. ...Show All
