Paul Arena's Q&A profile
Visual Studio Express Editions Can I store the first column of a dataset in a string array?
Hi! Ok, so I figured out how to populate a dataset with data via an XML file and bind it to a datagridview. But now I need to fiigure out how to retrieve the data set index and first column into a string array. The cell in the first column contains the filemame (minus the extension) of a graphics file. I need to modify the filename so I can open it in a picturebox. Any ideas its because when declaring variables in a method/event, it is only scaled for that method and not accessible from any other method. The only way to make it visible to all methods to use that variable would be to declare it as a global variable... public class Form1 private SomeVar as Type 'Example: private myName as String .. .. end class ...Show All
SQL Server hit counters
WHy can I not get the hit counter to work on my website. I used WebEasy6 program. What was it about this forum that made you think your question could be answered here Without wanting to sound too rude, go somewhere else! I doubt anyone on this forum will be able to help you. -Jamie ...Show All
SQL Server VS2005 can't see the database in SQL Server !!?
hi I created 2 databases in "SQL Server 2005 Trial" Software, and when I try to add one of them to VS2005 windows form project the vs can see the SQL Server, but it can't see any of my databases!! pls help, Firslty I'm using Visual Studio 2005, C#.. Then I Installed the SQL Server 2005 Trail Virsion (180 Days).. I made the database by opening "Microsoft SQL Server Management Studio", right click on "Database" folder in the "Object Explorer", chosing "New Database", I designed the tables etc.. On the Visual Studio 2005, C#.. I add the database to my windows form by chosing "Add new Datasource" in the "Data" Menu, from "data configration wizzared" window ...Show All
Visual Studio copy - exclude?
Hi! I am trying to copy files from one destination to an other. I set the exlude files, but it doesnt work correctly < CreateItem Include = " $(BinariesRoot)\**\*.* " Exclude = " myBinary.dll " > < Output ItemName = " BinaryFilesToCopy " TaskParameter = " Include " /> </ CreateItem > < Copy SourceFiles = " @(BinaryFilesToCopy) " DestinationFolder = " @(ReleaseFolder) " ContinueOnError = " false " SkipUnchangedFiles = " false " /> regards Simon Hi, You will also need to include a path in the Exclude attribute. Basically the type of path you use in Include should also be used for ex ...Show All
Visual C# Getting the client printer names in a web application
Hi, I need help. I am currently developing a web application to print a crystal report directly to the client's printer. The application works well in my pc but when I port the application to our web server, instead of retrieving the printer list in client's pc, the application is trying to look for printers that are installed in the server machine. I developed my application using C# and I am using System.Drawing.Printing. PrinterSettings .InstalledPrinters to retrieve the printer list I realised it only trying to retrieve printer installed in the local machine. Is there any way to get the list of installed printer in the client computer Thanks in advance. if it's ASP.NET web app, best place to ask for ASP.NET ...Show All
Visual Studio Team System <ALLOWEXISTINGVALUE> not valid for System.Reason
Can anyone explain why <ALLOWEXISTINGVALUE> is not allowed for System.Reason. I would think this is just an ordinary string field. Thanks. Maybe its just my thinking on how this would work. I am not looking at the general viewpoint that you guys might have but a very specific viewpoint. I don't care what the previous state is. I have a list of allowed values per state. Once in that state I want the user to be able to change the reason within a defined set of reasons for that state. Using your example: State A: <AllowedValues> New </AllowedValues> State B: <AllowedValues> A-B-1 A-B-2 </AllowedValues> State C: <AllowedValues ...Show All
SQL Server File system error: A FileStore error from WriteFile occurred
Error: Code: 0x00000000 Source: SRC Process dimensions Error: Description: File system error: A FileStore error from WriteFile occurred. Physical file: \\ \ <pathto filename> attribute.asstore. Logical file: . . Errors in the OLAP storage engine: An error occurred while the <attribute id> attr ibute' attribute of the <dimensionname> dimension from the ' <database>' database was being processed. Errors in the OLAP storage engine: The process operation ended because the number of errors encountered during processing reached the defined limit of allowable errors for the operation. End Error I encountered this while incrementally processing a dimension via AMO script in SSIS. Does anyone have ideas on what this e ...Show All
SQL Server How to define programatically the width for columns??
Hi everyone, Either Sql2k or Sql25k are targeted if you answer to this thread. When we have source/destination files we usually wish to define its properties, the width for each field and so on. My question is related with this, how do such by-hand tasks via scripting inside the own ETL Tedious tasks are if there are more than 20 columns. Is it possible I think so regarding 2005 but about 2000 I haven't idea at all how to begin. Issue comes when one programmer must alter lots of columns due to for example, a new file format from mainframe is released. Thanks in advance for your time or advices, ...Show All
.NET Development Obtaining unicode char from Hex string
Hi, I got Hex value as a string. I need to obtain the char representing the hex value contained in that string. How do I do that in .Net Eg: Dim hexVal As String = "0646" Dim theChar As char = get Char from hex string() 'Must return ------ Thanks Noorul in VB... <StructLayout(LayoutKind.Explicit)> _ Structure conv <FieldOffset(0)> Dim s As Short <FieldOffset(0)> Dim c As Char End Structure Dim x As conv x.s = &H41 Debug.WriteLine(x.c) --> A EDIT: x.s = Short .Parse( "0646" ) Debug.WriteLine(x.c) --> if "0646" is an Hex number... x.s = Short .Parse( ...Show All
Visual Studio Team System How to build only project, not soluion.
Hi, My VS solution has many projects and I want to use TFS Build Type to create a script to deploy one project (or specified projects) only, but found that Build Type default create <SolutionToBuild/>. However, in the real world, one solution contains lots of project, and I do not want to deploy a whole bunch projects. Does TFS Build support certain syntax which only build Projects ! Thanks for your precious reply. Take a look at this post, you have a workaround here http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=500820&SiteID=1 ...Show All
Visual C++ Programmatically compiling code
I'm trying to compile a C++ file within a program with the below code: ProcessStartInfo^ startInfo = gcnew ProcessStartInfo( "cl.exe" ); startInfo->UseShellExecute = false; startInfo->Arguments = "C:\\test.cpp"; startInfo->EnvironmentVariables->Add("vcvarsall","C:\\Program Files\\Microsoft Visual Studio 8\\VC\\vcvarsall.bat"); Process::Start( startInfo ); The above code itself compiles fine and executes but test.cpp isn't compiled afterwards. Any advice would be great! I assume you installed vs2005 in c:\program files\, then try this code: using namespace System; using namespace System::Diagnostics; int main(){ ProcessStartInfo^ start ...Show All
Visual Studio Express Editions Problem getting value from the DataGridView component?
How do I get the value from an selected row with the DataGridView component to an Label component Example Add a datagridview with a two columns. Use this code. At some text in the cells and then start chnaging the selections. Public Class Form1 Private Sub DataGridView1_SelectionChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles DataGridView1.SelectionChanged Label1.Text = Me.DataGridView1.SelectedRows.Item(0).Cells(1).Value End Sub Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Me.DataGridView1.SelectionMode = DataGridViewSelectionMode.FullRowSelect Me.DataGridView1.MultiSelect = F ...Show All
Windows Forms How to programmatically create resource (resx) file given control.
Hi, I'm writing a custom designer. I figured out how to auto-gen the code that appears in InitializeComponent by using the CSharpCodeProvider along with a CodeCompileUnit. I'm wondering if there's a similar technique for producing a resx file given a control or other designer related entity. Thanks, Greg You can find information for creating resource files progamatically here: http://www.c-sharpcorner.com/UploadFile/casperboekhoudt/CreatingandusingResources11282005051810AM/CreatingandusingResources.aspx ...Show All
Visual C# NativeMethods Class
Every now and then I uncover a little reference or information on NativeMethod classes. As far as I can see they are for putting pInvokes into. Can anyone shed any light on why this is necessary, if I should include constants and structs in that class as well and well any information on them. When it comes to Pinvokes there are few requirements on where they can be declared or their visibility however object oriented design principals dictate amongst other things, encapsulation and abstraction of specific implementation details. One historical way to accomplish this has been to round up all of the various Pinvokes used by an application, library or other large block of code and declare them in an internal sealed class that is ofte ...Show All
Microsoft ISV Community Center Forums Unable to start debugging In VS2005
I have a sample which I was able to run in VS2003 but running the same sample in VS2005 giving me debugg error. Unable to start debugging. Iam getting the error message as given below. 1. The application you are trying to debug uses a version of the Microsoft .NET Framework that is not supposed by the debugger. 2. The debugger has made an incorrect assumption about the Microsoft .NET Framework version your application is going to use. 3. The Microsoft .NET Framework version specified by you for debugging is incorrect. For solving this issue I did In the Registry Editor , open the HKEY_LOCAL_MACHINE folder. Navigate to: HKEY_LOCAL_MACHINE\Software\Microsoft\VisualStudio\8.0\AD7Metrics\ ...Show All
