all groups > c# > march 2005 > threads for tuesday march 8
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
.NET Comonent vs COM component
Posted by .NET Comonent vs COM component at 3/8/2005 11:09:06 PM
What is the difference between a COM component and a .NET comonent. Explain
Detail description with sample code
... more >>
Label over tabControl?
Posted by Keith Smith at 3/8/2005 10:20:52 PM
How can I place a label in FRONT of the tabs on my tabControl? I have three
tabs in my tabControl and I want to make some use of the space to right of
them. But when I try it puts the label behind the tabControl. I have tried
"send to back" and "bring to front" but they don't seem to help -... more >>
how can i protect against decompilers
Posted by Tolga Tanriverdi at 3/8/2005 10:18:45 PM
i saw something named obfuscator and its decompiling the source code of my
program which written in c# and my program includes mysql root password
inside of it
is there anyway to protect my program against this decompilers.
Thanks
... more >>
Creating VS debugger add-in for viewing DataSet/DataTable
Posted by MuZZy at 3/8/2005 10:05:38 PM
Hi,
I'm developing an add-in for Visual Studio which works like Quick Watch in debug mode for viewing
datasets/datatables as tables.
I already have a working add-in, but there is one problem i can't find solution for:
When i select a dataset object and from context menu choose "DSWatch" (... more >>
All lines appearing at once
Posted by Tolga Tanriverdi at 3/8/2005 10:04:47 PM
I wrote a program and when i click the button i want the lines that i want
print in an order
my code is like this
[b]
public void btn_clicked(object ob, EventArgs e)
{
this.btn.Visible = false;
this.txt1.Text = "Waiting For Username and Password....\n\n";//this
//... more >>
Help with KeyPress on comboBox! Code included!
Posted by Keith Smith at 3/8/2005 9:41:05 PM
Ok, I have been researching this problem for the past two hours (at least!)
and I just can't seem to figure it out. So I broke down and decided to post
some code for some of you gurus to look at.
When running the code, don't forget to add the autoCompleteComboBox.dll file
which is included.
... more >>
What's wrong with this code?
Posted by Brian at 3/8/2005 9:27:04 PM
I'll provide a working example if this isn't some cluelessness on
my part (i.e. someone can spot the issue right away). Can someone
tell me why a cast isn't working below as an index?
Fields is a simple enum.
enum fields {field1,field2,field3};
mydata is an array of MyAbstractDataType. ... more >>
Drag & Drop - Solution Explorer
Posted by Wendell at 3/8/2005 8:39:02 PM
I have noticed that I can drag and drop an executable into a C# .NET
solution. How would I go about using an executable I dropped into my solution?
Lets just say all I need to do is feed an executable some text from standard
in. Has anyone done this yet?... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Server to Client Communication
Posted by TCM at 3/8/2005 8:17:03 PM
I have searched this forum and nothing really answers the question of how you
push data from the server to a client in real time.
I have an application running on the server which recieves messages whenever
they hapen from another application. These messages need to be displayed on a
websit... more >>
Parse through classic ASP with C#?
Posted by Sweet Daddy Coconut at 3/8/2005 8:09:46 PM
I would like to write an application that i can load up a classic asp
page and parse the file looking for unclosed quotation marks or the
presence of an ID tag or even casing within the asp code. Is this
possible, and if so, are there any code examples or a place where
someone can point me in th... more >>
Form KeyPress e.Handled question
Posted by Keith Smith at 3/8/2005 8:05:26 PM
If a KeyUp event takes place on my form, how can I keep the
KeyDown/KeyPress/KeyUp events from being run on the control event itself.
I tried putting e.Handled=true; at the end of my KeyUp event, but that
doesn't seem to work. Am I missing something? It appears that the KeyUp
event on my ... more >>
Changing the registry permissions in C#
Posted by Daniel Passwater via DotNetMonster.com at 3/8/2005 7:34:10 PM
I'm working on a app that displays according to a registry key value. The
user needs the ability to update the display, and hense the registry key
(via a click event on a popup menu). This all worked just fine until some
users were set up as power-users. I've tried to change the permissions on
t... more >>
Problem registry value is read as verbatim
Posted by Fred at 3/8/2005 6:48:12 PM
Hello,
Is there a way to read values from the registry as regular instead of
verbatim?
Regards,
Fred
... more >>
win32 app pass Parameters
Posted by André at 3/8/2005 6:45:03 PM
Hi,
How do I create an win 32 app and pass parameters to have it respond to the
passed values?
Like winzip "winzip32 -a"
Kinda like Console args but I want to be able to call it via Start run
helloworld.exe – something
Can someone post a simple example or a link?
vb.net or C#
T... more >>
Process.Start()
Posted by Robert Megee at 3/8/2005 5:44:49 PM
I can't get Process.Start() to work from a Web application.
Is this because of the security settings in the browser?
Since this is for a private network, security isn't an issue.
Anyone know how to make this work or is there another way?
I've tried:
Process proc = new Process();
proc.Sta... more >>
Win Form datagrid row change event??
Posted by on_fire1111 NO[at]SPAM yahoo-dot-com.no-spam.invalid at 3/8/2005 5:36:34 PM
Is there such a thing as a row change event in Win Forms? I can't
seem to find anything similar, I'm using CurrentCellChanged but that
gets fired mulitple times and its not the correct event for me to
use.
thanks
Posted Via Usenet.com Premium Usenet Newsgroup Services
-----------------... more >>
How can I communicate with a WebPage?
Posted by Keith Smith at 3/8/2005 5:09:13 PM
How can I send and receive information to a webpage? Something along these
lines...
//Send data to page
SendVars.Url(http://www.mydomain.com?report=yes&var=2);
//Get data from page
GetVars.Url('http://www.mydomain.com', string report, int var);
... more >>
Alternatives to Creating a Shared Folder?
Posted by Keith Smith at 3/8/2005 5:06:25 PM
Are there any alternatives to sharing a database without creating a shared
folder? I guess I could create a client/server app, but I'm trying to avoid
that. On the other hand, I am also trying to avoid someone deleting the
share to my database folder. Any ideas?
... more >>
enable a user account in Active Directory?
Posted by Angelo at 3/8/2005 5:00:16 PM
Hi,
I've been trying to create a user in Active Directory. So far this works,
however default the user is disabled. I've been trying so much code to
enable the user, but without success, perhaps you could help me.
Here's the code:
--------------------------
System.DirectoryServices.Directo... more >>
Getting the Version of EXE File Using C# .NET
Posted by kris at 3/8/2005 4:39:30 PM
Hello,
We're porting some old code to our new C# .NET project and are having
trouble getting the file version of a non-.NET EXE file using C# .NET code.
In our old code, we were using the FileSystemObject (specifically the
GetFileVersion method) to easily get the version of the EXE file.
In... more >>
usercontrol
Posted by Hrvoje Voda at 3/8/2005 3:50:40 PM
I have created a usercontrol.
I would like to put it in toolbox, but when I wnat to addItem I can't find
my control.
Why?
Hrcko
... more >>
How can i protect myself against decompilers
Posted by dakkar NO[at]SPAM sylveria.gen-dot-tr.no-spam.invalid at 3/8/2005 3:36:39 PM
i saw something named obfuscator and its decompiling the source code
of my program which written in c# and my program includes mysql root
password inside of it
is there anyway to protect my program against this decompilers.
Thanks
Posted Via Usenet.com Premium Usenet Newsgroup Services
-... more >>
All messages appearing at once
Posted by dakkar NO[at]SPAM sylveria.gen-dot-tr.no-spam.invalid at 3/8/2005 3:36:39 PM
I wrote a program and when i click the button i want the lines that i
want print in an order
my code is like this
public void btn_clicked(object ob, EventArgs e)
{
this.btn.Visible = false;
this.txt1.Text = "Waiting For Username and
Password....\n\n";//this //This line writes on ... more >>
Populating a TreeView from a relational database
Posted by tzvikaz NO[at]SPAM gmail.com at 3/8/2005 3:21:15 PM
Let's say I have this db:
Table: Companies
-------
Ford
Toyota
BMW
Table: CarTypes
--------
Sedan
Van
Compact
Table: Colors
------
Red
Blue
Orange
Yellow
Green
Black
Ta... more >>
Recursively Set All Folders & Files to NOT Read-Only
Posted by melo at 3/8/2005 3:13:48 PM
Hello,
I've been struggling with a function(s) to recursively set all folders and
files to NOT read-only. So, I thought I'd post this message.
What I need to do is: given a starting path, I need to recursively go
through all files and folders below the starting path and check if the file
or... more >>
Can {Enter} tab to the next control?
Posted by Keith Smith at 3/8/2005 2:55:22 PM
Is there an easy way to make the {Enter} key take the cursor to the next
control without using a KeyDown event on each control?
... more >>
click
Posted by Hrvoje Voda at 3/8/2005 2:49:02 PM
I have inhereted a treeview control from another form.
How can I "work" with it?
I would like to put Click EventHandler !
Hrcko
... more >>
flowing identity from UI-tier to DB-tier
Posted by Ole Hanson at 3/8/2005 2:48:55 PM
Hi,
I would like to flow the identity obtained in the UI (ASP.NET, Kerberos) to
my datatier which is a remote Sharepoint installation. The Sharepoint
installation is only used as documentstore, and I access it using the
built-in webservices.
Therefore, I need an object implementing the I... more >>
How can I get the date of a file?
Posted by Keith Smith at 3/8/2005 2:41:13 PM
I would like to get the last run date of a file called "scale.txt". How
would I do that?
... more >>
Is C# crackable?
Posted by Keith Smith at 3/8/2005 2:38:38 PM
How easy is C# to crack? Are there easily available decompilers out there?
I am making an C# application and I wonder how secure my app is.
... more >>
Lock taskbar & Start button
Posted by news.microsoft.com at 3/8/2005 2:20:28 PM
I'm trying to write a program that will lock down the system. I want to
hide the start button and taskbar. I found code using ShowWindow &
FindWindow but they fail to work.
Butttonhwnd = FindWindow("Shell_TrayWnd", "")
Butttonhwnd = FindWindowEx(Butttonhwnd, 0, "Button", Nothing)
ShowWind... more >>
System.UnauthorizedAccessException //got stuck
Posted by genc_ymeri at 3/8/2005 2:10:35 PM
Hi,
I'm getting constatly an error and I'm not sure where it is coming from.
From the message it seems like ASP.Net build in account does not have all
the rights but I manually added all possible rgiht to that folder and I
added this account to all admin groups.
I did reinstall VS.2003 on... more >>
VB Like *
Posted by André at 3/8/2005 1:35:06 PM
Hi
Does anyone know how I can use the Like statement in VB.net and C# .net?
I know it works in VB.net but when I turn on option strict, It doest like it.
How would I use this statement in VB.net and C#
If textbox1.text Like "*Week*" Then
….
End if
If(textbox1.text Like “*Week*â€... more >>
Config File .dll
Posted by Andy at 3/8/2005 12:55:12 PM
Hello All:
When you develop a C# app that is deployed as an .exe, you can use a
[appname].exe.config file to set some parameters to avoid changing code.
I would like to do the same thing using a .dll, however: I am not sure how
to go about doing this with a .dll, as the config file does n... more >>
how to get Media Player ID in C#?
Posted by CurlyFro at 3/8/2005 12:51:02 PM
i'm using Visual Studio 2003. i'm creating a web project. if i drag and
drop the Windows Media Player control from the toolbox the definition is not
created in the code-behind. from the code-behind, how do i access this
object?... more >>
char number
Posted by Hrvoje Voda at 3/8/2005 12:35:44 PM
What is the char number for Escape button ?
IS there a list for all char numbers on windows?
Hrcko
... more >>
Web Control Display problem
Posted by Gary Coutts at 3/8/2005 12:34:23 PM
Hi,
I have just started developing web application using C#/ASP.Net and I am
have a
problem.
I have generated a web form (using .NET 2003) with various buttons, labels,
drop-downs etc ( just to see what they would look like on screen) but when I
run it in Explorer the various controls are... more >>
'GetType' Question
Posted by Razzerroo at 3/8/2005 12:06:59 PM
Still on my quest to convert my company's VB.NET code to C#.
Here's the line I need to convert
VB.NET
System.Runtime.Remoting.RemotingServices.Connect(GetType(ISensor),
strURL))
where ISensor is a public Interface in a referenced class library (DLL)
and the strURL is a valid URI path.
... more >>
HScroll of ScrollableControl - Usage?
Posted by Gates72 at 3/8/2005 11:57:11 AM
Hi Gurus,
I am attempting to derive a User Control from the
ScrollableControl class. I need to have control over
which scrollbars get displayed.
According to MSDN:
"To manually override which scroll bars are visible, set
the VScroll and HScroll properties. If either property is
set t... more >>
Exception in configuration section handler.
Posted by Ollie Riches at 3/8/2005 11:19:46 AM
I am trying to configure trace listeners in my web config file for an
asp.net web service , but I seem
to be having a problem. I'm hoping someone will be able to spot what I'm
doing wrong...
It comes up with an error 'Exception in configuration section handler'
Line 38: </businessStream>
... more >>
C# soultion directory structure
Posted by Tom Stepka at 3/8/2005 11:15:02 AM
Under my project directories there are bin and obj dirs both with Debug
dirs. Both debug dirs my app's have exe files in them. Why this redundancy?
Which is "better"? If I have to pick one to deploy to my customers which
one do I pick?
Thanks!
... more >>
Is it possible to embed images in the xml documentation?
Posted by Julia at 3/8/2005 11:01:23 AM
Hi,
When generating CHM from my assemblies and XML documentation is it possible
to embed images?
Thanks.
... more >>
How to create Previous/Next Page button on Scrollbar?
Posted by rh at 3/8/2005 10:35:56 AM
Hi, is there a property on the VScrollbar to activate this feature or is
custom coding required?
This feature exists on MS Word's vertical scrollbar and I would like to add
this feature to my VB.NET Windows app (to the scrollbar on a DataGrid and a
TreeView).
Any suggestions? Thanks in a... more >>
Need help
Posted by Shawn Zheng at 3/8/2005 9:42:09 AM
How do I dynamically change image either in AdRotator control or image
control? I want to be able to automatically change images in web form every
few seconds. How can do this?
Shawn
... more >>
set coordinates to a ListViewItem
Posted by Herbert_VON_GRÜNENWALD at 3/8/2005 9:20:33 AM
Hi everyone !
I would like to set an ListViewItem at a special position, into a ListView.
There is Bounds, but it's a propertie, that can be only get !
I would like to place the item at a special coordinates, not at a
special index.
like:
MFC: BOOL CListCtrl::SetItemPosition(int ... more >>
Almost Done! Need help formatting Excel
Posted by JM at 3/8/2005 8:57:07 AM
Hi
I am almost done my little project. However I need to know how to "centre"
the title/header row. I've already managed to bold and underlined.
Also how would one sort all of the data on the worksheet but not including
the header row??
worksheet.get_Range("A1", "H1")... more >>
Web - Posting Back On A SelectedIndexChanged
Posted by David P. Donahue at 3/8/2005 8:49:55 AM
I have a DropDownList that I would like to post back to the server when
the selected index changes. Using Visual Studio, I simply
double-clicked the DropDownList on the form and that created the
function call where I put my code, all well and good. But in practice,
changing the selection d... more >>
Multiple hot key selection
Posted by Steve Teeples at 3/8/2005 8:37:01 AM
I have a ContextMenu that begs to have hot keys. I tried adding some but am
having issues understanding how to properly manage the events when dealing
with more than one key pressed (e.g., Alt-F1, Cntr-C) or even with F2. Can
someone point me to some documentation that explains how to proper... more >>
Data Grid Format
Posted by Peter at 3/8/2005 8:05:39 AM
Does anyone have an example of how to format VS 2003 Data Grid that =
looks like the example below?
I want the data to be grouped by the Date Field and display one date for =
each group of dates and the date to be the heading for each group.
--------------------------------------------------... more >>
need help
Posted by Shawn Zheng at 3/8/2005 7:57:27 AM
I need help.
How do I make Advertising image keep changing in every few seconds.
Shawn
... more >>
Thread .Aborting
Posted by bernardpace NO[at]SPAM yahoo.com at 3/8/2005 7:00:21 AM
Hi,
I am writing a small program, that makes use of threads. Now in on
of the threads I have a critical section, where I am using the Monitor
to handle this.
*** Thread_1 *** started
for(...)
{
....doing some work
Monitor.Enter(Thread_1);
....doing a critical job
Monitor.E... more >>
C# can't do fractions!
Posted by KimD at 3/8/2005 6:57:07 AM
Just made a startling discovery - C# interprets 4/3 as 1 and 2/3 as 0 etc.
C# needs explicit statement of numerator and denominator as float/double
etc. e.g. 4d/3d or 4.0/3.0 to be interpreted correctly
This seems really archaic...surely i'm doing it wrong and there's something
i'm missing!?... more >>
Dynamic code compiling and events
Posted by instruo at 3/8/2005 6:53:04 AM
Hi all,
Okay, here's something I'd like to do, but I'm not certain its possible.
Thus far in playing with it, I haven't been able to get it going. I'm able
to load and compile a .cs file using the CodeCompiler class. I know that
portion works correctly because I can use the Invoke method... more >>
Uploading file to a different web platform using ASP.NET/VB.NET
Posted by brianinbox NO[at]SPAM gmail.com at 3/8/2005 6:41:29 AM
Hi,
I've been trying to upload file using webclient.uploadfile method
from my IIS webserver to an Apache webserver without any success. On
the Apache server (server that receives the incoming file) I have a
simple php script, getFile.php to receive the file. The script look
like this:
<?php
... more >>
Add new row from DataGrid to dataset
Posted by Jan Schustr at 3/8/2005 6:27:06 AM
Hi All,
I have dataGrid and as its datasource is dataset. When I edit ne row, I have
to click on the next (or previous) row to this (new)row will be add into the
dataset. That is problem , if user add new row and immediate save the
dataset. in this scenario the new row don't add into the data... more >>
ReadInnerXml()
Posted by juli jul at 3/8/2005 6:03:14 AM
Hello,
I have a class which reads xml and has to pass to another class(by
making an instance of it and activating it constractor) a part of this
xml that the next class could read it.
I am doing it with ReadInnerXml() but my question is which variable can
contain the result of this function i... more >>
Pattern Matching in a file
Posted by lltaylor2000 NO[at]SPAM yahoo.com at 3/8/2005 4:49:11 AM
Hello All,
I am writing a small program that allows me to scan inside a file and
extract data.
However I need to extract specific references within that document.
e.g. X100-DB1975
What is the best way to extract references of the type above - is it
using regular expressions.
Regular... more >>
XML Soap Client Question
Posted by alexia.golez NO[at]SPAM gmail.com at 3/8/2005 3:12:29 AM
Hello all,
I'm a complete newbie looking for a little advice. I am writing a Soap
Client to request weather data from the NOAA website.
(http://www.nws.noaa.gov/forecasts/xml/) and the response to the sent
request is returned in the form of a string. I know I have to use
something like XmlDocu... more >>
Help with Keydown on tabControl
Posted by Keith Smith at 3/8/2005 2:18:34 AM
My layout is like this...
tabControl1 contains...
....tabControl2 which contains...
.......GroupBox1 which contains...
..........comboBox1.
At first there was no tabControl2, but when I rearranged to the above format
the KeyDown event on my comboBox quit working. Is there something I a... more >>
What does this mean?
Posted by Patrick Blackman at 3/8/2005 1:38:04 AM
Remoting can not find field 'nativeImage' on type 'System.Drawing.Image'.
... more >>
Newbie Question: Recommended method of globalization
Posted by charliewest at 3/8/2005 12:45:04 AM
I am sure there are long chapters on this subject, but maybe someone can
quickly point me in the right direction:
When developing a pocket-pc app, is there a recommended (or simple) approach
to localizing applications? My pocket-pc application implements many
date-related operations, and t... more >>
ASP.NET
Posted by bernardpace NO[at]SPAM yahoo.com at 3/8/2005 12:43:10 AM
Hi,
I am trying to create my first ASP.NET application with the aid of
Visual Studio. I am starting a new Project and selecting ASP.NET Web
Application.
When pressing Ok, the following error is being given.
"Visual Studio .NET has detected that the specified Web server is not
running ASP.... more >>
messing with Time
Posted by Sharon at 3/8/2005 12:12:59 AM
What will be the best class for time representation?
i need simple interaction ( convert string to time , get time ...)
format time : "08:00" "22:09"
is DataTime the best class for me ?
should I write my own Code ?
Thank you
Sharon
... more >>
Can on use VsTextEditPane?
Posted by Alexander Wehrli at 3/8/2005 12:07:04 AM
Hi all,
I wondered if I could use the VsTextEditPane in one of my applications. I
did some research in my VS.NET installation and in the internet, but I could
not even find the dll the control is located in. Does anybody know more about
this?
If it was impossible to use this component, d... more >>
|