nickst's Q&A profile
Windows Forms DataSet and xml
i would like to add a data set to a xml file without over writeing the file. i want to appand to the file. How do i do this Hi, Does the above solution solve your problem If yes then could you please mark it as answered Thank you, Bhanu. ...Show All
Windows Forms Stored procedure with combo box?
On a Windows form, I have textboxes to show data rows of a main table. The main table has a foreign key to a minor table which is a list of status values ("Pending", "In Progress" and "Done"). The object is to display the status in a listbox or combobox. I want to know how to do this. Some notes: 1) The code to set up connections, DataAdapters, CommandBuilders, bindingsources, Datasets, etc works fine. 2) I would like to set up any constructs in code rather than with a wizard. 3) Unless I have to I want to avoid creating the relationship between the tables in the wizard. 4) I get the sense that one Dataset can access and update both tables, but I don't know how to tell the dataset about additional tables. ...Show All
Visual Studio Tools for Office VB2005 y Word 2003
Good gods, am working with VB2005 and Word 2003, where send to print a document of word, until now all well, the problem have be it that is not as closing the insistences of word that are open and close the document despues to print. I am using the font source: Public Class Form1 Dim wd As Microsoft.Office.Interop.Word.Application Dim wDoc As Microsoft.Office.Interop.Word.Document Dim ObjDoc1 As Microsoft.Office.Interop.Word.Bookmark Private Sub SimpleButton1_Click1(ByVal sender As Object, ByVal e As System.EventArgs) Handles SimpleButton1.Click wd = CreateObject("Word.Application") wDoc = wd.Documents.Open("F:\Documents and Settings\Ariel\Documento wDoc.Bookmarks("MiMarcador").Range.Text = T ...Show All
Visual C# Title case conversion of words
Hi. I've been programming C# for about 9 months now and I want to be able to convert a string which is in upper case to what is known as 'Title Case'. This is where the first letter of each word in a string is upper case and the remaining letters of each word are in lower case. Can anyone tell me how to achieve this please I know how to use ToUpper and ToLower but I don't know if there is a facility to do the Title Case as I can't seem to find it! You shouldn't need the .ToLower(). Nor the temp objects: MyString = Thread.CurrentThread.CurrentCulture.TextInfo.ToTitleCase(MyString); this could also be abbreviated slightly to MyString = CultureInfo.CurrentCulture.TextInfo.ToTitleCase(My ...Show All
Visual Studio symbols are not loaded
I want to debug one file say temp.cs which is in C:\My Project\Src directory its projects dll are in C:\My Project\bin\debug folder Now my application is running from in d:\application\dlls..................in this folder both dlls and pdb are there.......... I want to debug my above temp.cs file.............but symbols are not getting loaded............. what may be the reason i want to know how debugger works Can anybody help me....... The PDB files do not match the DLL being loaded into the process. You could check the modules window to see where your DLL is loading from (and more importantly what the date/version is of the dll being loaded). You can also modify the symbol search path (Und ...Show All
SharePoint Products and Technologies Integration of web app to Sharepoint Portal 2007
Hi, I am wondering if it is possible to integrate an existing web application into Microsoft Sharepoint Portal. The application could be in the form of an opensource cms or web digital assets management (images/documents/videos) application in J2EE, php running Oracle/MySQL. If yes, what are the factors that have to be considered How can i do it Any links, resources would be great. If not possible, pls explain as well. Thanks a million! Hi, I need this application to be available via sharepoint to all users. Preferably running on a different server and also accessing sharepoint data from the custom app. Possible How Thanks ...Show All
Visual C# Multiple types in an array
Hello! I'd like to put two different classes' instances into an array. (Both are child classes, derived from a base class.) The problem is, you have to specify a type for the array itself, but I don't know what to do if I have to store more then one type in it. Will it work if I use the base class as array type, and if yes, please give me an example. Probably it won't since the base class doesn't contain the child classes' fields and methods. I also would like to know if it's possible to store even more types, like "string", "int", "instance of a class" all in one array. I tried to understand structures, but I couldn't get closer to the solution. Anyway, I'm in college and we didn't learn anything about structures yet, so please don't p ...Show All
.NET Development Add Business Object to ArrayList
I have an Order than can multiple sub orders.....I want to save my sub orders to an arraylist....i have a class called sub orders that has all the data pertaining to that sub order....How do i add an entire class to an arraylist so that if i have multiple sub orders they will be based in as SubOrders[0], SubOrders[1], and so on... can someone point me in the right direction...My goal is to have my suborders stored in an array list... Tryin2Bgood wrote: So making the _SubOrder as an ArrayList I will not need to bind it like so Since the class now will be represented as an index in the arraylist and if the index changes or is modified thats when my _IsDirty will return true or the Event will fire using my implem ...Show All
Visual Basic Change Location Of Label
How to change the x, y location of a label Thank you ...Show All
.NET Development Connecting to Informix database with VS2005
I’m trying to connect to an Informix 7.30 database using Visual Studio .NET 2005. The ODBC driver is Informix-CLI 2.5 (32 bit). I can connect with the Server Explorer in VS2005, however when I try to open a connection programmatically I get the following error. ERROR [S1000] [INTERSOLV] {ODBC Informix driver} Insufficient information to connect to the data source. ERROR [IM006] [Microsoft] [ODBC Driver Manager] Driver’s SQLSetConnectAttr failed ERROR [01000] [Microsoft] [ODBC Driver Manager] The driver doesn’t support the version of ODBC behavior that the application requested (see SQLSetEnvAttr) Any ideas on how to resolve this error I tried numerous different connection strings inclu ...Show All
Visual Studio 2008 (Pre-release) "Trust not granted" message for Everything permission set
Hello, My WPF web browser application needs some additional permissions for execution (some of security and reflection permissions). I added them on the Security page of project in Visual Studio. I published my application on IIS web server on my computer. I had to modify Runtime Security Policy in order to execute my application. I created a custom permission set on basis of the LocalIntranet permission set and added required additional permissions there. I set my custom permission set for the LocalIntranet zone and my application began to work after that. But when I set the Everything permission set, "Trust not granted" message is shown. Could you explain me why it happens Everything permission set includes more p ...Show All
Visual C# Rendering UserControls at runtime
Hi, This is probably a simple issue but I can't work out how best to solve this. I have made a simple user control - I need to draw one of these user controls on the page for each item selected from a database. I have written the code, and the correct HTML is generated. However, the controls aren't rendered on screen. I think this is because the valid is generated at runtime which then doesn't allow it to be rendered as a user control at runtime - it's just treated as incorrect HTML. Code to Generate the UserControls. [code] DataTable dtGroupAccess = (DataTable)sp_procs.GetGroupPermissions(group_key,dbConn.c); this.sPermissions=""; foreach(DataRow row in dtGroupAccess.Rows) { this.sPermissions += &quo ...Show All
SQL Server Installing Developer Edition Management Studio
I'm attempting to upgrade from SQL Express to SQL Developer. I uninstalled completely before loading Dev edition, but I can't seem to install the Management Studio now. Any ideas Hello Joe, Could you please let us know what error you are getting while installing Dev edition This will help in narrowing down the cause so that we can resolve it quickly. Regards, Rajesh ...Show All
SQL Server Determine Processor Architecture for SQL Server 2005
I like the new features in SERVERPROPERTY but there's a huge, glaring oversight in my opinion: it doesn't return the processor architecture. I'm trying to write a detailed server info collection script and (1) use only TSQL, and (2) have it return the processor architecture. Here's what I have so far: SELECT SERVERPROPERTY('InstanceName') AS [InstanceName] , SERVERPROPERTY('ServerName') AS [ServerName] , @@VERSION AS Version , CASE WHEN CHARINDEX('Intel X86',@@VERSION)<>0 THEN '32-bit' WHEN CHARINDEX('Intel IA-64',@@VERSION)<>0 THEN '64-bit' -- WHEN CHARINDEX('x86-64',@@VERSION)<>0 THEN '64-bit' -- WHEN CHARINDEX('AMD64',@@VERSION)<>0 THEN '64-bit' -- WHEN CHARINDEX('WOW64',@@VERSION)<>0 THEN 'WOW64' ...Show All
Silverlight (formerly WPF/E) Blend Support; XAML Cached?
Hi Guys, So just playing around with WPF/E and Blend, and i've hit a bit of a problem. I've got the sample XAML from the template and pasted it into Blend and it doesn't like the Canvas markup with the additional namespaces. Remove that and it works just fine. Why is this tho Also, if I create a storyboard in Blend and pasted it onto the Canvas, it fails and errors when it loads up. Thats about my limit to how much I have used XAML and Blend so far.... Second issue, I uploaded a sample XAML file onto my windows hosting and everything worked. I updated the XAML, re-uploaded the file and its still the same. Deleted everything off the FTP and re-uploaded but still the same old file. Works OK locally, tried different browser and it ...Show All
