all groups > c# > december 2007 > threads for friday december 28
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++ 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 >>
Don't see what you're looking for? Search DevelopmentNow.com.
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 >>
RichText Problems
Posted by Soulless at 12/28/2007 11:54:29 AM
Hi, I am going crazy trying to resolve a stupid issue. I have a RTB
control and created a method to accept a string and (hopefully) set
the font and size and alignment... Here is the method:
private void AddToRTFReport(string asText, object aoColor,
string asFont,object aoFontStyle, in... more >>
problem: not valid win32 app
Posted by Gigs_ at 12/28/2007 11:27:02 AM
im getting this tutorial:
http://einfall.blogspot.com/2005/02/using-directx-and-c-sharp-to-create.html
and i got some error, i dont know how to fix it.
Can someone help?
i use visual c# express 2008, latest runtime and latest directx
using System;
using System.Drawing;
using System.... more >>
problem when using windows services
Posted by vishruth at 12/28/2007 11:19:04 AM
This code works fine in Windows Application.
In Windows Application, I am able to zip the image files properly and it
totally contains 900MB
My problem is the same code which I used in my Windows Application,
does not work while I run it with Windows services.
In my Windows application I am a... more >>
Fetching data from MySQL db
Posted by Frank Moyles at 12/28/2007 11:18:15 AM
I have two simple function in PHP that I want to convert to C# -
function Doit($enc_user_name, $enc_password)
{
$result = $mysqli->query("call
sp_userAuth('$enc_user_name','$enc_password')");
if (mysqli_num_rows($result) != 0)
{
... more >>
how can hide the form in the alt+tab tasklist
Posted by michael at 12/28/2007 11:00:59 AM
i has a main form named 'Form1', the main form show a other form named
'Form2', then the taskbar has two item
i set the Form2's Property 'ShowInTaskbar' to 'False', then the taskbar only
has 'Form1', but when i press ALT+TAB, the tasklist still has two item,
why?
note: not use the 'Regis... more >>
what is new in c# 3?
Posted by Dan Holmes at 12/28/2007 10:35:34 AM
Linq and the features necessary to support it get a lot of attention but
i happened to find out about partial methods by chance. Is there a
comprehensive list of new c# stuff somewhere? i couldn't find anything
obvious on the c# page on msdn.
dan... more >>
multithreading problem
Posted by Jeff at 12/28/2007 10:34:59 AM
Hey
..NET 2.0
I'm developing an application which will perform some webservice calls and I
believe having those calls in a separate thread may help the app run
smoother
No user are waiting for the result of these webservice calls, Each night
this code calls some webservices, which ret... more >>
Webbrowser, htmldocument and documentComplete event
Posted by Kiks at 12/28/2007 9:13:02 AM
Hello, I've a question about a System.Windows.Forms.WebBrowser class that
I've instancied into my DLL.
I would like to navigate to a page and catch the
System.Windows.Forms.HtmlDocument that my WebBrowser Navigated to.
I have tried different solutions, but I found problems in them all... more >>
LPT1 and access to it
Posted by KS at 12/28/2007 8:39:45 AM
What is wrong with the login procedure in the community forums in DOT.net C#
??????
I have tried the trick with deleting coockis 3 or 4 times but STILL I have
problems with the login procedure !
Every time I will check my quistion status I'm told that I'm logged out
properly - when I cli... more >>
Showing LogParser Progress
Posted by Jethro at 12/28/2007 8:19:02 AM
Currently using LogParser 2.2 via C# (VS2005 with .NET Framework 2.0) to
search for specific errors in very large IISW3C logs. Program is functioning
as intended but the size of the logs causes very long processing times and
since all results are being written to CSV, there is no visual indic... more >>
If not .Net then what?
Posted by jim at 12/28/2007 8:09:16 AM
In a thread about wrapping .Net applications using Thinstall and Xenocode,
it was pointed out that there may be better programming languages/IDEs to
use for the purpose of creating standalone, single executable apps.
My goal is to create desktop applications for use on Windows XP+ OSs that
... more >>
Applying schema and default attributes
Posted by Venu at 12/28/2007 7:32:00 AM
This is my simple schema
------------------------------------------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema elementFormDefault="qualified" attributeFormDefault="unqualified"
xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="App... more >>
Custom Control not appearing in Toolbox
Posted by JTC^..^ at 12/28/2007 6:20:44 AM
When I create a custom control inside my Windows Application project
it does not appear in the toolbox. I'm using Visual Studio 2005 (Team
System for Developers), so this should appear automatically, right?
I've compiled the application and selected show all items, but the
controls do not appe... more >>
How to populate a asp:Repeater from a base class?
Posted by sonicm at 12/28/2007 6:02:00 AM
Hi,
What is the best way of populating a repeater control from a SQL Database
using a base class. I am trying to impliment a base class that can be used
across future websites and will populate a repeater control on the aspx page.
The logic is losing me a bit as it seems wrong to try to ac... more >>
.NET Remoting and DCOM
Posted by Christian Havel at 12/28/2007 4:50:00 AM
Hi,
in a existing application (DCOM server and client, both in VC++) we have
very often problems with the DCOM-configuration.
Is the requiered configuration (open ports) in applications using .NET
remoting much more easier than in DCOM applications?
What is with the performance, if the DC... more >>
Linq To Sql DataContext scope
Posted by Marc Vangrieken at 12/28/2007 3:14:55 AM
Hi,
I read on msdn that "In general, a DataContext instance is designed to
last for one "unit of work" however your application defines that
term. A DataContext is lightweight and is not expensive to create. A
typical LINQ to SQL application creates DataContext instances at
method scope or as... more >>
Can I use the standard windows controls?
Posted by peetersb@gmail.com at 12/28/2007 3:07:27 AM
Hello,
I've not much experience in C# for windows applications(java
programmer :-)). But, I want to develop a windowsapplication in C#.
The layout of my application should be like this: http://www.bapetc.be/layout.pdf
Can I use standard button controls en just use the background images?
Tha... more >>
How can i get unused/available port in the local system using C# ?
Posted by naamala at 12/28/2007 1:02:45 AM
Hi,
How can i get unused/available port in the local system using C# ?
Or
Is there any way to find out whether the particular port number is
being used by any other application using C#?
Thanks
naamala... more >>
How to Write Text data in Binary Format
Posted by aagarwal8@gmail.com at 12/28/2007 12:43:46 AM
Hi,
I am trying to write the contents of a textbox to a file in binary
format. My code looks like this...
private void btnWriteToFile_Click(object sender, EventArgs e)
{
FileStream fs = File.Open(@"D:\test.dat",
FileMode.OpenOrCreate, FileAccess.Write);
Bin... more >>
Dot net 1.1 in Dot net 2.0
Posted by Nishanth at 12/28/2007 12:13:08 AM
Hi all,
I have a code that is compiled and runs in VS 2003, which i believe
runs 1.1 frameworks,
I want to know if we can do any of the following
1. I want to compile the code in 1.1 framework but run on 2.0
framework in the same machine, as I believe it is not possible to
configure VS 2... more >>
|