SneakPreview's Q&A profile
Visual C# public data members vs. properties
what's the real difference between public data member and properties Just in case, I would check to make sure all of your references are correct. The difference between Itemset and itemSet is very small indeed. ...Show All
Visual Basic Creating a program that can save in a specific file format.
Hello, I was wondering how (and if) to create a program that will allow me to type some text, make some selections, and then save it. What I need to know is how to save the program then be able to re-open it properly. Thanks for any help. When you say "make it select the file format" I'm guessing that "it" refers to the Save and/or Open dialogs. Is that correct If the extension .TMS is the only extension you wish to support, then you set the DefaultExt property on the Dialog Control to "tms", and the filter property on the dialog to "File Type Description|*.tms" ...Show All
Visual Basic image backcolor (VB.NET 2005)
I intend to draw a picture and save to a file. However the backcolor of the image is black (although the backcolor of the pictureBox is white). I want a white backcolor. Does anyone know how The code is: Dim bm As Image = New Bitmap(PictureBox1.Width, PictureBox1.Height) bm.Save( "c:\a.bmp" , System.Drawing.Imaging.ImageFormat.Gif) Thanks. I like VB too! I'm not an expert on graphics. I've had a little experience in this area. Here's what I've learned. Very often if you don't parametrically sample the contents of an image and just move the sample into a container, there may be losses of image qualit ...Show All
Visual Studio Tools for Office InfoPath 2003 Tools for Visual Studio 2003
I am a regestered partner, Action Pack subscriber, and part-time developer. I own a copy of Visual Studio Professional 2005 but I do not have a MSDN subscription. I need to create a Visual Studio project to add an enhancement to an InfoPath 2003 form. As I understand it, I need to install the InfoPath 2003 Tools for Visual Studio 2003. How can get the needed tool. The InfoPath tools for the previous version of Visual Studio were available without cost. The only options I see are to pay $2,500 for a Premium MSDN subsription or pay another $799 for a sperate copy of Visual Studio 2005 Tools for Office. That can't be right. There must be ...Show All
SQL Server Foreach NodeList Enumerator
Does anyone have any experience of using the NodeList enumerator in a Foreach loop BOL is a bit light on this. I want to enumerate over an XML Document that is passed into my package. The package is executed from a .net application. Has anyone done anything like this Any demo material Should I pass the XML Document into an SSIS object variable or a String variable Can the NodeList enumerator enumerate an XML document that is stored in a String variable etc... Thanks Jamie Since others might be struggling with figuring out the InnerXPathString I thought I would post my experiences. I have the following recursive schema in the ...Show All
Visual Studio Tools for Office Excel 2003 automation: setting an array as value of range-object
I have been working on a routine for saving DataTable to excel (2003), with help from : http: / / support. microsoft. com/ kb/ q302094 This procedures however fails on the line which sets the value of the excel-range to the generated array. I was hoping to accomplish this using late binding, but this yields: "System.Runtime.InteropServices.COMExcep tion (0x800A03EC): Exception from HRESULT: 0x800A03EC. at Microsoft.VisualBasic.CompilerServices.L ateBinding .InternalL ateSet(Obj ect o, Type& objType, String name, Object[] args, String[] paramnames, Boolean OptimisticSet, CallType UseCallType) at Microsoft.VisualBasic.CompilerSer ...Show All
.NET Development Multithreading and Synchronization
Good Day! I'm a new member of this forums and I would like to seek some assistance regarding multithreading and synchronization. I was wondering if someone can provide me a simple approach in understanding these concepts. It was nice knowing that there are forums like this where IT professional can interact and share ideas. Thank you very much! Not for nothin: I think this refernce actually helped me the best on this topic, at least conceptually. It uses C instead of VB but I was able to get the concepts which also apply to VB of course. Good luck. ...Show All
SQL Server cannot view
Thought I edited a previous post but apparently not. The cannot view problem is with a png file inserted on a start page of a web site. Other Gif and Jpeg files are viewable with IE and Mozilla but not the png file. Sorry for the confusion as I am a new user to these boards and didn't get the post in place as I intended. We've placed some banner ads from sponsors on our web site and I cannot view them with IE. The ones that are there in either Gif or Jpeg are viewable but we have one in png and I cannot see it. This same banner is on another site in Germany and I cannot view that one either. I've also tried ...Show All
Windows Forms Win32Exception while creating a form
Hi I am getting the following exception. This happens when I try to create and dispose this form repetitively in a very short period of time. Say I just keep clicking show and close rapidly. This is a huge form with lots of controls in it. I tried to do a GC.Collect() after the Close but that did not help. Has anybody here faced this kind&nbs ...Show All
Visual C# Mapped network drives
Hello, I need your help in this question: (First of all: My network drive is \\hermes\hermes and is mapped into the I: unit.) If I call the program in this way: myProcess.StartInfo.FileName = @"\\hermes\hermes\sss.exe"; myProcess.Start(); I have no problems, but if I call the program in this other way: myProcess.StartInfo.FileName = @"I:program.exe"; myProcess.Start(); I have an exception, that says the system can't find the file. This have an easy solution...To put the code in the first way, but the problem comes when I call sss. ...Show All
Windows Forms Need help populating a DropDownList in and EditItemTemplate
I have a dropdownlist that I have in an EditItemTemplate that I need to populate with a list of files in a directory on my web server. Currently, this is how I'm retrieving the file names: DirectoryInfo dir = new DirectoryInfo(@"e:\web\xxx\htdocs" + strPath); FileInfo[] bmpfiles = dir.GetFiles("*.*"); foreach ( FileInfo f in bmpfiles) { ddl.Items.Add(f.Name); lblMessage.Text += "Name is: " + f.Name + "<br>"; } From my web form I am calling this class, passing in a path (directory name), the DropDownList I want to add the items to, and then a Label to see the ...Show All
Visual C# struct question
I get this error when I try to reference my struct that says "Use of possibly unassigned field" my struct is placed outside of a class and looks like this struct mystruc { public int e1, e2, e3, e4; }; this struct is in a client program and the int varibles are given values at runtime where im geting the error is in the button event, the code looks like this mystruc struc; if(struc.e1 >= 10)<--this is where the compiler error is thrown { some code here } the fix in dynamic help tells me to give it a value first like struc.e1 = 0; but this makes the struct pointless any help would b ...Show All
SQL Server Need help to install sql reporting services
I am trying to install sql reporting services and getting stopped in few places. First Reporting Services Virtual Directory window complaints about SSL and I just uncheck the box. But the major issue I have is when installation wizard asks about sql server instance. No matter which instance and Credential type I put (I tryed all possible variations), I would either get this message: 'Not Associated with a trusted SQL Server Connection' or this: The Report Server requires SQL Server 2000 with Service Pack 3a I am trying to install it on my machine which has vb.net and local iis installed. The SQL Server 2000 installed ...Show All
SQL Server Unable to set Default Schema for a group
We're using Windows Authentication with our SQL Server. We've added a domain group to the SQL Server groups and would like to give it a default schema. The properties window is the same for users and groups but the default schema field is enable only for user entities. We cannot add a default schema to a group. Is this by design, a bug or a problem with our SQL Server installation Updated on 2005/08/29 My first try was done at through Database\Security\Users. I tried going through Server\Security\Logins and I got this error message Alter failed for User 'Domain\Group ...Show All
Visual Studio Express Editions Computernames
Hi How can i see the names of all the computers in a network, which are connected to my computer or which my computer is connected to. Regards Thomas do you want the Shell browser: or the Directory Object picker : ...Show All
