Niram's Q&A profile
Visual Basic Windows Forms Gridlines
Hi I've just installed Visual Studio and opened up a new project in Visual Basic mode, but the windows form has no gridlines on it. I've searched through the menus and help, but can't find where to turn these on. Please help! Ben That did it. I also hadn't realised VS needs to be restarted in order for the feature to be activated. Thanks for your help! Ben ...Show All
Windows Forms need to pass variables between custom actions
I can pass public variables into a custom action via the command line. How can I pass either old or new variable information back into the installation process for another custom action to make use of I am dealing with logins and passwords. Yes, Windows Installer logging policy here. Scroll down to Logging http://msdn.microsoft.com/library/default.asp url=/library/en-us/msi/setup/machine_policies.asp ...Show All
Visual Studio 2008 (Pre-release) DataContext lost in a ModelVisual3D??? Is it a bug?
Hi all. At the end of this post I added 2 pieces of code. Basically, the second one is the same as the first one but wrapping the _itemContent with a Viewport3D so that 3D animations are possible on the list items. In both cases the _itemsContainer.ItemsSource is set in the code behind in the Loaded event handler of the Window. However, the 2nd code doesnt work and after many experiments I detected that the DataContext is lost. My question is: is this supposed to happen For some reason the VisualBrush "blocks" the cascading of the DataContext Is there another way to create a 3D ItemTemplate The Templating2 sample here http://msdn ...Show All
Windows Forms GetProfileString() - WriteProfileString() successors !
Hi All, Is there an implementation of GetProfileString() and WriteProfileString() functions in .NET Something similar to java.util.Properties class Thanks in advance ! Thanks vbasics, but I may app has to read MANUALLY created file with string tables (string translations to different languages) - that's very convinient in INI file structure, where [section name] u ...Show All
Visual Studio Express Editions DataSets Are Mixed Up Across Two Projects
Hi Folks, I have two Unrelated Projects that show on the Startup Page. If I am working in the first Project and then close the first Project and open the Second Project, the DataSet for the first Project appears in the DataSet sidebar pop-out panel. It's like the DataSet is stuck and no matter which Project I open the same DataSet is active. If I close the first Project and then close VB Express and re-open VB Express, the correct DataSet appears where it should be. Is there a way to correct this behavior Thanks much. this is way possible depending up what database ...Show All
Windows Forms best practices question: setting application focus
So there are two applications, Cow and Sheep, animals from the same farm. User clicks on something in Sheep which sends a message to Cow, who opens up a Cow.Milk form and calls .BringToFront on it. The Sheep still has focus. But, the Cow.Milk dialog is hidden behind the sheep application. I was hoping that Cow.Milk would show up on top of the Sheep app, but with the focus still on Sheep. However, the user can't see Cow.Milk until they focus anywhere on the Cow app, or move Sheep out of the way. So, would it be immoral to fire some windows message (WM_ACTIVATEAPP) in Cow to steal the application focus away from Sheep Is there a better way to ...Show All
Windows Forms checkbox in datagrid capture click event
Hello, I have a datagrid with a checkbox in the first column. I am trying to let the user select the checkbox in a row then fire an event from the checking of the checkbox. any help on the approach or examples appreciated. I am unable to catch the click event of the row. Regards Peter Problem sorted. Bit of a hack job to get it to work but it works. Peter ...Show All
Windows Forms Row selecting problem
is there any way to unselect(remove highlight) a row when i select another row.... whenever i select a row : - dgItem.Select(dgItem.CurrentCell.RowNumber) the previous row is still highlighted.... how can i solve this problem...thnks in advance Or keep the old row no in a variable , then Unselect() it. ...Show All
SQL Server Dynamic Database Source Changing
Hi, I am building a data warehouse for a customer who has systems located in two different countries. I need to import that data from four seperate databases, which all share the same structure. To do this i have created 20 packages to import that data from the source database. What i would like to do, is at run time set which database the SSIS package should get its data from. In sql 2k this was easy with a global variable that was set, then use a dynamic properties task to set the data source. How can i achieve the same result in SSIS the data source is an ODBC connection, with the four ODBC connections having similar names, ...Show All
Visual Studio Team System Beta TFS MSSCCI plugin now available for VB6, VC6 (not yet VS 2002/2003)
There's now a beta of the TFS MSSCCI plugin for VB6, VC6, etc., but it's not for VS 2002/2003 -- that's still too come. You can download it at http://www.microsoft.com/downloads/details.aspx familyid=32202966-EF04-442F-8C5C-88BDF15F551C&displaylang=en . Brian Harry posted some details about it, including the fact that it is not part of the go-live license . http://blogs.msdn.com/bharry/archive/2005/12/29/507993.aspx Buck I tried this out on a simple little VB6 project to see how it worked, pretty slick at least for having TFS integration (and a bit faster than VSS in my opinoin) for those of us with legacy ...Show All
.NET Development FTP list result
Hi, I'm retrieving a detailed list of files into a string array via FTP. Each item in the array looks something like this "drwxr-x--- 3 vincent vincent 4096 Jul 12 12:16 public_ftp". What would be the easiest way to break this info down and put it into the relevent columns on a listview control(name, date, attibutes etc). I'm really stuck on where to start. appreciate any help Chris We don't, but you know how many whitespaces there are after the filename. So you should find the last whitespace that can indicate a filename. ...Show All
Windows Forms datagrid column cannot display time without date
i'm write a windows application using c# read the MS Access database to a dataset and display in the datagrid and users can select, insert, update, delete the rows through the datagrid now i have a problem as some of my column is set to datetime - short time but in datagrid, the value displayed is the date without the time e.g. 17/4/2003 now i just wan ...Show All
Microsoft ISV Community Center Forums Using VB in Excel 2003
Can anyone help me rework this code. What I need is the code to call four columns. First is a name column. Then a space then 3 numbers separated by slashes each with a different rule for coloring. So example let’s say name is Smith I want Smith 32/15/3.4 And the column where 32 comes from let’s say has parameters 20+ is green, 15-19 is black, 10-14 is red and below 10 is plum and bold. Second column number would be similar except that the parameters would change. So 9-12 would be green, 13-14 black, 15-17 red and 18+ plum and bold My feeling is that I would need three if statements for the colors, but I can’t see ...Show All
Visual Studio Express Editions printing MSchart in VB2005
I am having lots of trouble trying to print a chart in VB2005 I get this error now The runtime has encountered a fatal error. The address of the error was at 0x7a005c3d, on thread 0x11c4. The error code is 0xc0000005. This error may be a bug in the CLR or in the unsafe or non-verifiable portions of user code. Common sources of this bug include user marshaling errors for COM-interop or PInvoke, which may corrupt the stack. this is my code : AxMSChart1.EditCopy() If My .Computer.Clipboard.ContainsImage() Then #### error here ###### Dim grabpicture As System.Drawing.Image grabpicture = My .Computer.Clipboard.Get ...Show All
Smart Device Development xmldocument.load - Anyway to get bytes loaded?
I'm using C# to make an app for the Pocket PC (funny enough) and was wondering when using xmldocument.load , how I can get the number of bytes loaded A 300kb XML file can take a few seconds on the pocket pc so I wanted some way of getting the bytes loaded to make a progress bar. I was thinking of timing the first time the xml file was loaded and then storing this and using it as an estimate (I can see the problems with this) but surely there must be a better way I'm pretty new to C# so please be simple with your reply :) . Thanks for any help you can provide, Jon. Note: I got a feeling this isn't probably .net ...Show All
