all groups > c# > october 2003 > threads for wednesday october 1
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
C# to VB.net conversion
Posted by Jon Davis at 10/1/2003 10:15:16 PM
Hey, that's pretty sharp, this CS-to-VB converter that came with the free
VB.NET resource kit download on MSDN. I installed the converter on my web
server. Now we need a good VB.NET to C# converter.
http://kryptonite.headsense.com/CSToVBWeb/
Jon
... more >>
how do play mp3 with c# ???
Posted by Du Dang at 10/1/2003 10:07:04 PM
i'm making an alarm clock
and i wanna allow the user to choose their own wake up tune
which method is the best way to go ???
thanks
... more >>
Display SQL database names
Posted by Roy at 10/1/2003 9:52:28 PM
I am using C# and would like to display all my SQL databases in a listbox.
How do I use the sp_helpdb to retrive the names of my databases?
... more >>
hierarchical implementation question
Posted by jayson_13 NO[at]SPAM yahoo.com at 10/1/2003 8:46:10 PM
Hi,
I want to retrieve the hierarchical structure which is store inside
the database and then display it using treeview control. But now I
got a design issue which I hope that you guys can help me. My
hierarchical structure has five levels which is store in table call
level1, level2,… level... more >>
EXPORT TO .CSV WITHOUT CREATING A FILE ON THE SERVER!!!
Posted by LUIS FAJARDO at 10/1/2003 8:16:46 PM
I want to know if there is a way to export a DataGrid
(ASP.NET) without actually having to create a file on the
server. Something like to be able to export an Stream
that is saved as a file on the client side.
Thanks... more >>
P/Invoke: Pointer to a block of memory
Posted by Frank Skare at 10/1/2003 7:55:34 PM
Hello!
I'm trying to get the configuration
from a video driver, the structure
is unknown (defined by the driver).
The API (ICGetState) wants a pointer
to block of memory, unfortunately
I'm a totally beginner to interop and
unmanaged code. If nobody knows
exactly how to do this I would be mor... more >>
Logging to a customer Eventlog From a c#windows service
Posted by timb at 10/1/2003 7:54:56 PM
Hi,
does any have any sample code of the above?
i have tried the example from the help but am unable to get my windows
service to create a new logfile and start logging to it.
I am able to create one however if my application is a windows form
application.
Thanks in advance
TimB
... more >>
small reg exp pattern needed
Posted by Lasse Edsvik at 10/1/2003 7:23:09 PM
Hello
I was wondering why:
Match m = Regex.Match(@"/great ba b4",@"^/(\w[a-z]+)");
doesnt match: great
have i missed something? im trying to match the first word after /
i get: /great
no matter how i try :(
TIA
/Lasse
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
VB to C# Conversion
Posted by T.J.'s News Info at 10/1/2003 5:25:35 PM
I have another question. I have run across the following code segment in a
VB program that I wish to convert to C#:
Type AlphaName
Betty as string
Carl as string
Dan as int
End Type
public valueTable () as AlphaName
.. . .
.. . .
.. . .
for x = 0 to max
. . .
... more >>
How is DataSet class implemented
Posted by Boaz Ben-Porat at 10/1/2003 5:19:16 PM
I heard somewhere that the DataGrid class is implemented as a XML graph in
memory. Is this true ?
TIA
Boaz Ben-Porat
DataPharm a/s
Denmark
... more >>
How to hide a property on DataGrid
Posted by Boaz Ben-Porat at 10/1/2003 5:16:26 PM
Is there an attribute for a property on an object that saus :"This property
is not shown on a DataGrid" ?
I know it can be done on the grid itself, using DataGridTableStyle,
DataGridColumnStyle etc. But I`d like to get the same result by changing my
class, not at run-time changing grid`s behav... more >>
USB / HID communication
Posted by Hubert Hermanutz at 10/1/2003 5:04:10 PM
Hello,
Where can i get a sample about HID communication with .NET Framework?
I don't know enough about HID communication, only that with VC++ it is
possible to using the Windows Device Development Kit. Exists for .NET
specifically namespaces or must i also use the DDK?
Thanks in advance,
... more >>
downcasting... can't do it but...
Posted by Rein Petersen at 10/1/2003 5:03:18 PM
Hi Folks,
I've accepted that one cannot downcast between types, however I can't find a
way to achieve
//...
class Employee
{
public string name;
}
class ContractEmployee : Employee
{
public string contractID;
}
class SomeOtherKindofEmployee : Employee
{
public strin... more >>
An object that handles Name=Value pairs?
Posted by Bill Todd at 10/1/2003 4:57:11 PM
Is there an object in the .NET framework that has methods for working
with Name=Value pairs such as those in a connection string?
What I am looking for is something similar to an ArrayList but with an
IndexOfName method that will find the first occurance of the value on
the left of the = sign ... more >>
timespan problem
Posted by Dirk Reske at 10/1/2003 4:48:19 PM
hey,
when I do:
TimeSpan ts = TimeSpan.FromTicks(System.Enviroment.TickCount);
ts.ToString();
I get something like this: 00:00:00.2381474
but I want to see, how many hours, minutes....this are...
what can I do?
... more >>
Drag and drop
Posted by Karin at 10/1/2003 4:44:11 PM
Hi,
Isn't the cursor supposed to change depending on whether the control it is
over accepts drop?
In my program I have a panel which has AllowDrop = true and event handlers
for both DragEnter and DragDrop which works fine (i.e. does what I want) but
the cursor doesn't change from Cursors.No w... more >>
Checkbox in Word XP
Posted by Mattias Thuresson at 10/1/2003 4:09:32 PM
I have checkbox in a word document that I want to be able to check aand
uncheck from my C#-app.
How do I do that in a good way ?
Regards.
Mattias Thuresson
... more >>
Why are non-virus messages being delete?
Posted by Michael Culley at 10/1/2003 3:52:53 PM
I've clicked on many messages in the past few days that have been deleted from the server, including the one I posted recently. Does
anyone know what is going on?
--
Michael Culley
... more >>
Wrapping text in a DataGrid Cell
Posted by Randy at 10/1/2003 3:33:46 PM
Hello,
How would this be done? I've looked at the datagrid itself and also the
tableStyle and can't find out how to make text wrap in a cell.
Thanks
... more >>
Dropdownlist select by datavalue
Posted by Lars Pedersen at 10/1/2003 3:20:01 PM
Hi!
Have can i select an item in a DropDown List, based on a datavalue.
thanks
-Lars
... more >>
Microsoft Visio + c#... problems
Posted by Roman S. Golubin1709176985 at 10/1/2003 3:08:06 PM
All how do you do!
Who what cases uses for C# programming?
I have an experience with Microsoft Visio several days. He has a problem
with interface inheritance...
óan who that other advise?
Thank in advance!
--
WBR, Roman S. Golubin
ICQ UIN 63253392
golubin@arhcity.ru
... more >>
IPictureDisp in C#
Posted by john at 10/1/2003 2:47:27 PM
I'm working on an add-in and one of the methods in the
extensibility model takes an object of type IPictureDisp.
How can i get this in .Net? I've tried loading up bitmap,
image and icon classes, and use those, but they dont
impelemt this interface.
has any one played with IPictureDisp i... more >>
Problem with datagrid row select
Posted by Chris Plowman at 10/1/2003 2:46:31 PM
Hi all,
I was wondering if anyone can help me with a really annoying problem I have
been having. I made a derived datagrid class that will select the row when
a user clicks anywhere on a cell (multi-select without modifier keys). I
got that working fine, but I also wanted to keep rows selected... more >>
Extensibility install not working
Posted by Richard at 10/1/2003 2:26:47 PM
All,
I have coded an Outlook automation Addin in C# and .NET.
I created the project using the Extensibility wizard. The
Addin installs and runs Ok on my machine.
However I am unable to succsefully install the Addin on
other machines. The install runs without error, it does
unpack ... more >>
Compling Web Application From Command Prompt
Posted by gokhan Can at 10/1/2003 2:17:22 PM
Is it possible to compile a web application code from command prompt instead
of .Net Framework??
If it is how can I do this ??
Gökhan Can
... more >>
small Reg exp prob
Posted by Lasse Edsvik at 10/1/2003 12:58:16 PM
Hello
I was wondering how to match car and the rest behind car using reg.exp?
/car black bla bla bla
so i can handle "car" and "black bla bla bla" seperately afterwards
TIA
/Lasse
... more >>
Old-fashioned Style (ASCII/ANSI) & Console Applications in c#
Posted by Martín_Marconcini at 10/1/2003 12:54:41 PM
Hello there,
I'm writting (or trying to) a Console Application in C#. I has to be
console.
I remember back in the old days of Cobol (Unisys), Clipper and even Basic,
I used to use a program (its name i cannot recall now...) where I designed
the "screen" using this "program" and then saved ... more >>
How to get PC ID
Posted by Ofer B. at 10/1/2003 12:47:40 PM
Hi,
I need to get an ID for the PC. It does not matter what ID: processor, Mac,
Hard disk, any kind of ID.
How can I get some of these IDs with C#
Ofer
... more >>
Yielding time
Posted by Kevin Chandler at 10/1/2003 12:46:50 PM
Greetings to All,
I have a c# conversion app that does a lot of crunching and updates a status
window containing a RichText control. The updates to the control do not
appear until the job is done and the processor is freed up. I know in C++
you could pump some messages and the update would h... more >>
Drawing in XP Style
Posted by Michael Culley at 10/1/2003 12:29:18 PM
I'm trying to covert a userdrawn control written in C# to use the XP style. It consists only of a border, a button and a textbox.
The button and textbox is working fine but the border is not. The problem I have is that I cannot find the value of the constant
GP_BORDER as listed in this page of the... more >>
Date problem?
Posted by Jacek Jurkowski at 10/1/2003 12:21:58 PM
Why on some computers DateTime.Today.ToShortDateString()
returns date in "9999-99-99" format and on other machines
I get "99-99-99"? How to make it independent?
... more >>
ConnectionTimeout
Posted by BVM at 10/1/2003 11:55:04 AM
Hi:
Do you know how to change Connection timeout time? By default it's 15s, =
Now I want to change it to 30s. However SqlConnection.ConnectionTimeout =
is read only. What should I do?
Also if the SQL query is to long and need several minutes to finish, is =
there a way to make timeout time ... more >>
casting vs System.Convert
Posted by Daniel Billingsley at 10/1/2003 11:29:14 AM
Is there any significant difference between
int variable1 = (int) variable2;
and
int variable1 = Convert.ToInt32(variable2);
It seems like the extra typing and granularity of .ToInt32 vs. .ToInt64 etc.
is a bit of overkill for most situations compared to the very simple and
straightfor... more >>
question about .net environment
Posted by No doubt at 10/1/2003 11:25:45 AM
Hi guys, I've got a short question for you:
Is it possible to create with Visual Studio .Net and C# applets, similat to
the Java applets?
If yes, how can I do that?
Thanks,
tZUTZU
... more >>
Using C# Regex.IsMatch to validate 4 digit string?
Posted by Byron at 10/1/2003 10:24:11 AM
All I am trying to do is use Regex.IsMatch to validate that a string is
either empty, or exactly 4 characters (digits) in length. In other words,
the strings, "", and "1234" should pass, whereas "123", "abcd", and "12345"
should fail. I know there has to be a simple answer to this, but right now... more >>
host ...
Posted by Lloyd Dupont at 10/1/2003 9:53:55 AM
In my App the user could manually enter some host computer location
for this he has the choice to enter either the IP or host name.
I get the IP address internally with the following code sample:
IPAddress ia;
try
{
ia = IPAddress.Parse(host);
}
catch(FormatException)
{
IPHostEntry... more >>
SSL sockets
Posted by Laxmikant Rashinkar at 10/1/2003 9:33:59 AM
Hello,
how does one implement SSL tcp/ip sockets in C#?
I dont seem to find anything on that topic
Any feedback, tips would be greatly appreciated.
thanks
LK
... more >>
Raise Event
Posted by Mauricio Rendon at 10/1/2003 9:26:38 AM
Hi,
If I have a Label in a Form and need to raise the MouseUp
event on the label to the Form ( Parent Control ), What
must I do ?
Thanks !!!
... more >>
Multidimensional Array Hell - C# versus Java => C++ ???
Posted by oviaudmurat NO[at]SPAM web.de at 10/1/2003 8:59:51 AM
Goodday everybody,
i want to create an array that represents data, that has to
be transferred to a pdf doc ( iTextSharp ).
The problem is, that i seem too loose my faith. Namely, ( i have
experiences in
c/c++, perl and i thouht in c#, too ), i do not succeed in creating a
multidimensional ... more >>
Deploying using a different web root
Posted by islandlogic NO[at]SPAM hotmail.com at 10/1/2003 7:57:57 AM
We have a webservice that we have been deploying using the deployment
project in Visual Studio. Now we are trying to deploy this service to
a server that has multiple sites. I have looked everywhere in the
deployement project to see where I can allow the person installing to
choose the root, b... more >>
TabControl with BOTH Top and Bottom alignment?
Posted by CANCERMAN NO[at]SPAM CANCERMAN.COM at 10/1/2003 7:12:57 AM
Hi everyone,
I'm another newbie with C# so bare with me :) OK, here is what
I wanted to do: Create a TabControl that will have some TabPages
aligned to the TOP and some TabPages aligned to the BOTTOM. Is it
even possible? Currently I created 2 TabControls, one with Top
alignment and ... more >>
Excel automation problem
Posted by Kalle at 10/1/2003 5:21:18 AM
During Excel automation in VB one can lock lines for
scrolling by the following code
ActiveWindow.FreezePanes = True
what would be the equivalent in c#?
Is it some way to convert or generate Excel Macron in C#
rather than in VB?
Greateful for answers!
Kalle... more >>
Mathematical Function
Posted by Jerry chapman at 10/1/2003 2:40:15 AM
Does C# have the standart mathematical functions such as sin,cos etc.? Or
does one have to use pinvoke>
... more >>
Conditions at Compile time
Posted by Yosi at 10/1/2003 12:48:19 AM
Hi,
I wondering if there is any whay to add some conditions to
my code which used on the compile run time,
as on C++/C
"
#ifdef DEBUG
UI ui("AppDBG> ");
#else
UI ui("App> ");
#endif
"... more >>
|