Helio D's Q&A profile
Visual C# Need help with .Split()
I've actually got two situations with this method. The first is with the .Split command. It works with the majority of the names it's passed but a few are not being processed correctly. For instance, the majority of the name fields entering this routine look like this: Holt, James; however, a few look like this: Harden, Jr.,James, which the .Split doesn't process. I've tried several configurations, {' ', ',', '.'} for example and still nothing. The configuration shown below is the last attempt. The second problem I'm encountering is an indexing error. When I click on a name in the Tree, then click on a letter above the name I get this error: "Index was outside the bounds of the array." The tree looks like this when th ...Show All
SQL Server Unable to set Identity_Insert Off?
Hi i am unable to set Identity_insert off in sql server compact Can you please tell me if sqlce supports or not If it does not support what is the work around that can be done Please tell the workaround in detail i mean altering table for identity key e.g. Because i have seen some posts that talk about alter table but i am unable to understand how that can done Thanks Thanks for your response. But i am unable to implement the alternative method. Please help me implementing and ignore my ignorance. I have a table tbl_shift with shift_id as primary key and identity too, now i have to insert my own id and its value and for that purpose i have to change ALTER TABLE......ALTER Column please help me ...Show All
Windows Forms Command Line in Windows Forms
Anyone, I have been asked to create a windows form (or multiple) that will allow the end user to run several command lines in one application. Basically the network guys need to be able to have 1 window opened and have 4 command prompts available to use at once. I know they could open 4 dos windows, but it's a long story. I would be happy just to know how to build 1. How can I make a windows form in VB.NET 2005 and have basically a dos prompt sitting there waiting for the user to type Thanks. well you can do this BUT they can only type in when prompted to enter inputs via your application. So if you have a project right now, Winforms app, right click on the project then go to properti ...Show All
SQL Server How to backup a database over the network
Hi, I want to take backup of my database over a network drive, the network drive is on a box which is on different domain, Primary Server: IMM01 Database: DDR Domain: PNR User: PNR\bkpuser Backup Drive: BMM02 Shared Folder: \\BMM02\BackupFolder Domain: BNR Thanks, Imran. Sorry SQL Server is not running under trusted user, i mean domain user, its running under local system administrator, this is what i already know thats I have mentioned whole scenario, anyways thank u so much for reply, any other solution or trick ...Show All
Visual FoxPro Will VFP6 work with Windows Vista
My company operates a series of VFP6 runtime databases successfully in the Windows XP environment. We currenly have one PC loaded with Windows Vista. When the runtime setup is run it does not install the runtime files onto the Vista PC. Can VFP6 work in the Windows Vista environment How can this problem be overcome Many thanks in anticipation. > And in my opinion the point is: if I have an application VFP6 (and perhaps I don't possess the sources, or I don't have resources to convert the application to new versions), in some way I have to be able to make it work. I see your opinion but I don't agree. If an old app written in a very old version, to which you may not even have ...Show All
Windows Forms "Unable to add '<formname>.resx" Error
Any time I: 1) Open one particular previously saved solution in VS 2005 2) Open any Form in design view 3) Make a change to the design (add, delete, move controls, etc) I get the following error message: "Unable to add '<formname>.resx. A file with that name already exists." The only resolution I've found is to delete the .resx file, which then gets recreated when I save the form, and I'm able to continue working with the form in design view with no more problems as long as I don't close the form's design view. If I close it and reopen it, the problem reappears. Further, when I try to close the form's .cs file OR the IDE, I get an error message: "The operation could not be completed. Not enough ...Show All
Game Technologies: DirectX, XNA, XACT, etc. About the fate of DirectX?
Hi, I'm new here =) Hopefully I'm not asking a question that's been asked a million times before. =) I think I must be missing something important. I read the XNA FAQ, and it sounds to me like they've already deprecated Managed DirectX... does that mean that XNA has/will entirely replace DirectX If I want to write a program using DirectX in .NET, would this then mean that my program will need to be rewritten using XNA in the coming months And what about users who need the common graphics API provided by DirectX but don't have Shader support in their video cards Just curious, because that FAQ about Managed DirectX being deprecated alarmed me a bit (for the reasons expressed above) Depends on the game. If you want to write 360 games ...Show All
Visual Studio 2008 (Pre-release) Using UserControl's
Hi, I just noticed that the WinFX Extensions for Visual Studio adds a template for creating a WPF UserControl. So in order to experiment with it I created a new UserControl. Lets say the UserControl class has a namespace myNamespace , and the class itself is called myUserControl I then went into my main windows XAML and added a mapping element above the root like so... < Mapping XmlNamespace="ns" ClrNamespace="myNamespace" > After that I added an extra attribute to the main Window node like so... xmlns:ns="ns" So basically my main windows XAML looks like... < Mapping XmlNamespace="uc" ClrNamespace="myNamespace" > <Window x:Class="MyWindow.Window1" xmlns= ...Show All
SQL Server Show Details cannot be executed when multiple items are selected in a report filter field.
Hi All, I used Excel 2007 to connect to one of my OLAP cubes. I dragged one of my dimension to the Report Filter and select several items in this dimension. When I right-clicked on the Values and Select "Show Details", I gotten an error message "Show Details cannot be executed when multiple items are selected in a report filter field. Select a single item for each field in the report filter area before performing a drill through." How are I get drillthrough report if I wanted to select multiple item within a dimension filter Is there any workaround Thanks Apologies for this HUGE posting, but the source code is quite long. It is based on the example shown here , but with some ...Show All
.NET Development Reading file size and then store the name, date and size in database
I'm trying to make a program that basically say that every morning run this directory and scan through all the files. Then record the name, size and the date and then compare with the one that already existed in the database. If everything is match then pop up message say GOOD. If something has been changed then pop up a message say NOT GOOD. But aslo if i know that there was an update on the file so the date has been changed, that program should also have an update function to update the database. For instance File1 800kb 7/18/2006 File 2 1mb 7/17/2006 because this is the first time i run this program so i have to insert this into the data base. so after inserting, the database will have a list of file 2 and 1 with ...Show All
Visual C# Assign a LinearGradientBrush to the BackColor property of a UserControl ?
Does anyone know if it's possible If yes, how can this be done If not, do you know any workaround In need to be able to assign a LinearGradientBrush object to the BackColor property of my UserControl..... Thanks ! Thomas Thomas, You can simply override the OnPaintBackground method of your usercontrol. For instance, in the code for your UserControl: protected override void OnPaintBackground (PaintEventArgs e) { LinearGradientBrush brush = new LinearGradientBrush (new Point (0, 0), new Point (0, Height), Color.Red, Color.Blue); e.Graphics.FillRectangle (brush, ClientRectangle); } To make your control customizable, you can decide to expose properties for the start color, end color, angle and so forth ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Tool for auto HLSL Generation?
Are there any tools out there to enable the graphical building of a shader network, such as in Autodesk Maya's Hypershade tool or Softimage XSI's RenderTree tool, which can enable you to use a GUI to set up an object's basic material properties and then automatically generate the appropriate HLSL shader fragments needed to reproduce the material effect in your game without having to manually write HLSL files Certainly, if you want to create complex shader effects, you would need to be able to edit the HLSL or manually create new custom HLSL files, but for creating HLSL files to render basic, standard material properties, there really should be a graphical tool to take some of the work and difficulty out of it. Such a tool should allo ...Show All
.NET Development Skip JIT?
When installing my .net appication is it possible that it is compiled to native code I am developing a standalone windows application and do not want the JIT compilation. Because the target OS is fixed and known, it would be good to compile the .net code to native code at the time of installation. I had read about this somewhere but cannot remember it fully or find the article again. Any help would be great. thanks in advance. Sesh Yes, here is a sample: http://msdn2.microsoft.com/en-us/library/3hwzzhyd(VS.80).aspx ...Show All
SQL Server Database Name
Hi, Can anyone tell me how to return the current database name using T-SQL. I have a stored proc that runs in a number of databases and would like qualify some dynamic sql with the database name. I know DB_Name exists but requires the DB_ID and DB_ID needs the DB_Name. Is there a function that just returns the current database i.e. USE TestDB GO SELECT currentDBName ...Show All
Windows Forms updating ListView from another Form
I am trying to update a ListView on frmNewCustomer from frmAddContact but items are not getting added. I have no problem using the same code from the frmNewCustomer. frmNewCustomer NewCustomersForm = new frmNewCustomer (); NewCustomersForm.lstContacts.Items.Add(cboCategory.Text); NewCustomersForm.lstContacts.Items[NewCustomersForm.lstContacts.Items.Count - 1].SubItems.Add(txtNumber.Text); NewCustomersForm.lstContacts.Refresh(); this .Close(); stull having the same problem.. I also tried this code to update a textbox on Form1 from Form2: frmMain MainForm = new frmMain (); MainForm.mnuSearchCustomer.Text = "731004167" ; this .Close(); ...Show All
