| |
thread by: kaiser |
last post Nov 17 '05 by: kaiser
Hello. I am trying to write a program that continues to read the last
line of a txt file until a stop button is clicked.
while (ContinueLoop == true )
{
while ((LastLine = file.ReadLine()) != null)
{
LastLine = file.ReadLine();
}//while readline
|
thread by: ignw82 |
last post Nov 17 '05 by: wirawan
Hi all,
I have a strange behaviour in dataview, maybe you can help me.
the behaviour is like this :
First I made a datatable (odt) in data set, and then I created a
dataview using this datatable. I added a row to data table by using
(let say the dataview created is odv) odv.table.rows.add(odr). When i
saw in first datatable (odt), there...
|
thread by: BigAbility |
last post Nov 17 '05 by: Jon Skeet [C# MVP]
regKey = regKey.OpenSubKey("....");
regKey.SetValue("...", "value");
this code doesn't work
registry modification not allow in .Net??
how should i do?
|
thread by: Richard |
last post Nov 17 '05 by: Cor Ligthert [MVP]
I have a datagrid about so high such that about 10 rows can be seen before
scrolling down. Default position after displaying the grid is to show rows
1-10. If I have 100 rows in the bound table how do I programmatically move
the currently highlighted row to row 75, have it automatically
scroll/position down to that row so the user is now...
|
thread by: Philip Wagenaar |
last post Nov 17 '05 by: Kevin Yu [MSFT]
I use a class to manage tiff's (written by someone else) to splitt multipage
tiffs. However, when I run it, it fails, for other people it seems work ok.
The method in the class is :public ArrayList SplitTiffImage(string
outPutDirectory,EncoderValue format)
{
string...
|
thread by: davesNotHere |
last post Nov 17 '05 by: davesNotHere
Greetings, experts!
I'm having a bit of a problem importing some working code from last
night into Visual Studio. The code compiles correctly, but when I run
the program, it doesn't seem to open the text window to ask for input.
It simply errors on the ReadLine statement. (See the attached code.)
When I use "Start Without Debugging", I...
|
thread by: kaiser |
last post Nov 17 '05 by: kaiser
Hello, Am new to C# and am playing around trying to get a while loop to
display a int on a windows console using label.
private void btnGo_Click(object sender, System.EventArgs e)
{
int Counter = 0;
while ( Counter < 10 )
{
lblMain.Text =Counter.ToString();
System.Threading.Thread.Sleep(5000);
|
| |
thread by: Peter Olcott |
last post Nov 17 '05 by: Daniel O'Connell [C# MVP]
Exactly why does C# and .NET require all the extra
copying of data?
|
thread by: Lee Franke |
last post Nov 17 '05 by: Lee Franke
I can't seem to figure this one out.
Here is my class structure
namespace name
{
public class foo
{
}
}
|
thread by: clintonG |
last post Nov 17 '05 by: Jon Skeet [C# MVP]
Has somebody written any guidelines regarding how to determine when
try-catch blocks should be used and where their use would or could be
considered superfluous?
<%= Clinton Gallagher
METROmilwaukee (sm) "A Regional Information Service"
NET csgallagher AT metromilwaukee.com
URL http://metromilwaukee.com/
URL...
|
thread by: Christopher Weaver |
last post Nov 17 '05 by: Jon Skeet [C# MVP]
"Char Array" is showing up in one of my grids when I return data from a
table that contains a BLOB of subtype text. Can anyone tell me the best way
to convert the Char Array to a string?
|
thread by: rbeyea |
last post Nov 17 '05 by: Jon Skeet [C# MVP]
I am writing a DLL (DLL1) that is wrapping another DLL (DLL2). I need to
extract the information returned from DLL2 and pass it out to the Client
application this is using DLL1.
DLL2 returns data that I would like to return through DLL1 as a collection
so the user can use foreach (lookup li in _myAdapter.lookupInfoCol) and get
the li.JID...
|
thread by: smilly |
last post Nov 17 '05 by: carion1
I know that normally there is only one connection that you specify in a
simple web solution but, now our company is looking into a multiple
connection solution.
Plase give me comments on how you implimented or haven't implimented this
kind of solution Thanx in advance.
|
thread by: Maziar Aflatoun |
last post Nov 17 '05 by: carion1
Hi,
I'm having a hard time finding the event that fires when form minimize
button is clicked. Any help would be greatly appreciated.
thanks
Maz
|
thread by: Mike |
last post Nov 17 '05 by: carion1
Hello,
I have an autoincrement field and I'm not sure how to use a parameter
with it to insert data:
this.sqlCommand1.CommandText = "INSERT INTO SickAndTired (String_ID,
Input_string) VALUES (@Parameter1,@Parameter2)";
this.sqlCommand1.Connection = this.sqlConnection1;
|
| |
thread by: Water Cooler v2 |
last post Nov 17 '05 by: John Salerno
Does the *this* keyword refer to the class or the instance?
|
thread by: John Salerno |
last post Nov 17 '05 by: John Salerno
This is an example in the book I'm reading:
string fullName = " Edward C Koop ";
fullName = fullName.Trim();
string names = fullName.Split(' ');
string firstName = names; // Edward
Two questions about this:
1. Why do you use single quotes with Split() instead of double? Is this
|
thread by: Richard |
last post Nov 17 '05 by: Cor Ligthert [MVP]
If the grid is dragged off the screen and back on the data is visible. Tried
a dg.refresh() and Inactivate(). Can I do this by overriding custom base
class OnPaint that my form inherits from? I don't thin it is the backcolor
or something like that because the error does not occur on everyone's
workstation. Could be it be the video card or tied...
|
thread by: Hrvoje Voda |
last post Nov 17 '05 by: Willy Denoyette [MVP]
How to check if a user is logged into domain ?
Hrcko
|
thread by: Paul Johnson |
last post Nov 17 '05 by: Paul Johnson
I have not found code that can successfully opena dn close a
connection, so I created the class below. It will open, disconnect and
check the type of internet connection you have.
Paul R. Johnson
using System;
using System.Collections;
using System.Data;
|
thread by: Lee Crabtree |
last post Nov 17 '05 by: Lee Crabtree
I have a managed C++ DLL wrapping some unmanaged C++ code. I'm using this
DLL in a C# program, and I need to watch some of the buffers being used.
When I try to use the memory debugger window in Studio, the pointers are all
pointed to 0x0000, and that space is filled with question marks, instead of
the more common hex.
I'm assuming there's...
|
thread by: melanieab |
last post Nov 17 '05 by: melanieab
Hi,
Easy question. It seems to me that I'm following the examples correctly,
but apparently I'm not. I'm trying to retrieve the data from a row called
"row" and a column called "File". This is what I have: (xFile is the int
value in column File and tCat is the table)
First I try:
xFile = int.Parse((tCat.Rows).ToString());
Another...
|
thread by: trint |
last post Nov 17 '05 by: carion1
I can't find the followings equivilent:
flashPlayer.Movie = Application.StartupPath + @"/Cooler2.swf";
flashPlayer.FSCommand +=new
AxShockwaveFlashObjects._IShockwaveFlashEvents_FSCommandEventHandler(flashPlayer_FSCommand);
Any help is appreciated.
Thanks,
Trint
|
| |
thread by: james.lanagan |
last post Nov 17 '05 by: Nicholas Paldino [.NET/C# MVP]
Hi,
I am having a problem which I am guessing is very simple to solve but I
just can't find a way to do it. Basically all I wan to do is to connect
to an LDAP server and check if a user has entered the correct password.
This I can do fine.
My problem is that if the LDAP host is not available then the programme
just freezes and continues...
|
thread by: ttan |
last post Nov 17 '05 by: Nicholas Paldino [.NET/C# MVP]
Hi Group,
Can someone show me how to use CreateIpForwardEntry() in C# to add a static
route.
Thanks,
|