Groups | Blog | Home


Archived Months
June 2003
July 2003
August 2003
September 2003
October 2003
November 2003
December 2003
January 2004
February 2004
March 2004
April 2004
May 2004
June 2004
July 2004
August 2004
September 2004
October 2004
November 2004
December 2004
January 2005
February 2005
March 2005
April 2005
May 2005
June 2005
July 2005
August 2005
September 2005
October 2005
November 2005
December 2005
January 2006
February 2006
March 2006
April 2006
May 2006
June 2006
July 2006
August 2006
September 2006
October 2006
November 2006
December 2006
January 2007
February 2007
March 2007
April 2007
May 2007
June 2007
July 2007
August 2007
September 2007
October 2007
November 2007
December 2007
January 2008
February 2008
March 2008
April 2008
all groups > c# > november 2006 > threads for wednesday november 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

reg:stored procedure
Posted by Satheesh Kumar at 11/8/2006 11:46:37 PM
how to insert values into stored procedure.... using vb.net application.... if any one knows send me the sample code... for that insert query ...more >>


Form Shrinking due to Non Client area introduction
Posted by Harry_Crow at 11/8/2006 10:51:01 PM
I wanted to change the Non client area height. This was not possible in the existing Form TitleBar. So I set the FormBorderStyle= None and I calculated and introduced the Non Client area myself. So the height and width of the Non Client area is 15 and 4 pixels border respectively. Also th...more >>

c sharp
Posted by v4vijayakumar at 11/8/2006 10:42:12 PM
c++ ++ right? ...more >>

Q: String (Capital S) vs string (small s)?
Posted by Martin Arvidsson at 11/8/2006 10:13:51 PM
Hi What is the difference by using String myString or string myString when declaring a string ? Regards Martin ...more >>

Formcontrols
Posted by C# Beginner at 11/8/2006 9:46:22 PM
Hi there, I'm trying to gain access to a listview via a dialogform, setting the listviews modifier property to Public, but it doesn't seem to work. I'm using the code: this.ParentForm.lvUsers. Can anybody help me out here? thnx ...more >>

I can't use the "WritePrinter" to print Chinese
Posted by franchdream at 11/8/2006 9:16:25 PM
IntPtr pBytes; Int32 dwCount; dwCount = szString.Length; pBytes = Marshal.StringToCoTaskMemAnsi(szString); string yang = Marshal.PtrToStringAnsi(pBytes); ........ WritePrinter(hPrinter, pBytes, dwCount, ref dwWritten); I want to know why I can't print Chinese used this method. I can only pr...more >>

