648 byte By
tamaro at 2007-11-25 9:44:35
I'm reading a text file (using StreamReader.ReadLine()) and need to keep its contents in a two-dimentional string array. Each line of text as a line in the array, every word in a seperate array cell.i.e. if the file reads:here comesthe catin the hatthen the array will look like this:[[here] [co...
2294 byte By
ireland at 2007-11-25 9:44:40
I've come across an enumerator which uses OR, I've played around with the msdn example but I don't understand it's use.What's the benefit of the OR in the enumerator and the FLAG, msdn docs don't make much sense to me.class FlagsAttributeDemo{ // Define an Enum witho...
557 byte By
leoiser at 2007-11-25 9:44:44
Is it possible to create a user control which run independently(diffrent thread). For example I need to create a scolling control which runs independently? Any idea ? I created the control but it is not independent.If I put thread.sleep(100); // just putting a delayForm & control is stopping.I also...
734 byte By
Alex1978 at 2007-11-25 9:44:48
Hi everybody.I have a WinForms application with two buttons on the main window.The message handler of one of the buttons shows a modal dialog and the handler of the second button starts a new process and waits for it when it finishes. The problem is that in the first case, when the dialog is shown,...
78 byte By
MikeB at 2007-11-25 9:44:51
Is there a way to get the x and y scale factors from a matrix?<br/>Mike B
202 byte By
doglin82 at 2007-11-25 9:44:54
Hi:<br/>Is there an existing API function I can call from the .NET framework that does the conversion from UInt64 to Hex String?<br/>Please let me know.<br/>I am using .Net 2.0<br/>Thanks
700 byte By
playah at 2007-11-25 9:45:00
Hi,I have a fairly big database with lots of tables and cross-reference tables. I was thinking to create classes for each of the tables with the same 'fields' as the database tables. Is this a good start, or should I use another technique for this? If I use classes should I create a class...
what is the wrong in the format of connection string?<br/>scon.ConnectionString = @"Data Source=.\SQLEXPRESS;AttachDbFilename="C:\Documents and Settings\Administrator\My Documents\Visual Studio 2005\WebSites\WebSite3\App_Data\Database.mdf";Integrated Security=True;User Instance=True";
1386 byte By
DanDandy at 2007-11-25 9:45:11
Hi, I need help again please.Can someone help me figure out how to validate a bingo card? I have been trying several solutions and none of them work. There are different types of games you can play, you can win by getting any horizontal row, vertical row, diaginal row, blackout, or other random shap...
315 byte By
jgregory at 2007-11-25 9:45:13
Using Visual Studio 2005 C# I created a Form with a MenuStrip and Scollbars. Scrolling works properly but the MenuStrip scrolls right up out of sight as if it was simply drawn on the client area. Who would want their menu bar to scroll out of sight? Is there a way to have the menu bar stay put du...
435 byte By
sbt at 2007-11-25 9:45:22
HiI was using VC++ from long time and now I am learning C#. AS I started creating new C# projects in my Visual Studio 2005, I am getting "Creation of project failed" error and Visual studio is not creating any project for C#.I tried uninstalling and installing several times but no luck. I am using...
Using Visual Studio 2005 in C#, how would I go about creating a hook that can detect when any external window is about to be minimized and get the handle of that window. (The end result being that I want to be able to minimize the external application to my program instead of letting windows minimi...
3993 byte By
tis707 at 2007-11-25 9:45:25
Hi allI am using gridview to insert the role for an employee in a project.when i edit that project i have to display the gridview for the user with the assigned rolebut i am not able to get itin aspx page------<td colspan="2"> <table width="100%">...
401 byte By
Jegron at 2007-11-25 9:45:35
I'm trying to create many new Excel document with _Workspace.SaveAsYet is is very likely that files with those names already exist. Thus for every file that already exists, a confirmation window pops up.Is there any way to avoid this? I haven't found anything in the _Workspace docu, so I c...
250 byte By
Sastri at 2007-11-25 9:45:41
Hi,<br/>First post guys. I have a Datagrid in a C# app. I want to format a single Cell so that it has multiple Font styles. EG. I want a word to be Bold and the rest to be normal text in a single cell. Is this even possible? Thanks for your help
HiI am having a bit problem when using a string with character '&'When I set the Text Property of Label or Form, for example "A & B" it came out as "A _ B". I have tried the escape charater '\'. "A \& B" became "A \_ B".Can you please is there any solution for these problem pleas...
769 byte By
DJMuir at 2007-11-25 9:46:01
Hi all, its been sometime since i posted, but i return with yet another question.I am developing for a windows mobile device using windows mobile 5.0. I have a logon screen with a painted background images, which is used to get username and password. Once entered, the logon porcess goes through seve...
291 byte By
cyn8 at 2007-11-25 9:46:06
hi, may i know whether if in ArrayList, can i 'Insert' a value in the index, 2 or 3 more integer bigger than the largest index? This means that some of the position in the arraylist will be empty. I tried to do it, but error messages keep happening. Is it really unable to do this?
321 byte By
ireland at 2007-11-25 9:46:07
I'm trying to write out generic debug messages to Console, the arguments I want to use are the current Object type and the current method being called, is there any way to print out the current methodConsole.WriteLine("{0} {1} ", this.GetType().ToString(), <get the current method name as a s...
564 byte By
yoyosh at 2007-11-25 9:46:32
Suppose we have a simple enum like this: public enum Priority{ Low, High} I`m looping through this enum using reflection: foreach( FieldInfo fi in typeof(Priority).GetFields() ){ // here I have access to many properties regarding 'fi' like it`s name, value, etc. The question is - how to...
745 byte By
doug8888 at 2007-11-25 9:46:52
Hi folks-- first postI'm encountering timeouts when opening URLs to a long-running webpage. It's actually a web service of sorts; the url returns an XML-encoded query result. The problem is that the result is pretty big and can take more than a minute to run. The C# program fails w...
Hi,I added a new row in a datagridview control. It will always add the new row to the bottom. I usually have to click on the scrollbar to slide the view to the bottow to get to the new row. This is a pain.After the add row, I would like to display the last row. After the add row, the datagridview al...
Is it possible to create a low level hook of the CBTProc Function (so that I can detect when an external window is minimized, etc)? If it's possible, how would I go about doing it?<br/>Thanks in advanced!<br/>-Eric
download one of the file in my local folder, it downloaded perfectly. And once again I download the same file in the same folder, an error occurs. I want to check the folder before i download the file. If the file is alredy in the folder , then it won't download in the folder.Can you please giv...
315 byte By
gajesh at 2007-11-25 9:47:46
Hello,I am using TextBox to display some information to user. I made it disable(Uneditable) as restriction. i want to highlight the text in TextBox but due to Enable = false, displaying the text always grayed. How can i highlight the text of Uneditable textbox..Thanks.Gajesh...
530 byte By
zechasso at 2007-11-25 9:47:51
I have an application with some identical base-informations. Because they need the same data-handling I want to create a base-dialog with a DataGridView, DataSet, ...(and everything else what's needed) and then inherit this base-dialog for each kind of base-data.But how can I do this with DataS...
How to Convert Enum integer Value into string.<br/>i.e I want to get String value of Integer enum<br/>Public enum MyEnum<br/>{<br/> OSDValue=1,<br/> OSDValue=0<br/>}<br/>Thanks In advance...<br/>R.Krishnan.
GreetingsI am writing an application suite, a component of which contains the (already implemented) ability to capture network packets. I implemented this ability using native .NET code, using the System.Net.Socket object, specifically (at the time) to avoid the necessity of installing WinPCap with...
472 byte By
tis707 at 2007-11-25 9:48:20
Hi allI have a web site developed in VS 2005i can run the application by www.mycompany.com/application where application is my applicationNow my question is is it possible to get my application by www.mycompany.com/application1www.mycompany.com/application2www.mycompany.com/application3 when clicks...
I found a really small tut on how to embed fonts in C#. This is all that was there:System.Drawing.Text.PrivateFontCollection privateFonts = new PrivateFontCollection(); privateFonts.AddFontFile("mycustomfont.ttf"); System.Drawing.Font font = new Font(privateFonts.Families[0], 12); this.label1...
146 byte By
coricori at 2007-11-25 9:49:36
hi there<br/>How can i use my webcam in a C# application. <br/>Any link, tutorial about how to start using my webcam in C#.<br/>many thx
i have one problem when i want to retrieve value from database....at that time this error msg display..... i am using Sql Servercast from string "select * from PurchaseMovie where Movie_Name = '" + TextBox1.Text + "'" Or "Dealer_Name ='" + TextBox4.Text + "' " to type 'long&...
Hi,I want to manipulate the data as a small part of my project.In short I have an array[250,200] ,where numbers(actullay binary no.s) are stored .For simply let`sint[,] array;array = new int[5, 5]; data are stored in array[,] as :1234512345123451234512345 OR123451234512345123451234512345I want mani...
Hi,How do I detect in the client if I have a remote server running? I was hoping that:cRemote = (ObjWrapper)Activator.GetObject(typeof(ObjWrapper), " http://" + IP.Trim() + ":9879/ObjWrapper", WellKnownObjectMode.SingleCall);would simply return null, but this is not the case. If the object I'm...
hi,<br/>does anybody know how to use speechlib for voice-commands?<br/>in the first level i'd like to have every sound above a given noise-level as the command to open a window.<br/>thanks a lot!!!!<br/>chris
The code below is for a button which needs to send data to a sql DBI have two questions:1 Does anyone have a sample code snippet that i can look at to see how to do this2 would it be better to pass the variables to a stored procedure and have the DB do the insert or should i just code it in as an...
451 byte By
gurupot at 2007-11-25 9:50:29
Hi,I am trying to call a stored procedure within a C# program. I get an error "The type or namespace name 'CommandType' could not be found (are you missing a using directive or an assembly reference?)", at the line where I am setting the command type as a stored procedure. m_cmdPINInsert.C...
Okay, this may sound obvious, but I have a SaveFileDialog that I am using to select a file name. If I select a ReadOnly file, then it prompts me to pick a different file.Problem is my application has code to handle ReadOnly files, so I actually want to be able to select it.I couldn't see an ob...
1247 byte By
uab at 2007-11-25 9:50:54
Hi, hope you guys can help me with this.Im creating a GUI that will interface with an embedded board.Heres what i got so far:I got an GUI with several checkboxs that correspond to a "byte". The byte is represented by 8 checkboxes and depending what the user checks, the bit get turn on or off. I hav...
1475 byte By
makTSPL at 2007-11-25 9:51:07
Dear All,I am developing an application in C#. This application communicates with Garmin Forerunner device. I have developed a demo for it, which shows Device software version. but I am not able to get Device history Data. What should I pass for getting history data.Below is the code sample which I...
483 byte By
hkullana at 2007-11-25 9:51:25
hi,I have a form, i got an integer from the user (for example user enters 10) and i am creating 10 TextBoxes dynamically. There is no problem with it but when the user enters bigger numbers, the TextBoxes do not fit in the form and go beyond the borders of the form. The user has to increase the siz...
199 byte By
Abalfazl at 2007-11-25 9:51:28
Hello!<br/>I see this many times in Delegation articles:<br/>public void HandlerTwo(object sender, EventArgs e)<br/>May you explain more about object sender and EventArgs e by example?
239 byte By
ahmed17 at 2007-11-25 9:51:29
what is the wrong in the insert ?<br/>string insertCommand="INSERT INTO student(st_id,st_name,st_age) VALUES("+TextBox1.Text.ToString()+"','"+TextBox2.Text.ToString()+"','"+TextBox3.Text.ToString()+"')');
Hi,I've program this C# code. Its working fine and compiling fine as well. Its just someone asked me a technical question about Memory management. How code is going in and out of Stack and heap. Can someone help me with that as I know what the program is doing but its just how program is going...
991 byte By
KUVU at 2007-11-25 9:51:41
Can any one help me with this in C#.1) I am trying to copy a string which has length greater than 255 characters in to a ExcelTextBOx.But it not working if i send 255 characters it working fine.my code is like thisstring temp;Microsoft.Office.Interop.Excel.TextBox txtbox1=(Microsoft.Office.Interop.E...
281 byte By
ahmed17 at 2007-11-25 9:51:48
hello guys, <br/>What Is Isolated Storage?and when and where i must use Isolated Storage in my application ? please give me the meaning with simple words.<br/>i read some books which are speaken about Isolated Storage but some info become more conflict with me...thanks in advance
I am working on the 2005 express edition. I know that there is a function where I can step through line by line and see what the data is being held by the variables. However I can not find it. Will someone please be kind enough to help me get to this.<br/>Thanks in advance
I have a ComboBox (dropdown) that I populate from a Database field containing 3 fields. Prob_id char(4) indexed by 1Description_id varchar(25)Status varchar(6) I need to be able to write the Prob_id to a different table upon selecting a Description_id. Right now my code passes both the Prob_id and t...
1197 byte By
hkullana at 2007-11-25 9:52:12
hi,I have a simple program. I got row and column number from the user and create a row*column matrix of TextBoxes. For examle; when the user set row number to 3 and column number to 2. Then i got;* * * ** *(the stars are textboxes). Of course i am creating those textboxes dynamically. I am using the...
Hi there,after I searched a whole day for a solution to my problem I do still have no idea to solve this (I am using .Net Compact Framework 2.0 - but I think the Marshaling classes are the same as in normal framework):My Problem is the following: I have got a C-Dll which I use to calculate a 2d-Arra...