Answer Questions
Tufelix Display Compiled HTML help file in VB.Net app
I have created and compiled a HTML help file and want to open the Help Viewer when the help button is clicked in my app. Please show me how to do this. My application is written in VB.Net using Visual Studio 2005 and the help file was written and compiled using Help & Manual V4 Thanks If you just want to display a help file when a regular button is clicked: Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Help.ShowHelp(Me, IO.Path.GetDirectoryName(Application.ExecutablePath) + "\myapp.chm") End Sub If you want to display help with the context help button in the form's title bar, use the HelpProvider component... thanks..I used ...Show All
UnknownScripter Iterate Network connections list in c#
Is it possible to read through the list of existing dial-up and vpn connections in windows xp with c# I would like to have a script that would create a set of default connections for remote users. A client app would then list these connections and allow the user to start one directly from the application. Thank you for your advice. Try this: http://www.codeproject.com/Purgatory/rasdemo.asp This is very simple to use and I hope this will help you. Best Regards, Rizwan aka RizwanSharp OK, I will check it out and post back with the results. THANKS! Did you look at calling RasEntry.GetEntrys() in RasDemo I think that returns exactly what you are ...Show All
Leaf. multiple stored procedures using SQLCommand
Hi guyz, I wanted to call multiple stored procedures using SQL Command. How will I do it I'm actually thinking of creating two instance of SQLCommand but I'm thinking there might be a better way to do it. I'm looking around the internet but there's no sample. Can someone give me an advice with this Basically, the two stored procedures are related with each other and I want to lock it with SQLTransactions commit or rollback but I don't have any idea on how I will implement it. code: SqlCommand cmd 1 = new SqlCommand( "sp_InsertSample", conn); cmd1.CommandType = CommandType.StoredProcedure; cmd1.Parameters.Add( new SqlParamete ...Show All
IceAngel89 CLR and thread deadlocks
Hello, I'm hosting the CLR (.NET 2.0) in an unmanaged C++ app. The CLR is used for calling C# plugin functions through IDispatch. The C# plugins are COM visible classes and are created from the app main UI thread. They are mostly used for accessing the app through a COM primary interop assembly generated with TLBIMP.EXE. The interop between C# and the app is achieved through the default Microsoft COM wrappers. This is all working fine but I'm having a problem when the C# functions are called by the app from a worker thread. At this point the CLR attempts to interop with the app via the UI main thread which is causing a deadlock because that thread is locked while the worker thread is executing. From what I see in the call stack (b ...Show All
Pini Memory consuming during BinaryFormatter Deserialization
Hi, I have a problem and I need your help please, I have made a large aplication that takes a very long time to generate the results, so I have serialized the intermediate results periodically in a binary files using BinaryFormatter in order to save it from any suddenly problems like shutdown or restart. Now I need to Deserialize all saved files to continue my work. The size of the saved file is about 6.5 GB devided into about 260 files. When I try to deserialize it one by one, the first three files were deserialized in about one or two min. , and then the speed is very slow down, and the memory is fully consumed. I think that when the reading process starts the memory begins free and it then filled out with each reading ...Show All
Samer Selo Invalid Server Binding Status Problem
Hi, First, sory for bad english. have installed VS 2005 Team Suite on Vista and installed the VS 2005 SP1 and VS 2005 SP1 Vista Update. Still have same problems. The big one is: open an existing solution from the source control (TFS). The solution contains four projects. (class library, win app, web project and web service project). Win app and class library has no problem but web and web services projects come with no files until when i use the get latest command with the force option. After i get the all files for solution from the source control, i close the VS and reopen solution again. When solution fully open and ready, the server binding status for all project in the solution goes invalid and all lock icons disappear. using ...Show All
Harry_Leboeuf Prov. OLEDB Problem with informix: Mapping DatabaseName on Sql Steatment, why?
i use .net provider to connect client sdk 2.90 of informix. I use strongly typed dataset, and build a select command for a table. The commandtext of select command contains a mapping of databasename, so if i switch connectionstring to another testing database it not work, and continues to point at database of sqlstring. Example: Databasename: moon SELECT idcode, description FROM moon: informix.aabudget if i erase moon from sql string, it work, but if i return on generator of query, automaticly it insert databasename again. exist a way to don't map databasename on sql of select command ...Show All
zz2 multiple to single
hi! im not sure if im posting at the right forum but here is my problem.. in my program i need to insert multiple columns to a single row.. the multiple column is in a different database (remote) and the single column is in my local. how could i do this thanks! where are you inserting these columns in a datatable Datagridview for what you are describing, you would need to fill a dataset using the DataAdapter (SQL or OleDb) with the records, as it retrieves everything (All records and its columns) and then insert your data into that/modify it then finally update the database using the Update(theDataSet) of te DataAdapter you need to explain more so we can help you :-) you need to pret ...Show All
TJC2 How do i use the Typed dataset i created?
i created a new Typed dataset by these steps : 1. Added new item (XMLSchema) called XMlSchema1. 2. dragged a table to the xsd screen which created a dataset automatically. 3. called the dataset "ProductsDataSet" but how do i use it in the book i read i just write : ProductsDataSet pDataSet = new ProductsDataSet(); (SqlDataAdapter)sqlDAdapter).Fill(pDataSet.Products); but the compiler tells me that he can't find any 'ProductsDataSet', why Why can't he find it (the XmlSchema1.xsd is in the same namespace as the code i wrote). (In the book it is written to check the "GenerateDataSet" , i don't have that kind of property. from what i can see you created a schema file not a Dataset so if ...Show All
Paul Noakes Database insert problem
Hi! I'm attempting to insert records from a tab-delimited text file into a database. I can successfully parse the text file and get the data into a datatable. I verified this by binding the datatable to a gridview - I can see all the rows. My problem is when I try to insert those records into a SQL 2005 table. The error I get is: System.ArgumentException: Input array is longer than the number of columns in this table. My database has 36 columns. When I generate the datatable, I leave out the primary key column because such a column doesn't exist in the text file. Obviously, I'll need a primary key in the database. My goal is to insert the data via stored procedure. Does my stored procedure have to have a parameter for the primar ...Show All
deGame Month and day names in spanish now lowercase..
In framework 1.0 month and day names were capitalized in spanish culture, now in 2.0 are lowercase. Why Those are names, names are written capitalized, is a rule of the language. I can't even think one reason to write them lowercase. Now, I have to search all the thousands of classes in my programs to find where month and day names appear. Worst, there is no easy way to capitalize a word in .Net. This change troubles me a lot. You may have also noticed that other month names as well as names for the days of the week are also in lower case for many .NET cultures. This is because that is thought to be the proper format when used in date expressions, and this is the key to why your weekday and mont ...Show All
nayakam Defining a namespace in two files
I was wondering if it is possible to define a namespace in two separate files. Will class Foobar be able to instantiate an instance of class Foo Right now it is not working for me. This compiles and runs but I do not get any Intellisense. Like this: FILE1- namespace test { public class Foo{ } } FILE2- namespace test { public class Foobar{ } } In this example it seems I have uncovered a little more of the issue. I have 2 ASPX files and would like to reference class A in file 1 from class B in file 2. Both in same namespace. I am using Visual Studio 2005 and have placed both files under my root directory in the solution explorer. The ...Show All
Charltonn Conversion from string "" to type 'Integer' is not valid.
When I run this code (button click) I recieve this error... Conversion from string "" to type 'Integer' is not valid. I have tried everything I can find online and in forums but without success. The error points to line with----bcode = CInt(barcode(i))---- 'declare array Dim Irequests(8) As String Dim barcode(8) As String 'assign values to array indexes Irequests(0) = txtreq0.Text Irequests(1) = txtreq1.Text Irequests(2) = txtreq2.Text Irequests(3) = txtreq3.Text Irequests(4) = txtreq4.Text Irequests(5) = txtreq5.Text Irequests(6) = txtreq6.Text Irequests(7) = txtreq7.Text barcode(0) = txtBarcode0.Text barcode(1) = txtBarcode1.Text barcode(2) = txtBarcode2.Text barc ...Show All
DaveParr NET Framework written in C++?
Hello there, the thing I want know is: In which language is .NET written. I am sure .NET supports so much prog languages, but in which language the .NET Framework was written (I mean the IDEs, the libs like System.dll, the interpreter). Another question: What about C# Is this language written in Assembler or was it created trough C++ like lots of other langs I am looking forward to hearing from you! Best regards Ian I think it would be C++ What part of .NET Many of the framework class library classes are written in C#. The CLI/CLR is written in C/C++ and assembly. OK so the .NET Framework Interpreter (CLI) is written in C++ The libs (mscorlib.dll, System.dll, etc.) are written in C# The C# compiler ...Show All
Zokkan Formatting numbers
.net I am building a solution that shows two numbers. VAT on sales and VAT on costs. I can obtain the two values through a SQL query Sum(amount) * 0.175 etc etc however when I want to subtract one from the other I get a single digit number. For example my sql query might return 14,5435.00 and 5,746.00 but the value i get after i try to subtract them is 9. I have tried using format but that just returns a letter "N" in this case. Label35.Text = Format(objDataRow.Item( "totalclientyear" ), "N" ) objDataRow.Item("") return an object. You need to convert the data to a number for the format to work Label35.Text= CDec(ObjDataRow.Item("totalclientyear&quo ...Show All
