all groups > c# > january 2007 > threads for monday january 22
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
accessing part of file
Posted by Bob at 1/22/2007 10:40:50 PM
Hi,
I have a newbie question. Lets say I have a very large file and a key
that says the information I am interested in is from byte 1,000,000 to
byte 1,100,000 in the file. How can I read in the bytes of interest
without reading in the entire file?
Thanks,
Bob
... more >>
Password security
Posted by Egil at 1/22/2007 10:40:14 PM
Hello,
I am concerned about my current project. I have to connect to a database
by internet. Therefore I have to store login name and password for the
database in my application in some way but I am concerned about
security. I would be very pleased with ideas of how to store these
informa... more >>
PInvoke "Struct" Problem
Posted by angshuman.agarwal NO[at]SPAM gmail.com at 1/22/2007 10:32:40 PM
Structure in C DLL
----------------------------
typedef struct IrData
{
unsigned short uiFormat;
unsigned short uiLength;
unsigned char* pchData;
} tagIrData;
Function in C DLL
----------------------------
short ConvertData(char* pchString, tagIrData* ptIrCode); ---> This
function fi... more >>
Deserialize to 'this'
Posted by Hoss at 1/22/2007 7:40:45 PM
Quick Remark.
I have a class that looks like this
[Serializable]
[XmlRoot("Class")]
public Class
{
[XmlAttribute]
public int Attribu
{
get{};set{};
}
[XmlAttribute]
public int Attribu
{
get{};set{};
}
}
Set up perfectly for Xml Serialization / Deseriali... more >>
multidimensional arrays and tostring
Posted by Nick Valeontis at 1/22/2007 7:38:00 PM
Here is a snippet:
------------------------------
double[,] a = new Double[2,2];
a[0, 0] = 1;
a[0, 1] = 2;
a[1, 0] = 3;
a[1, 1] = 4;
MessageBox.Show(a.ToString());
result: System.Double[,]
------------------------------
Is there a way to customize ToString's returning value so th... more >>
how to implement System.Windows.Forms.keys in a console app
Posted by Mo at 1/22/2007 7:28:06 PM
Hi,
I am writing a console application to send a key sequence to an old
clunky application on a regular interval using the windows scheduler. I
can get it to work if it is a windows form application but not in a
console application. Two questions I have:
1) how can I get this code modified ... more >>
Need some feedback or advice for my web site
Posted by Mark C at 1/22/2007 6:48:12 PM
Hi
I am in the progress of developing a web site whereby developers can do
free online tests on various programming languages.
I would just like some advice or feedback on ways to improve the site
or other comments of the site
The site is http://www.quiznetonline.com
Thanks in advance
M... more >>
Properties.Settings
Posted by Dave at 1/22/2007 6:03:58 PM
When using the properties designer to store application wide properties how
do you get this to work across a project group containing an EXE and a
collection of DLLs. I'm using C#.Net 2005. I noticed that the designer
creates and app.config that gets copied to the output directory as a
[progra... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
How do I use AppDomains and add search paths to it?
Posted by Eric Renken at 1/22/2007 5:30:00 PM
I have an application that I am adding support for plug-ins and I am looking
for some help on the best way to handle this. My question has to do with
AppDomains and the best way to use them.
I have a directory structure like this:
MyApp
\AddIns
... more >>
C# 2005 express vs. pro
Posted by Peter at 1/22/2007 5:11:31 PM
Can someone tell me what is the difference. Just start learning it, most
books are for Pro edition, will I miss something by using Express edition?
Can get VS for about $100, so is not problem to use either one. Thank You
... more >>
Declaring array of references.
Posted by rayreeves at 1/22/2007 4:54:11 PM
How do I declare an array of references to the elements of an array of
values?
Ray
... more >>
Custom ListView
Posted by --== Alain ==-- at 1/22/2007 4:48:16 PM
Hi,
I'm coming back on the ListView component that i would like to design.
I finally finish to analyse how it should work (on paper).
So i have properties, methods and events that i should implement.
I found several points that must base component respects to implement it.
- it should imple... more >>
Exception trhown during Catching... How to get both exception Info?
Posted by Paolo at 1/22/2007 4:38:18 PM
Hello Everybody!
Considering this code:
try
{
ExecuteOperation();
}
catch
{
Rollback();
throw;
}
Now, if ExecuteOperation() throws an exception "exA", AND during catching
also Rallback() throws an Exception "exB", I will lose every information
about ex... more >>
Initialising values in a C# struct
Posted by Jay at 1/22/2007 4:32:13 PM
In C++ I can initialise a struct as follows:
struct fileInfo {char filename[STRLEN]; int gotFile; int ch; int ln;};
fileInfo configFile = {"", 0, 1, 1};
Is there a similar way to initialise a struct in C#? The compiler flags an error at the opening
curly brace of the second line of the fo... more >>
Inherit
Posted by DAVE P at 1/22/2007 4:07:59 PM
i want to extend the progress bar control via inheritance
my question is...in the ide how can i expose the inherited
control
for instance can i ad my inherited control in the tool box
or is there a property that has control inherits from
thanks
dave
... more >>
Culture and Locales
Posted by John Smith at 1/22/2007 3:57:44 PM
My computer is set to English location and locales via the control panel.
How come it therefore thinks the current culture is en-US ?... more >>
How to sort a Gridview in Csharp?
Posted by Quickjoin Developer at 1/22/2007 2:28:55 PM
Debugging Visual C++ 6.0 from VS2005
Posted by wildThought at 1/22/2007 1:46:33 PM
I have created an ASP.Web Service on my machine. This has a COM Object
registered to it that was written in Visual C++ in Visual Studio 6. I
want to have the debugger step into the Visual C++ code. Is this
possible?
... more >>
XmlReaderSettings .net 2.0?
Posted by ba.hons at 1/22/2007 1:44:50 PM
Hi
I have been tring to use some of the following classes which are new in
..net version 2 from what i have read on the MSDN the following should
be supported
XmlReaderSettings settings = new XmlReaderSettings();
AND
XmlReader rdr = XmlReader.Create("books.xml", settings);
Bue i get... more >>
What is the difference between UserControls and CustomControls
Posted by chandu at 1/22/2007 12:46:51 PM
Hai,
What is exact difference between in windows user controls and custom
controls
and i want to dispaly login user control as popup (like a form) window in
one Parent form
can any body help me.
thanxs
chandu
... more >>
getting a file list
Posted by Jerry at 1/22/2007 12:25:12 PM
Hi!,
I am just starting out in c# here and what I want to do is get a list of
files, list them in a a listBox. I want the to beable to select either 1,
2, ... ALL files in this list and execute a job on them.
Here is what I have so far:
using System;
using System.Collections.Generic... more >>
Iterating all open forms
Posted by Daniel at 1/22/2007 12:10:30 PM
Hi
I have a an application that opens up forms as it runs. So at any time 5
forms may be open for example, each form represents a room.
I need a way to iterate through these forms so that someone doesn't open the
same one twice. Is there a built in way of doing this? c#, .net. So i would
... more >>
Problems overrideing the == operator
Posted by mathboy2 at 1/22/2007 11:49:36 AM
Can anyone tell me what I'm doing wrong in the below snippet of code?
I'm simply trying to override the == operator but having no luck. I
can't even get it to hit a break point at the top of the == method. The
line of code I'm using to compare is:
MyState a = new MyState(LINE_STATE.LINE_STATE_... more >>
Known issue with VS2005?
Posted by Daniel at 1/22/2007 11:49:15 AM
Hi guys
I have a project that sometimes, when i run it, it just hangs as if it is
about to run but stays hanging. Obviously i assume it's my code, however,
restart my computer run the same code and it runs fine over and over and
over and then seemingly randomly hangs when trying to run.
... more >>
Localization - change language on the fly?
Posted by Hans Kesting at 1/22/2007 11:28:21 AM
Can I change the language of an existing form on the fly?
Say I have two radiobuttons: "dutch" and "english". When the user
selects one, the form must switch to the selected language.
Is that possible and how?
When I set System.Threading.Thread.CurrentThread.CurrentUICulture, any
new form... more >>
Storing Custom Classes in User Settings?
Posted by Paul Hadfield at 1/22/2007 10:41:11 AM
Hi,
I'm not having a lot of luck googling for this one, I want to be able to
store a custom class in the user settings (DotNet2.0, win app). I don't
wish to create public get / set properities for all the things I want to
persist just for storing in the user settings file (because that wou... more >>
How to tell when EnumChildWindows has finished
Posted by pigeonrandle at 1/22/2007 10:34:25 AM
Hi,
This could also be read as 'Does the EnumChildWindows callback block
the rest of my application until the enumeration has finished?'.
Basically i want to create a treeview similar to spy++... and i don't
want to start building the tree until all the windows have been
enumerated (obviously... more >>
Creating Custom Dialog boxes with CommonDialog
Posted by DMc at 1/22/2007 9:41:41 AM
Hi,
I have been searching for tutorials and tips on how to create my own
Dialog box using the CommonDialog abstract class, and I have not been
able to find anything useful.
Can anyone have any example they would be willing to share or suggest a
decent tutorial?
Thanks
David
... more >>
Good idea or bad idea?
Posted by pigeonrandle at 1/22/2007 8:48:01 AM
Hi,
My application creates a project that is structured like a tree, so i
want to use a treeview to display it to the user.
Would it be a good idea to create the various parts of project as
classes inherited from TreeNode and then just add them to the treeview
(ie adding extra properties to t... more >>
what will be the output?
Posted by maheshwari.sumit NO[at]SPAM gmail.com at 1/22/2007 8:45:37 AM
Num1=1
Num2=1
writeconsole(Num1==Num2)
Writeconsole(Num1.ToString()==Num2.ToString())
WriteConsole((object)Num1==(object)Num2)
What will it print?
... more >>
One form to another
Posted by weird0 at 1/22/2007 8:31:25 AM
How can i access the value of one textbox1.Text in Form1 in Form2.
Form2 is opened right after Form1.
I have worked on c++ but havent worked on c# with Windows applications.
... more >>
Creating an SMS server that sends and receives SMS
Posted by weird0 at 1/22/2007 8:28:27 AM
Hi! everyone on this group.
For the last post, i figured out what was the problem. I was trying to
create ans parse xml file which is not possible simultanously as the
file is already in use by a process and another process for parsing
cannot access it.
I have to implement e-banking as my f... more >>
Retrieving all vdirs
Posted by xxxx at 1/22/2007 7:35:47 AM
Dear All :)
i'm using c# , VS 2003 and IIS 6
i was wondering how can i get all the virtual directory folders
available on the local server using c#.
i'm trying to build a desktop application that will list virtual
directories available on the localhost.
any help:)
thanks for ur time :)
... more >>
2005 Setup Project: Installing SQL Server Express prerequisite with command line parameters
Posted by Velislav at 1/22/2007 7:16:59 AM
Hi, I've got a setup project which installs SQL Server Express as a
prerequisite to my program.
The problem is that by default it's installed using the SQLEXPRESS
instance name and Windows Authentication login mode.
I'd like to have my own instance name and SQL Authentication, which is
easi... more >>
IsDaylightSavingTime .NET 1.1 vs 2.0
Posted by doomsday123 NO[at]SPAM gmail.com at 1/22/2007 7:01:35 AM
Will
private bool IsDST(DateTime d)
{
return System.TimeZone.IsDaylightSavingTime(d,
System.TimeZone.CurrentTimeZone.GetDaylightChanges(d.Year));
}
in .NET 1.1 return the same thing as this in .NET 2.0?
private bool IsDST(DateTime d)
{
//convert time to local and check for daylight sa... more >>
Conditional Log messages
Posted by Steven Blair at 1/22/2007 6:25:44 AM
Hi,
My application requires 3 different types of logging:
Standard
Debug
Performance
I want an approach that can easily allow the user to do this:
At the moment, my code looks something like this:
//To display some standard log message
WriteLog( myMsg );
//To display a debug mes... more >>
Can't create a static class!
Posted by pigeonrandle at 1/22/2007 6:23:50 AM
Hi,
Can anyone tell me why i cant create the following class as 'static':
//Start
using System;
namespace WinAppSQL.windows
{
public static class WinAPI
{
public static int go() { return 1; }
}
}
//End
The compiler refuses! I'm using VS2003 framework 1.1.4322 SP1.
Cheer... more >>
datasets acting as database tables
Posted by pleaseexplaintomee NO[at]SPAM yahoo.com at 1/22/2007 6:07:13 AM
is it possible to select from 2 datasets, forming a 3rd dataset -
"select ds1.field1 from ds1, ds2 where ds1.field1=ds2.field1" ? Or
something similar? thanks
... more >>
about c#
Posted by devi at 1/22/2007 5:22:26 AM
hi.
i am new to dotnet ....
please clarify my doubts
tell me about type of applications which is in ide...
eg: what is the purpose of console application,..and so on how many
applications in templates...
by
devi.n
... more >>
Correct use of dispose
Posted by pigeonrandle at 1/22/2007 5:21:44 AM
Hi,
I have a class with a handle to a window and a handle to its icon (if
it has one).
What do i need to do to correctly free these resources when my class is
disposed?
Cheers,
James.
... more >>
Howto change a C# winforms Screen Saver's Title in Display Properties?
Posted by Mark van Dijk at 1/22/2007 3:02:03 AM
Hi there,
I have a farely simple question that I can't seem to find the answer
to.
I've got a C# Winforms application that after building results in an
executable. This executable is then renamed to an .scr file and used as
a Screen Saver.
How can I get this file to come up with a differ... more >>
[NET2.0] Accessing Assembly Resources from other Assembly
Posted by dkunha at 1/22/2007 2:53:25 AM
I have an resources only assembly.
>From inside the assembly I can access the several resource objects.
string1 = Resources.Resource1.String1
string2 = Resources.Resource1.String2
image1 = Resources.Resource1.Image1
But using this assembly in another project I can't get to them becaus... more >>
Reference error!
Posted by rcoco at 1/22/2007 1:25:33 AM
Hi,
I have this project it has a folder that it's supposed to read but when
I run an error occurs the type or namespace name src could not be
found(areyou missing a using directive or an assembly referrence?).
This folder is src it contains a folder called controls and in controls
that's ... more >>
|