all groups > c# > july 2004
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
Dataset and dataadapter
Posted by GM at 7/31/2004 9:11:01 PM
-What is the advantage of placing the dataset into the designer?
-is it possible to share adapters across webforms?
-is it possible to created a set of adapter with one dataset to reuse across webforms?
thanks,
... more >>
Number of files in a directory.
Posted by prelugejunk NO[at]SPAM hotmail-dot-com.no-spam.invalid at 7/31/2004 8:02:42 PM
EDIT: I no longer need only specific file types in a directory, just
the total number of files!
Is there a more efficient way other than this:
string[] files = Directory.GetFiles(path);
count = files.length;
It seems like such a waste to have to create a full array of strings,
speciall... more >>
Context menu IE
Posted by r+r at 7/31/2004 7:24:30 PM
Hello All
I need to add a context menu voice in Internet Explorer allowing me to
retrieve the urls of a web page.
Well,i'm able to add it ( the voice) but I have to completely understand
how my program interfaces with the web page and viceversa. From msdn I read
about scripting....
any... more >>
Memory usage.
Posted by Nick at 7/31/2004 4:52:08 PM
I have a program that generates a custom bimap every 50ms. Which is slow, but no way to make it faster.
Now I want to keep it generating as fast as possible (which is 50 ms).
But I have to store these images somewhere.
The only place I can think of is ram.
What effect would so many bitmaps have ... more >>
Type class question
Posted by alexandre jenny at 7/31/2004 4:45:33 PM
Easy :
Type mytype = myclass.GetType();
// my isn't an array class.
How can I get easily the Type of an array of myclass using only mytype ?
Alexandre
... more >>
Application->SP problem
Posted by Viktor Popov at 7/31/2004 4:34:48 PM
Hi,
I use ASP.NET/C#/MS SQL and I'm trying to do the following but I find it
very hard!
I have Stored Procedure which saves data from the Application into DataBase.
One of its parameters is @Rooms INT. When A user insert in the WebForm a
value everything is allright because I do this:
cmd.... more >>
DirectX 9
Posted by Raul at 7/31/2004 4:33:55 PM
Hi everyone
Wonder if anyone can please help me, have this urgent
work to get done and the major problem is that I am
complete noive to C Sharp & Directx 9 (SDK) which I have
installed on my home PC, but everytime I try run a
example I get the following error messages in Visual
Studio.N... more >>
What is the difference between ASP.Net and DotNet ?
Posted by petsmirn NO[at]SPAM email.com at 7/31/2004 4:23:18 PM
Sometimes authors are writing in their articles just about DotNet other refer to ASP.NET
Is there a difference or just a different name for the same ?
Peter
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
How do I find out the local DotNet version ?
Posted by hamiltonx NO[at]SPAM lycos.com at 7/31/2004 4:05:23 PM
When I inspect a new computer. How can I find out which DotNet version (e.g. NONE, or 3.0 or 4.0)
is currently installed on it?
Sven
... more >>
Keyword this not available in the current context
Posted by Amit W. at 7/31/2004 4:03:02 PM
Hi
I'm trying to use Rockford Lhotka's "Implementing a Background Process in Visual Basic .NET" in C#" http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnadvnet/html/vbnet09272002.asp.
I have added the Background project in my solution as a VB Project. My UI is in C#. When I... more >>
newbie: web.config for a webservice!
Posted by Jeff at 7/31/2004 4:02:54 PM
Hi all!
IDE: Visual Studio 2003 .NET
OS: XP Pro
I'm experimenting with c# and created a webservice. I want to put
configuration settings into the web.config file so that the webservice gets
more flexible...
Below are 3 questions:
Question 1:
<?xml version="1.0" encoding="utf-8" ?>
<... more >>
Dynamically referencing to .NET class libraries
Posted by M.H.Paravresh at 7/31/2004 3:02:53 PM
We want to have Add-in modules for our application. previously it was
possible by loading dynamic link libraries(Dlls).
what about .NET framework?
... more >>
menu
Posted by freddy at 7/31/2004 2:05:02 PM
I have a mainmenu and sub menus. One of my menus is menuItem5 and when the form runs and the menuItem is clicked the form resizes itself to make it bigger(More Details). I would like the form to show Less Details and the form resiZe itself back to the way it started... more >>
Initializing objects in ctor or class
Posted by Razzie at 7/31/2004 1:10:42 PM
Hello all,
This may seem like a silly question but I suddenly wondered about this. Is
there any difference between the following 2 situations?
1)
class A
{
private SomeObject o = new SomeObject();
public A()
{}
}
2)
class A
{
private SomeObject o;
publ... more >>
ComboBox Default values
Posted by NCrum at 7/31/2004 9:35:02 AM
I want to set the Default value of a Combobox for any changeable record and have got this working but it is totaly unsatisfactory
see the code below
I loop through the items in the Combo looking for a match between cVal and the selectedValue then stop when I do have a match
the obvious problem i... more >>
Generate MS-like looking documentation?
Posted by Andy Meca at 7/31/2004 9:33:39 AM
I wrote a component library in C#. Is there a tool that will generate
documentation for me which looks exactly like the Microsoft .NET framework
documentation?
I saw a third party component that had documentation that looked just like
it was from the .NET framework documentation - same exact ... more >>
Passing Datetime paramters to SQL Select
Posted by JWH035 at 7/31/2004 9:01:01 AM
I'm having a problem properly passing a datetime variable to SQL from C#. In the sqladapter's properties / SelectCommand / parameters when I hard code the Value to a date for selection purposes the datagrid is properly filled. However when I attempt to pass the date value collected from the date c... more >>
Scroll after appendText in RichTextBox
Posted by Joseph Lee at 7/31/2004 8:55:28 AM
Hi,
I am trying to find the command to scroll the richtextbox to the latest
appended string at the bottom. I have tried update, refresh and scroll to
caret but it does not seem to work
Thanks
Joey
... more >>
How can I hihglight the whole row of DataGrid ?
Posted by Serg Matvienko at 7/31/2004 8:21:18 AM
Hi everybody,
My dataGrid is "for read" only.How can I hihglight the whole row of DataGrid
when I am navigating through rows? Now I can see only a small triangle on
the right side of dataGrid moving.
Thanks a lot in advance,
Serg
... more >>
Delay
Posted by adish11 at 7/31/2004 6:20:58 AM
Hi,
In Web Application I would like to create delay for 30 sec in the code to
enable external process to run. During the delay in application I would
like to show the user message like "Please wait while the data being
updated..."
Can u help me please with code lines?
Thank u very much f... more >>
question about Trim
Posted by Gidi at 7/31/2004 5:45:02 AM
hi,
how can i take a float number and make it's lengeth to be only 3 or 4 numbers after the points, for example: if i have the number 1.999999999999 i want it to be 1.999
thnaks... more >>
Question about checking input
Posted by Gidi at 7/31/2004 4:23:01 AM
hi,
how can i check that the input that the user inserts is of the type i need.
for expample if i want the user to insert only numbers how can i check that he hasn't insert letters or something else?
i hope that there is a better way then to check char by char...
thanks... more >>
problem when listing evidences
Posted by fred at 7/31/2004 3:42:07 AM
i wrote this small application:
----------------------------------------------
using System;
using System.Reflection;
using System.Collections;
using System.Security.Policy;
namespace SecTest
{
class DisplayEvidences
{
static void Main(string[] args)
{
Assembly assembly = Assembly.Lo... more >>
insert data into dataGrid or DataSet
Posted by Gidi at 7/31/2004 3:13:01 AM
hello,
i have dataGrid that connected to a DataSet, and i want that when one coulmn in specifc row is changed it will effect other coulmn. i need to use the current cell changed event but i don't know how to enter the data to the dataGrid.
how can i do it??
thanks... more >>
Data sharing between applications
Posted by Tom Q at 7/31/2004 1:02:02 AM
A user has multiple applications running on his/her PC and I want to create
a broker component or service that is shared among the multiple apps. Each
time an application changes a record it notifies the broker and the broker
in turn notifies the other applications so they can take appropriate
... more >>
IActiveDesktop interface from shell32
Posted by David at 7/31/2004 12:46:49 AM
hello...
how can i use IActiveDesktop COM interface from shell32.dll?
thanx...
... more >>
javascript and axwebbrowser
Posted by nicolas at 7/31/2004 12:41:40 AM
Hello
Can i launch a javascrit function on a HTML page which is on a axwebbrowser
?
Thanks
Nico
... more >>
Macromedia Style Slider Control
Posted by CaffeineRush at 7/30/2004 9:59:00 PM
Is there an existing control that functions like the slider control used in
Fireworks when selected the JPEG Quality? A combo-box style drop-down button
is clicked which results in the presentation of a slider control. This
control appears to be tied to a text box whose value is updated as the
s... more >>
get filename problem
Posted by HK guy at 7/30/2004 9:19:02 PM
How to get all the file name in a specify folder to a array.
Thank you... more >>
How to get mouseclick from vs designer
Posted by mikrogen at 7/30/2004 8:48:37 PM
How can I determine if a user has clicked on the control in the =
designer? I would like to change my usercontrol appearance after =
clicking buttons in that usercontrol.
How can I react on dropping other controls onto my usercontrol? Is =
there any tutorial for that?
Thank you very much,... more >>
Using dotnet C# components in Vbscript
Posted by Webgour at 7/30/2004 7:39:09 PM
Is it at all possible to use a C# component from a vbscript code. I need to
have my C# code work within a .asp page.
Thank you for your help.
... more >>
How to obtain a schema for my classes
Posted by Henrik Dahl at 7/30/2004 6:42:45 PM
Hello!
xsd.exe is able to generate an XSD schema for the classes in an assembly. I
suppose that xsd.exe is just using some of the .NET Framework classes to
achieve the outcome, but I don't know which ones. Therefore my question
basically is, how to generate an XSD schema for my classes program... more >>
add data rows into datagrid controll
Posted by authorking at 7/30/2004 6:39:00 PM
How could I add data rows into a datagrid controll so that I can edit my
data in the data rows.
... more >>
indexers and reflection
Posted by Iain at 7/30/2004 5:55:57 PM
I'm writing some reflection code which resolves the value of a complex
expression (e.g. MyInfo.Customers[3].Orders["Order305"].Date), against a
specific object.
I'm struggling a bit with indexers.
I'm not entirely sure how I can find the indexer(s?) on an object. although
there is a defaul... more >>
How to generate a textbox dynamicly?
Posted by lypch NO[at]SPAM citiz.net at 7/30/2004 5:26:08 PM
please help me!
... more >>
How to create a duble buffer transparent control
Posted by °Ë´óɽÈË at 7/30/2004 5:19:16 PM
HI,
I create a custom transparent control, set the style is
ControlStyles.DoubleBuffer, It display black background. How
to create a double buffer transparent control?
... more >>
shallow copy and deep copy
Posted by lypch NO[at]SPAM citiz.net at 7/30/2004 5:17:58 PM
any body please help me ,Please explain what is a shallow copy and what is a
deep copy?
... more >>
play flash
Posted by cfyam at 7/30/2004 5:02:52 PM
How can I play a flash file in my C# windows Form?
... more >>
Compiler
Posted by Jay Calvert at 7/30/2004 4:40:35 PM
Where can I download a compiler?
Thanks!
... more >>
excel and c#
Posted by freddy at 7/30/2004 4:01:03 PM
I am using the following code to read an excel file and display the data on a data grid Code:
string strconn;
strconn = "Provider = Microsoft.Jet.OLEDB.4.0;" +
"Data Source=c:\\\\test.xls;" +
"Extended Properties=Excel 8.0;";
OleDbConnection oConn = new OleDbConnection (... more >>
adding "Plase Wait" form to child control
Posted by VMI at 7/30/2004 3:48:43 PM
How can I add a small "Please wait..." form to a child form so that when I
minimize the child form, the "Please Wait..." form will also disappear? This
form will be displayed when the child form is running a lengthy process or
when the child form is displayed. Once the child form finishes the pro... more >>
ASP.NET/C# appl
Posted by Viktor Popov at 7/30/2004 3:32:04 PM
Hi,
I'd like to ask you for using session.
Let's say that we have StartWebForm. A user who has opened it want to Search
the site and he/she click on the link Search.But he/she is not logged on, so
LogInWebPage is openning. After he/she input his/her username and password
and they are correct, h... more >>
Reflection and Arrays
Posted by alexandre jenny at 7/30/2004 3:28:13 PM
Hi,
Just one small question about reflection :
- Let's have an ordinary Type, stored in refType variable (the type isn't an
array).
How can I instanciate an array of this Type ? Should I really find the type
for the array before ?
(I can instanciate the object by using activator, but an ar... more >>
C sharp gurus needed! data+combo+selected
Posted by ZZZ at 7/30/2004 3:22:14 PM
int dummy=Convert.ToInt32(das.Tables[0].Rows[0].ItemArray[0].ToString());
MessageBox.Show(dummy.ToString());
this.combo_opNaam.SelectedValue=dummy;
MessageBox.Show(this.combo_opNaam.SelectedValue.ToString());
first messagebox : 16,
second: "object reference is not set to an instance... more >>
Determining encoding (Thai)
Posted by John J. Hughes II at 7/30/2004 3:18:34 PM
I have enable Thai language support on English WinXP Pro SP1 via the IME.
I have an old application where I enter the Thai data on a form and then
save it to the SQL server as varchar. This works fine in of itself.
Now I have a C# application that needs to read it. I get garbage.
I am tr... more >>
C# Network Programming
Posted by iman.sadreddin NO[at]SPAM gmail.com at 7/30/2004 3:17:53 PM
Hi,
I was wondering how you can tell (if possible) if a computer is
accessible from the internet (outside of the computers' domain)?
When I find what the ip is I get a 192.168.0.2
And if so what is the ip address of the machine from the outside?
- Thanks.... more >>
"Old format or invalid type library."
Posted by John J. Hughes II at 7/30/2004 3:09:42 PM
I am having the above error when I open an Excel spread sheet from C#. I
have read that it's because I am currently not in en-US culture. Ok I can
remove the error by switch back to en-US before updating Excel and then
swiching back but I really wanted to put non-English in the Excel spread
sh... more >>
datatable relations with column expression bug
Posted by Edward Mostrom at 7/30/2004 2:42:29 PM
I have 2 tables that have a relation between them. The parent table
also has an expression in a column that sums the values in the child
table. Both tables are hooked up to datagrids.
Everything seems to work fine as far as adding and changing rows in the
child table. But if I delete a row ... more >>
How will I make a VB6 application communicate with my VC#.NET application? - Please help
Posted by Anand Ganesh at 7/30/2004 2:34:51 PM
Hi All,
How will I make a VB6 application communicate with my VC#.NET application?
I want the information to be passed back and forth between these two
applications?
Any suggestions please.
Thanks
Anand Ganesh
... more >>
How could I get return handle from DllImport?
Posted by Sherry at 7/30/2004 2:31:19 PM
Hi,
I used LoadLibrary in C++. Now I changed it to C#.
C++ codes:
hKernelLib = LoadLibrary("kernel32.dll");
C# codes:
[DllImport("kernel32.dll")]
The problem is I need hKernelLib (which is the value returned from invoking
LoadLibrary), and it will be a parameter for the next API (such as
... more >>
|