all groups > c# > december 2007
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
ToolBar.Buttons is Read-Only in property sheet in VS 2005 in inherited control
Posted by Ryan Liu at 12/31/2007 10:30:34 PM
I have a control with a toolbar on it, and I have another control inherits
it, and in this sub-control, I add more toobar buttons to it.
It used to work fine in VS 2003. But in VS 2005, in property sheet, it
shows: read only.
Is this a bug or desiged so in VS 2005?
Thanks and Happy new ... more >>
DataGridView making a row visible
Posted by colin at 12/31/2007 9:33:05 PM
Hi,
I need to tell how many rows are visible on the screen,
in my DataGridView control
so that I can ensure my newly selected row is visible
without doing any unecessry scrolling,
I thought RowCount would give me this :-
Summary:
Gets or sets the number of rows displayed in the
System.Wi... more >>
Specified cast is not valid error
Posted by John Rogers at 12/31/2007 9:06:32 PM
Can someone help me out if possible with this error when running a
program.
I have this code in the program
//-------------------------------------------
System.Data.OleDb.OleDbCommand vCommand = mConnection.CreateCommand();
string vSql = "INSERT INTO [Nodes]
(ParentID,aName,Description,... more >>
Banned password list
Posted by Bill Fuller at 12/31/2007 6:14:23 PM
We would like to include a banned password list for C# authentication, but
cannot seem to locate one. Does anyone know of a site/location where a list
of common passwords can be found?
... more >>
TableAdapter IsNull Parameter- Verified Bug - Now What???
Posted by Richard Coltrane at 12/31/2007 3:30:25 PM
Hi There,
I am encountering this bug
http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=114548
What do i do about it?? Am I supposed to download a patch etc??
At the moment I have to edit the generated code. But of course if i change
the XSD then the ciode g... more >>
doc to docx
Posted by asp.net at 12/31/2007 2:50:43 PM
hello gents,
i have a similar thing to do. i am not much into .net yet. i am currently working on asp website which generates doc file on a fly. i now want to convert these doc to docx files. i am not sure this can be doable in asp vbscript. any help or advice on this is much appreciable.
thanks
... more >>
DataGridView CellFormatting Event
Posted by NvrBst at 12/31/2007 1:26:57 PM
How does "e.CellStyle" work?
When I do something like
if(e.ColumnIndex == 0 && e.RowIndex == 0)
DataGridView.Rows[0].DefaultCellStyle.BackColor = Color.Orange;
then the entire table goes orange; not just the 1st row. When I do
if(e.RowIndex == 0) e.CellStyle.BackColor = Color.Orange;
th... more >>
Creating COM servers in .NET
Posted by Fredo at 12/31/2007 12:44:44 PM
I've never used C# to create COM servers before and I'm not really sure what
I'm doing wrong. I read something about versioning problems when using
InterfaceIsDual. I thought I could fix this by supplying the DispIDs. I have
the following interface, for example:
[Guid("B7A755CC-809B-412... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
DataGridView (Stop it From Drawing)
Posted by NvrBst at 12/31/2007 12:08:21 PM
By default I have it set to
"DataGridView.AutoResizeColumns(DisplayedCells);" I let the user
change to "DataGridView.AutoSizecolumnsMode = Fill;" at runtime with a
button. When I do that it takes about 3 seconds during which time I
can see the bottom scroll bar shinking more and more till its ... more >>
pass parameter from windows service to windows application interna
Posted by vishruth at 12/31/2007 11:07:01 AM
Hi,
I have 2 applications running, one Windows application project and the other
windows services project.
I want to call my Windows application in my windows services.
I want to run them as seperate process.
If my windows application starts running,only if it completes fully,
then my windo... more >>
the proper way to detect changes to current row before moving to next row
Posted by GS at 12/31/2007 10:58:35 AM
How do I properly detect row change before allowing moving to next row?
I tried using RowLeave .
here is brief descript of the form setup.
I have
ieStringTmpDataSetwith regex table connected to a SQL mdf.,
on the form I have a regexDataGridView for the table regex for
navigation... more >>
Multi MSMQ
Posted by Vai2000 at 12/31/2007 9:54:43 AM
Hi All, I have currently 3 MSMQ and 3 win svc which poll on them. I want to
consolidate them into 1 svc, but running into event notification errors.
What shud be the best way to accomplish it? also down the road if I have
more queues I want the same win svc to listen on them so perhaps a config
... more >>
Changing the cursor
Posted by Dom at 12/31/2007 9:46:09 AM
I need to change the cursor when the mouse is hovering over certain
cells in a DataViewGrid, as a visual aid for the user. But the cursor
is not something found in the Cursors Class. I have a .ICO file.
What is the most efficient way of doing this? Is a way to build the
cursor resource righ... more >>
XML DataSource and where to store it
Posted by jehugaleahsa@gmail.com at 12/31/2007 6:23:08 AM
Hello:
Is there a way to directly databind to an XML file? Right now I am
manually opening the file, finding my tags and adding the values to a
BindingSource.
While I'm on the topic, how and where should I store an XML file that
holds validation-type values? I need to allow my user to chang... more >>
Snap to Grid
Posted by ebiweb@gmail.com at 12/31/2007 6:16:46 AM
hi all,
i want to use VS 2005 for programming a web site.
my problem is that i can't set SnapToGrid for design view and
showing the grids.
how can do this?
so thnx... more >>
Tab Control - First Event...Again
Posted by randy1200 at 12/31/2007 5:18:00 AM
I have a tab control which has several tab pages.
At run-time, switching between the tab pages can take as long as a few
seconds.
Any suggestions on what I can get to fire at the instant the user clicks on
the TabControl? All the event handlers I've tried so far (Click, MouseClick,
Sel... more >>
dotnet requirement
Posted by singh.c2c@gmail.com at 12/31/2007 2:29:09 AM
HI,
Dear business partners
My name is B. Seshu narayana singh I worked with abc incorporation
since the past two years hence for i request you to please work on my
requirements and send me requirements or any other related IT
services.
Thanks & regards
Seshu IT-HR
singh.c2c@gmail.com... more >>
lable is invisible in design view in VS 2005
Posted by Ryan Liu at 12/31/2007 12:45:31 AM
Hi,
In VS 2005, in design view, if I put a lable on a windows form, and set
label Text to "", then this label will totally invisiable. This is right at
runtime, but I remember in VS 2003, it used to show a place holder. Without
it, really hard to know there is a lable on there.
I am usin... more >>
Own assembly fails to load when vs2008 is not installed on target machine
Posted by Joe Withawk at 12/30/2007 11:21:50 PM
I have a solution consisting of a c# project as win application and a c++
project as classlibrary. Both are .net 2.0
The classlibrary handles some loading of quicktime movies, but that should
not be relevant.
On my development machine I build the exe and dll and run the exe which has
a ref... more >>
Static methods in ServiceContract(WCF)
Posted by Hakan Fatih YILDIRIM at 12/30/2007 11:07:57 PM
How can i declare a static method in servicecontract?=DDs there any
sample? i couldn't find any.
Best Regards,
Hakan Fatih YILDIRIM
MCP... more >>
thread join question
Posted by Eps at 12/30/2007 4:18:29 PM
I understand that if I want to wait for a thread to stop then I can use
the join menthod.
If I have more than one thread, and I want to wait until they have all
stopped, what is the best way of doing this ?.
Thread1.Join();
Thread2.Join();
... more >>
Add a Hashtable to Applicatoin to save Global data
Posted by Ryan Liu at 12/30/2007 4:09:59 PM
Is that a good idea to add a Hashtable to System.Windows.Forms.Application
class? And we can put any user global data in it.
I have some class library used by a few other applications in slight
different way. This way (and ocz there are other ways) I don't have to user
different parameter t... more >>
Question regarding ICryptoTransform resuability
Posted by Fredo at 12/30/2007 3:24:07 PM
Can someone explain the CanResuseTransform property of this interface to me?
I have an app that communicates over the network and I encrypt the
individual UDP packets which are sent and received from multiple clients.
Each has the same key and IV.
I guess my question is, do I need to creat... more >>
create app.config during runtime from within code
Posted by Christian Muggli at 12/30/2007 3:19:47 PM
can someone explain me how to create a app.config file during runtime? i see
two ways:
- add a skeleton of an app.config file to the exe/dll and extract it during
runtime as a resource and extract
OR
- create a app.config file using xml
is there another way?
thanks
christian
... more >>
problems with storing a custom type in application settings
Posted by michael sorens at 12/30/2007 2:27:00 PM
I have worked with application settings in VS2005 and C# for awhile, but
usually with standard types. I have been trying to store a custom
container/class/type in an application setting and I have seen erratic
results. I am aware of one known defect where user classes do not show up in
the l... more >>
lock(this) hangs
Posted by Rainer Queck at 12/30/2007 1:55:17 PM
Hello NG,
my application hangs onec a while. When I interrupt the execution (press the
|| button) the debugger shows me a green arrow on a "lock(this)" line.
I first thought, well "deadlock" so I modified my code to find out who locks
the app. Therfore I added a string member "lockOwner" to ... more >>
Using databinding to display settings
Posted by nagar@community.nospam at 12/30/2007 12:08:33 PM
I was thinking about using databinding to display the user settings.
I'm not using the .NET 2.0 ApplicationSettings but I'm using a class
that contains all the settings.
I have a few questions:
1. What's the best practice to store settings? I like using my own
class as I can choose how to s... more >>
MDI Help
Posted by info@thelisters.co.za at 12/30/2007 5:18:29 AM
I am trying to create an MDI Application. I am opening the windows OK
(MDI Children). But I don't think I am doing it correctly.
Basically, I declare the forms on the main form (Parent).
frm1 f1;
frm2 f2;
etc
One for each form.
Then, when I open the form, I just do:
if (f1 != nul... more >>
cannot continue edit while debug in VS2005
Posted by Ryan Liu at 12/30/2007 2:39:41 AM
I have this problem: "cannot continue edit while debug in VS2005".
I see the same tread after I search this topic in google, but none solutions
works for me. So again, I ask here. Can someone give a hand?
Has MS fixed this in VS 2005? Is is fixed in VS 2008?
Thanks,
~.~.~.~.~.~.~.~.... more >>
sockets and dhcp?
Posted by TheMadHatter at 12/30/2007 12:50:01 AM
Quick q:
If I open a socket on my computer and eventualy
the dhcp changes the address of my computer, what happens?
Will it drop the connection?
Thanks in advance for any help on the topic.... more >>
Reading from text from another application
Posted by zool at 12/29/2007 11:55:42 PM
Hi
Can somebody please tell me how I can read text from another running
application.
From a textbox in that application for example... more >>
Access Violation
Posted by Analizer1 at 12/29/2007 10:40:08 PM
c#2.0, Msql Server
im using Inherited BackgroundWorker Class
Hi i have 5 Background threads running
they complete somwhere around 100 jobs of 2000
Unhandled Excepion at 0x009d222a in Myservice.exe:0xC0000005
"Access Violation reading location 0x00000000"
any ideas..or how i can solve this... more >>
window form detail view auto save
Posted by GS at 12/29/2007 9:35:01 PM
I Google search for answer to detected changes to the current row in detail
view of a windows form ( not datagridview), so far I have not got the right
search term to get me the answer, certainly I found lots on datagridview and
..net asp form.
Is there an easy way to detect if the current rec... more >>
Properties - C# vs VB - ??
Posted by Timothy at 12/29/2007 9:11:34 PM
Hi,
I was looking over some differences between C# and VB code today and noticed
that the set method in properties act completely different. C# values are
passed by reference, and VB values are passed by value... Am I right? Why is
there such a big difference in implementation of properties? ... more >>
filesystem watcher and more
Posted by hugomind at 12/29/2007 4:36:30 PM
Hi,
I need to catch the domainname/username as additional information when
the Filesystemwatcher throws en event ?
If someone is creating, deleting or changing perms of a file I would
need to know who it was.
Could some give me a hint how to accomplish this ?
thnx,
Hugo... more >>
Own exception class - plus in typename???
Posted by michael@wisheu.eu at 12/29/2007 12:46:08 PM
Hello everybody,
I've created for one of my classes a exception class derivated from
System.Exception. This exception class is public and lies within my
class as inner class.
When I throw this exception I can't catch it with its name! When I try
to catch it with it's name then the catch-blo... more >>
Multidimensional Packed Bit Array
Posted by Thomas Bruckner at 12/29/2007 10:20:36 AM
Hello,
I've looked online for an implementation of a multidimensional packed
bit array (like BitArray but with more than one dimension), and could
not find any, so I'm trying to create my own. However with limited
success sofar. I'm having troubles with calculating the required size of
th... more >>
Transformation picture into 3D object
Posted by Nikolay Podkolzin at 12/29/2007 3:23:00 AM
Good noon, Guys! Someone of you fimiliar with algorithms transformation
picture in the 3D object? Any Ideas?
... more >>
uniquely identify a computer -- use which Mac address?
Posted by Ryan Liu at 12/29/2007 3:04:31 AM
Hi,
If I want to uniquely identify a computer. I can read CPU ID or Mac Address.
I heard, but is this true: some BIOS can block CPU ID from being read? (In
this case, will I get an exception, null or empty string for method
managementObject.Properties["ProcessorId"]?)
So maybe Mac addre... more >>
axWebBrowser - HTML source - DocumentText, etc
Posted by Robson Felix at 12/29/2007 1:03:16 AM
Folks,
I've spent the last 3 hours fighting to get the EXACT content as being
displayed in "View Source" (as we can easily do by just accessing the
property DocumentText in the WebBrowser object). Unfortunatelly, there is no
easy way of doing this when you directly access the activex object... more >>
C++ or C#..?
Posted by Sobin at 12/28/2007 11:47:26 PM
Hi,
I am new to programming...which language should I study
to get a hot job. is it C# or C++...?
Thanks In advance
Sobin
... more >>
Watermark FLV
Posted by Rajkiran R.B. at 12/28/2007 8:36:09 PM
I have loads of video files in flv format..
I want to watermark all those video files now..
Can anyone help me in doing that using a C# code.
Please let me know if any free Video libraries for .Net is available.
Thanks In Advance
Rajkiran
... more >>
Service Question
Posted by Analizer1 at 12/28/2007 6:26:37 PM
dot.net 2.0 c#
i have 2 Questions....easy one 1st
How to destroy a object within itself without calling dispose
example
namespace mytest
{
class someclass
{
private someobject;
public someclass(){
someobject = new someobject();
}
public void Destroy
{
someobject=... more >>
Count all nodes in a treeview
Posted by John Rogers at 12/28/2007 4:01:24 PM
This code only counts the parent nodes or rootnodes in a treeview,
how do you count all the nodes in a treeview?
// one way
int NodeCounter = 0;
foreach (TreeNode currentNode in TreeView1.Nodes)
NodeCounter++;
// other way
int total = TreeView1.Nodes.Count;
... more >>
TabControl - First Event
Posted by randy1200 at 12/28/2007 2:25:01 PM
I have a tab control which has several tab pages.
At run-time, switching between the tab pages can take as long as a few
seconds.
Any suggestions on what I can get to fire at the instant the user clicks on
the TabControl? All the event handlers I've tried so far (Click, MouseClick,
Sele... more >>
Split strings
Posted by Tem at 12/28/2007 1:37:56 PM
What would be the best way to split a string into a string array. with the
following possible inputs?
abc1 abc2 abc3 -single space
abc1 abc2 abc3 -multiple spaces
abc1,abc2,abc3 -comma
abc1, abc2, abc3 -comma + space
abc1;abc2;abc3 -semicolon
abc1; abc2; abc3 -semicolon + space
T... more >>
Permissions, should I use an Int, long or binary datatype?
Posted by DotNetNewbie at 12/28/2007 1:05:34 PM
Hello,
in my web application, I have to create permissions for each user. So
what I am doing is that for each role (using sqlmembership in .net) I
am creating a column in the database to hold a group of permissions
which I will then do some 'bit banging' in my web application to see
if the p... more >>
DataGridView (Keep Style/Color On Sort)
Posted by NvrBst at 12/28/2007 1:03:00 PM
I have a log viewer. I sort the DataGridView by the Time Column and
then run a function to set all cell backcolors depending if the cell
above is different.
This works correctly, however, when I resort a column (by clicking any
of the column headers) then all the colors revert back to the
or... more >>
SOS...SOS...SOS
Posted by Csharp? at 12/28/2007 1:02:00 PM
Hello All
I am lost in Vbscript and can not find the proper support group. I hope
anyone of you who knows Vbscrip well will help me. I am trying to use
GetDataType function to extract recordsets data and return an array of
records by calling function GetDataType. My code is listed as follo... more >>
Enumeration string representations
Posted by Frank Moyles at 12/28/2007 12:08:46 PM
If I have an enumeration:
enum SizeType
{
Tiny = 0,
Small,
Big,
Massive,
OMG
};
If I declare a variable like this:
SizeType myVar ;
I want to be able to print the appropriate string when I coerse/cast
myVar to string by calling the ToString() method - does ... more >>
|