What is wrong in this code?
Posted by Adrian at 11/8/2006 9:04:16 PM
What is wrong in the code below? Adrian. using System; namespace ConsoleApplication2 { class Trial { static void Main(string[] args) { MutStruct ms; ms.partNo = "xxx"; MutTransform mt = new MutTransform(ms.partNo);// errors here "cannot convert from string to... etc."...more >>

WebHandler
Posted by Arjen at 11/8/2006 9:01:03 PM
Hi, I get this wonderfull message when running my ashx file: Object reference not set to an instance of an object. I try to read data from the HttpContext. I think the problem is around here... I have allready add IRequiresSessionState, but this did not help. Suggestion? Thanks! Arj...more >>



Destructors
Posted by swarup at 11/8/2006 8:50:22 PM
Hi, Can any body pls tell me in what order the destructors will execute. I'm having two classes and the object is of the derived class. ...more >>

Finding problem in accessing assemble written in c# from vb.net
Posted by swarup at 11/8/2006 8:47:33 PM
Hi, I've a class in c# which is having 2 methods, both having same name but with different case. Both the methods do not have any input parameters.Now, how can i access these methods in vb.net since vb.net is not case sensitive. Thanks. swarup ...more >>

A VS 2005 Question
Posted by Adrian at 11/8/2006 7:28:12 PM
In VS 2003 there is an option "Restore Window Layout". Where is the button / how do I do it in VS 2005? Please respond in a way that I can replicate. Thank you. Adrian ...more >>

help me plzzz in c# some Q
Posted by tamerania2004 NO[at]SPAM gmail-dot-com.no-spam.invalid at 11/8/2006 6:52:47 PM
help me to answer some q in c plzzzzzzzzzzzzz lin :cry: :cry: :cry: :cry: http://www.sendspace.com/file/gd1o9 --------------------------------- http://community.ihostasp.ne ASP.NET Developer Community...more >>

How to fire an event
Posted by Daniela Roman at 11/8/2006 6:38:21 PM
Hello, I try to fire an event under a button click event and maybe anybody can give a clue please. I have let's say a WEB grid with PageIndexChanged event: private void DataGrid1_PageIndexChanged(object source, System.Web.UI.WebControls.DataGridPageChangedEventArgs e) { // Set Cur...more >>

Char recieving problem at server side
Posted by Ahmad at 11/8/2006 6:24:19 PM
Hi, I have developed a Client application in C#. I am sending some message in the form of string to a server application. At the end of the message a 4 byte Checksum is appended. Now the problem is that when I send message to server after calculating and appending the checksum at the end...more >>

Watch Or Query The Return Value Of A Function
Posted by Gary Brown at 11/8/2006 5:39:25 PM
Hi, In the good old days of Borland C++ the debugger would show a function's return value when single stepping or at a break at the closing '}'. Is there a similar capability in VS 2005? Thanks, Gary ...more >>

How to make a c# regex match only the *last* occurrence of a pattern?
Posted by sherifffruitfly at 11/8/2006 4:17:25 PM
Hi, I've been searching as best I can for this - coming up with little. I have a file that is full of lines fitting this pattern: (?<year>\d{4}),(?<amount>\d{6,7}) I'm likely to get a bunch of hits with this - I'm only interested in the *last* one. Is there a way to build the concept "l...more >>

Difference between String and string
Posted by AAJ at 11/8/2006 4:11:58 PM
does anyone know if the capital S make a difference? cheers Andy ...more >>

Shockwave object doesn't work when IE7 is installed.
Posted by UJ at 11/8/2006 3:26:00 PM
I have a program that uses the Shockwave Flash Objects (ShockwaveFlashObjects) to display a SWF. Everything works fine. When IE7 is installed on the machine, suddenly we get an 'Invalid char line 2, char 1' error on the SWF file. If we load the SWF file in IE it works fine. If we uninstall I...more >>

Method returns value error
Posted by Joseph at 11/8/2006 3:04:02 PM
Hi All, I am trying to create a method that executes a parallel array and returns a value. I am not sure why the method I wrote is generating an error. The error is displayed as: Use of unassigned local variable retFinalPercentage. Please look at the code below and offer your advice. Thank...more >>

How do I bind to data from a different thread?
Posted by Jamie Risk at 11/8/2006 2:54:48 PM
I have a form with controls that bind to an object declared in the form. I have a communications class that is receiver driven. (to get data I have to send a command). How can I have the receiver thread manipulate the object my form controls are bound to? Eg. namespace myApp { ...more >>

Passing an interface pointer through MethodInfo.Invoke
Posted by John Lutz at 11/8/2006 2:53:02 PM
Our app is mainly COM based. We allow .NET plug-ins. When a plug-in is installed, it receives a COM pointer to the app. The plug-in implements our IExtensionImpl interface and gets the app pointer through the OnCreate method... public void OnCreate(IApplication pApp)... The plug-i...more >>

Controls look different in Design View then in the program.
Posted by taurin423 NO[at]SPAM gmail.com at 11/8/2006 2:38:02 PM
I am working in Visual Studio 2005 using C#. The program I am working on used to use the 1.1 framework, but then we upgraded to VS 2005. I've noticed that every time we put a windows form control in (such as textbox, checkbox, groupbox, etc) they look like standard .NET 2.0 controls. However, ...more >>

ListView Drag & Drop
Posted by Ivan Sammut at 11/8/2006 2:28:28 PM
Hi, I have 3 listview on my screen List1 , List2, List3 Now I want to be able to drag from list1 to list3 but not to list2. On the Dragenter event is it possible to know from which object on the screen the drag is coming. Thanks Ivan ...more >>

C# and 'memory buffers'
Posted by Mike Smith at 11/8/2006 2:24:44 PM
I've been working with C++ for years and am strugling at C#. I am trying to reuse a COM object that I wrote that takes a chacter buffer and a size of the buffer. I am having a problem "filling" in the memory buffer to pass to my COM object. An example might be more explanatory. public st...more >>

MS Walkthrough: Saving Data to a Database (Multiple Tables)
Posted by Magnus at 11/8/2006 2:05:56 PM
I'm testing walkthrough saving data to a Database (Multiple Tables). http://msdn2.microsoft.com/en-us/library/4esb49b4(VS.80).aspx In the famous Customer/Order example, I'm getting referential integrity problems "The INSERT statement conflicted with the FOREIGN KEY constraint..." if the id...more >>

Reflection problem converting to ASP.NET 2.0
Posted by TheLongshot at 11/8/2006 1:57:12 PM
Ok, let's try this again. I have an ASP.NET 1.1 application that I'm working to convert to 2.0, but I've run into a snag. The problem is with this line: return (IDataProviderBase)(((ConstructorInfo)cache["IDataProviderBase"]).Invoke(null) ); This is supposed to create an object that u...more >>

Problem Adding and Using Resource Files
Posted by TCook at 11/8/2006 1:51:29 PM
Hey All, I am building a solution which will have many strings that will need to be localized (i.e. strings for toolbars, strings for different WinForms, strings for messages and error messages, etc.). I am having trouble accessing string file resources. What I want to do is to break ou...more >>

Is Framework 3.0 Graphics intended to replace managed DirectX 3D graphics?
Posted by Fred Mellender at 11/8/2006 1:38:48 PM
My question is in the subject line. ...more >>

Possible ToString() bug
Posted by gbgeek NO[at]SPAM gmail.com at 11/8/2006 1:19:30 PM
I've looked around the web a bit and didn't find much luck in locating a solution. Here the bit of code that I'm working with: strMyValue = ""; for (double d = double.MinValue; d < double.MaxValue && numPoints < maxPoints; d+=1.1F) { strMyValue = d.ToString(); //Here I hand off the ...more >>

VS 2005 Debug Problem
Posted by Pete Kane at 11/8/2006 12:19:22 PM
Hello All, I'm having a problem debugging a project (contained in a solution containing eight other projects), whenever I set a breakpoint and press F5, the solution rebuilds itself ok but I then receive a dialog box stating "The following module was built either with optimizations enabled or wi...more >>

What's a good way to "run all checked items in a checked listbox"?
Posted by sherifffruitfly at 11/8/2006 12:18:51 PM
Hi, I've got a checked list box, and a "go' button on the form. Each item in the checked list box is associated with a program (say notepad, calc, etc.). When the user clicks "go", every item that is checked is to be run. I'm looking for an elegant and extensible way to do this. I'm current...more >>

Remote object with arguments?
Posted by mkadlec99 NO[at]SPAM gmail.com at 11/8/2006 11:40:56 AM
Got a remoting question I was hoping someone could solve. I have an object (UpdateFlifo) that has two constructors, one empty, and one with arguments. I want to expose this object remotely, which I have done in the code below and everything works fine. I now want to expose this object usin...more >>

Writting to a TextBox
Posted by C#Schroeder at 11/8/2006 11:29:01 AM
I want to create an ArrayList of names ("Tony","Robin","Johnson") on one page and then on another page I want to populate a TextBox field with those names from the Arraylist. How do I populate the TextBox? ...more >>

Learning OOP conceptual question(s)
Posted by RSH at 11/8/2006 10:36:52 AM
I am still trying to grasp the use of real world Objects and how to conceptualize them using a business scenerio. What I have below is an outline that I am wrestling with trying to figure out a class structure:\ Top level Objects: Companies Employees Under Companies I have: CompanyDe...more >>

Context menus - how to find which control caused open
Posted by John Google at 11/8/2006 10:24:06 AM
Hi, I'm using VS2005 .NET 2.0. I want to have a single context menu on a form and link it to various controls via the ContextMenuStrip property of each control. Then I want to dynamically modify the context menu depending upon which control caused the context menu to be displayed via the ri...more >>

Docked tabcontrol flickers on resize
Posted by nirdeshonline NO[at]SPAM gmail.com at 11/8/2006 10:20:57 AM
Hi, I have added a tabcontrol in windows form under c# 2.0 and docked it to FILL.then i kept a listbox on this docked tabcontrol .Listbox contains a collection of approx 10 strings as list items. Now when i resize the form whole listbox flickers.. Please tell me any feasible solution, i nee...more >>

Active Directory Authentication
Posted by piggy at 11/8/2006 9:32:02 AM
I have a login name with user name and password. based on provided username and password, those infor will be looked up in the active directory for a specific group to authenticate users. Could you please help me with that? i have found a code to do that but fail to connect to the AD with p...more >>

Questions about c# dll
Posted by C#Newbie at 11/8/2006 9:28:54 AM
HI all, Just a simple question about c# dll. Out of curiousity, if I create a dll from c# and I want another non-.net application to use it, do I still need to include .net framework in the installation package? Thanks. ...more >>

Remoting Impersonation/Delegation
Posted by Steve at 11/8/2006 9:10:19 AM
I have a client/server application and I'm trying to get the server to impersonate the client with a delegation token. In my test on Active Directory, I have two users, the server user and the client user. The server user has 'Account is trusted for delegation' enabled in Active Directory. Th...more >>

idl, h or lib to c# or tlb
Posted by VeNoM00 at 11/8/2006 8:53:00 AM
Hi, i need to use some classes defined inside urlmon.dll, i have its idl and c++ (.h file) definitions and i need to convert one of them to C# or to a type library (tlb). i also have urlmon.lib but i don't know if it could be useful. I tried to use midl.exe to convert idl to tlb but it dosen't ...more >>

am i overloading this function properly?
Posted by CCLeasing at 11/8/2006 8:29:04 AM
Here is my code private void updateticks(TextBox textbox, CheckBox tickbox) { if (textbox.Text.Length > 0) { tickbox.Visible = true; } else { tickbox.Visible = false; }...more >>

EventHandlerList question (1.1)
Posted by DeveloperX at 11/8/2006 7:38:03 AM
I'm having a play with EventHandlerList but the documentation is a bit ropey and I can't find any decent examples. It also doesn't seem to do what I was led to believe it would. I was under the impression that windows.forms controls used EventHandlerLists because generally most events aren't con...more >>

am i overloading this function properly?
Posted by CCLeasing at 11/8/2006 7:38:01 AM
private void updateticks(TextBox textbox, CheckBox tickbox) { if (textbox.Text.Length > 0) { tickbox.Visible = true; } else { tickbox.Visible = false; } } ...more >>

Sending mime data to a SMTP server
Posted by fabrizio.viggiani NO[at]SPAM gmail.com at 11/8/2006 6:06:41 AM
I need to send a mail message to an SMTP server. The .net framework provides System.Net.Mail namespace to send an email: - Build a System.Net.Mail.MailMessage and send it using SmtpClient The message that I have to send is already in the form of a MIME stream (multipart, attachments and digitall...more >>

Prune double slahes
Posted by Arne Garvander at 11/8/2006 5:55:01 AM
How can I prune double slashes from a string? <appSettings> <add key="pdfroot" value="p:\E-Switch Secure\PDF_dwgs\"/> </appSettings> string path = ConfigurationManager.AppSettings["pdfroot"]; path = path.Replace("\\\\", "\\"); // Doesn't work path = path.Replace(@"\\", @"\"); // Does...more >>

c# help for my asp.net page
Posted by g_sharad NO[at]SPAM yahoo.com at 11/8/2006 5:46:18 AM
Hi I am freelancer and designing a .net page. I require the syntax in C# for capturing the variable from carryover line in url eg: www.xyz.com/ccc.aspx?mid=12 how to capture this mid in c# and I have to use in my sql string along with Select * from Tbname where mid = 12. can yu pls hel...more >>

javascript
Posted by kalaivanan at 11/8/2006 4:45:24 AM
hi, this is regarding web application. my requirement is that, for a particular page i want the javascript to be disabled and make it enabled for all other pages in my application. so how do i enable or disable javascript using either javascript or c# ? i need ur help. kalaivanan ...more >>

problem accessing array length
Posted by CCLeasing at 11/8/2006 4:29:56 AM
I have a function that generates an error if the file it is operating on is empty. I would like to add some error protection in. The modification i tried to make to the function i've included in the commented section in the code. However the ide underlines the lines.Length in red indicating that...more >>

c# path to an external library
Posted by Chris at 11/8/2006 4:28:01 AM
I am writing an app in c#. It uses an external dll library. The library is always in windows/system32 directory. The problem is that Windows directory can be located on C:, D: or different disk drive. How to read value od windir system environment variable in my app?? This variable stores path...more >>

simple quest: how to check return value of bool method
Posted by CCLeasing at 11/8/2006 3:44:32 AM
Hi i am calling a bool method like so checkduplicates(@"c:\saved.txt", report); it either returns true or false, I want to do something if it's returned true, and something else if it's returned false. How do i check the return value of the method? ...more >>

Custom control references
Posted by Lionel at 11/8/2006 3:37:20 AM
Hi, I've created a C# custom control that references some ActiveX controls. I need to host this control on a form that also hosts the same ActiveX controls. So I add the custom control and the individual ActiveX's to the toolbox & when I try to host the user control on the form using the to...more >>

help please! when a string contains variable references
Posted by CCLeasing at 11/8/2006 2:59:52 AM
I have a variable string, called formatstring The general format of the string is : - "somevariable + "some string text" + some variable2 + "some more text" .... " I want to use this variable as the argument for writeline like so : - writeline(formatstring); the problem i have is that ...more >>

Problem checking what the last line in a file is.
Posted by CCLeasing at 11/8/2006 2:33:54 AM
Hi i'm trying to check if the last line in a file is equal to a string i'm comparing it with. I have the general idea of what I should be doing. Could someone take a look at the following and comment it or suggest improvements. As code it doesn't work at the moment but I hope from it you can s...more >>

Capturing text from a Word Doc
Posted by mwhite NO[at]SPAM mbasys.co.uk at 11/8/2006 2:20:26 AM
Hi, I need to find a way of capturing the text from a Word document, and storing it. Preferably as a string, as I then need to be able to manipulate the text in code and display it in my web app. Please help! Thanks in advance Mat ...more >>

How to write Marshalling code for Function pointer in cpp?
Posted by kumarabhijit NO[at]SPAM gmail.com at 11/8/2006 1:10:09 AM
Hi, Can anyone help me about how to write Marshalling code for Function pointer in cpp? Thanks Abhijit ...more >>


DevelopmentNow Blog