all groups > c# > december 2004 > threads for monday december 27
Filter by Day: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
Get text from Web Browser control
Posted by _B at 12/27/2004 9:21:50 PM
Is there any way to 'scrape' the ascii text from an
AxSHDocView:AxWebBrowser control?
IOW, I'd like to get the text as it is displayed by the browser.
Somewhat like selecting all text in IE and doing a capture to
clipboard (^A,^C).
It seems like there should be a way to simulate sending con... more >>
Concurrency Violation on Delete command; first record only
Posted by Steven Nagy at 12/27/2004 8:58:00 PM
Hi
Have a problem that consistantly occurs in my applications where using
a DataAdapter (OLEDB) and a dataset.
Using a simple process of adding a row to the dataset table and then
calling the dataAdapter.Update method. The row adds.
However if I delete that new row immediately via the datas... more >>
Exception derived class
Posted by Jasleen at 12/27/2004 8:53:05 PM
I want to access the protected member hresult of the Exception class, so I
derived my own class from ApplicationException and SystemException.
public class LoggedException : SystemException
{
public LoggedException() : base()
{
}
public LoggedException(String message) : base (m... more >>
A beginner question about writing procedures for controls events
Posted by Geri Reshef at 12/27/2004 7:33:56 PM
I created a windows form with some controls, and I want to write a code =
for one of their events.
I doubleClick on the control, and it opens me the code for the Enter =
event.
Unfortunately I want to write a code for another event, but I don't find =
a combobox in which I would find all the ev... more >>
Picturebox Click Coordinates
Posted by Typpo at 12/27/2004 6:49:27 PM
Hi all,
I'm not sure where to start. Using a PictureBox's click event:
private void pb_Click(object sender, EventArgs e)
{
// ???
}
....how would I retrieve the coordinates of the mouse click in relation
to the image? In other words, would it... more >>
Dynamic Properties
Posted by Demetri at 12/27/2004 6:49:04 PM
I would like to know if anyone can suggest how to implement the following:
We need to have classes who's properties are defined by a database. The
properties can not be hard coded. In addition properties datatype will also
be defined by the database and are subject to change in the future. So... more >>
write in serial port
Posted by Alberto at 12/27/2004 5:43:32 PM
How can I send a value in the serial port?
Thank you
... more >>
typeof
Posted by Alberto at 12/27/2004 5:42:43 PM
Can somebody tell me why this typeof doesn't work?
foreach (Control myControl in Controls)
if (typeof(myControl) == "TextBox")
((TextBox)myControl).Text = string.Empty;
Thank you very much
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Application Fail
Posted by Mario Reiley at 12/27/2004 5:24:11 PM
If I put my .exe file on my Local Network (in a Folder of course) and try to
run from my Pc which would be the causes ? such application don't Run.
I make the Wrap a COM component for Export data to MS-Excel:
Interop.Excel.dll
Interop.VBIDE.dll
Note: Only Run in my local PC
Best Regard... more >>
use an enum in an emitted assembly
Posted by Moe Green at 12/27/2004 4:41:21 PM
I want create a method which uses a dynamically enum as the type of one
of its parameters.
I can create the assembly with this code:
AssemblyName myAssemblyName = new AssemblyName();
myAssemblyName.Name = "EmittedAssembly";
// Create the dynamic assembly.
myAssemblyBuilder = myAppDoma... more >>
Newbie Qn : ComboBox
Posted by mnsindhu74 NO[at]SPAM yahoo.com at 12/27/2004 4:34:44 PM
How to display icons in a combobox ?
In the EditBox as well as ListBox..
... more >>
query that uses datatable and Access table
Posted by VMI at 12/27/2004 4:28:29 PM
I have a datatable with emplcodes and I need to extract, from my Access
table, all records that contain an emplcode included in my datatable. In
other words, I need to do a query that accesses a datatable and an access
table. How can this be done? I can't load the Access table into a datatable... more >>
Basic Array Question
Posted by Ryu at 12/27/2004 4:00:29 PM
Hi, May I know how to move an element in the array up?
For example
string [] s = new string {"a", "ab", "", "abc"};
I would like to move "abc" 1 size up the array to replace all ""s so that s
array will become
s = {"a", "ab", "abc"};
Thanks alot
... more >>
DOS program does not exit if no event happens
Posted by Adam Klobukowski at 12/27/2004 3:38:59 PM
Hello
I'm spawning DOS program from my app, and wait for it to exit.
Unfortunetly it does not exit. I need to cause any event that is sent to
programs console window (mouse over, pres a ky, anything), and then it
exits.
What may be wrong, and what can I do about it?
--
Semper Fidel... more >>
aspx in Win 2000
Posted by AntoS at 12/27/2004 2:22:22 PM
On my Win 2000 IIS aspx is not executed, only viewed as text page. I've
always used aspx on WinXP IIS, and it worked properly, should I need to
install something in W2K?
Thanks.
... more >>
databind
Posted by Tom Gao at 12/27/2004 2:07:14 PM
what does calling databind on a user control do ? since databind seems to be
inherited from Controls
Thanks
Tom
... more >>
NULLS HANDLING IN C#
Posted by Raul M. Colon at 12/27/2004 1:55:03 PM
Hi! Im developing a web application that reads from a database and populate a
form with a DataReader. When the reader reach a null value in the database,
the application throws an exception. In VB I used the IsDBNull function to
catch and process the null values.
Is there a similar functi... more >>
Assembly
Posted by Igor at 12/27/2004 1:48:09 PM
I have an application which loads assemblies from assembly cache. Assembly
cannot be unloaded from memory without unloading the entire AppDomain, so
every time I compile assemblies with new versions, its loaded to my
application and the old ones remain in memory. Do I understand right the
whole ... more >>
service installer
Posted by ivang at 12/27/2004 1:28:28 PM
Hello, All!
How can I set "description" column text which is displayed in MMC snap-in
"Services" for my own service process?
Thanx
... more >>
Displaying status to a window
Posted by L at 12/27/2004 1:13:45 PM
In my application I am printing files to AdobePrinter. While I loop
through the files and print, I want to display the status to a window (
Ex: Printing to file file1.eps ). How can I do this? Can someone help
me with some sample code.
Thanks
L
... more >>
Updating a windows forms control from a thread
Posted by DW at 12/27/2004 1:07:24 PM
I've gotten this question a couple of times in interviews and I don't know
what they are looking for:
How do you update a control's property, such as a textbox.text property,
from a thread, in .NET? It seems to me you just update it normally. What
are the interviewers looking for here? T... more >>
Login into a web page
Posted by Tom Jones at 12/27/2004 12:35:04 PM
Hi,
I am using the HttpWebRequest and HttpWebResponse classes to pull
information from a web server on the internet.
I have an account on one of the webservers that I need to log into
programatically. The connection is not secure (not https, etc.). The login
page just has simple name &... more >>
web access in c# app
Posted by Brian at 12/27/2004 12:33:13 PM
I am fairly new to .NET, and am interested in writing an app that retrieves
content from web sites, does some pre-processing, and then renders the
content in a browser-style window contained within a windows app. My
development language of choice would be C#.
Can anyone point me to any art... more >>
Scripting in .Net using CodeDom
Posted by fred_mumble NO[at]SPAM yahoo.com at 12/27/2004 12:10:44 PM
I have been testing various techniques to run "script" code which will
be stored in a SQL database and executed dynamically at runtime. The
scripts are essentially business rules that result in a report being
generated based on test parameters input by a user - 4 batches of
scripts containing m... more >>
windows form datagrid boolcolumn
Posted by chandru at 12/27/2004 12:02:53 PM
Hi there,
I need to get the checked box unchecked in the boolcolumn by default,
when the datagrid is loaded. Is there anyway to do it?
I have removed the dbnull state from boolcolumn by setting the
allownull property false.
Thanks,
Chandru
... more >>
kill a process
Posted by Wilfried Mestdagh at 12/27/2004 11:21:03 AM
Hi,
I use C# 2005 beta with NET 2005 beta.
How to kill a process ? Is this possible in this version ? I foundsom things
in help but it is not clear to me, if someone can give me brief example it
would be very appreciated.
--
rgds, Wilfried
http://www.mestdagh.biz... more >>
Declaring and using COM interfaces in C#
Posted by peter.zwosta NO[at]SPAM t-online.de at 12/27/2004 11:07:46 AM
I have two C# projects:
- In project1 TestClass implements a COM interface ITest and builds a
class library (Register for COM interop = true)
- In project2 I create TestClass and want to typecast it to ITest to
call Init. The cast leads to an InvalidCastException.
Does anyone know what I hav... more >>
How can i retrieve only error line in error hndl
Posted by Itzik at 12/27/2004 9:36:53 AM
Hi
i have any error in my function can i get only error line
Thanks
... more >>
Window Not Responding when running external programs
Posted by James Li at 12/27/2004 9:15:34 AM
I have a windows form application (C#) that launches multiple external batch
files to do various installation tasks. I want to show some status on the
win form, say simply update the text on a Lable control, "task 1
starting...", "Task 1 completed.", etc.
However, the text for the label is... more >>
Show and image when button its clicked
Posted by Josema at 12/27/2004 3:01:01 AM
Hi to all,
I have a textbox and a button...
When the button its clicked i show a label that has the text "Hello World"...
I would like to make that, when the button its clicked, first show an
animated image (loading...), and some seconds after, show the Hello World
label
How could i m... more >>
BinarySearch and String[]
Posted by Chuck Bowling at 12/27/2004 2:47:05 AM
I'm having problems doing an efficient keyword search on a text file likely
to be smaller than 100k. I have a keyword list of about 200 strings and I
need to search the file and mark all of the words in the list. I tried doing
a Regex search but it was way too slow. Now I'm trying to do a stra... more >>
Panels problem
Posted by pfnus NO[at]SPAM hotmail.com at 12/27/2004 1:45:24 AM
i created 2 panels, each with its own controls.
If i drag panel2 over panel 1 so panel2 is partially overlaying on
panel1, and then move panel1 to the other corner on the form, panel2
will move as well., as if panel2 is part of panel1. is this normal???
Then my question::
If Form_load i mak... more >>
Reflection causes error
Posted by Venkat at 12/27/2004 1:19:08 AM
This is the piece of code in Early Binding and works as expected.
---------------------------------------------------------------------------
using
ControlLicenseService LicenseInfoClient lic =new ControlLicenseService
LicenseInfoClient();
lic.Initialize("sk26901CODA904O",10300);
if (lic... more >>
mouse click event missing in groupBox control
Posted by Serge at 12/27/2004 12:36:42 AM
Hi,
in my windows.forms application I have added a goupBox control to my
windows.form.
Now I want to know the x,y-position from the mouse cursor when I click on
the groupBox.
The strange thing is that the mouse click event does not exist.
Does anyone know how to get teh x,y position of the... more >>
|