microsoft.public.dotnet.general Archive - August 2002
Post a message to this list
Messages
Page: 12
How to call external program (2 replies)
microsoft.public.dotnet.general
Hi guys, I'm developing VB.NET WEB application on WinXP. I would like to call external VB6.exe which performs the calculation against Oracle DB. Does anyone know what command I have to use to call this executable from my app? I tried to use SHELL command but it looks like it does not do anything. Thank you, Olga
<%# (2 replies)
microsoft.public.dotnet.general
Hi, I am trying to figure out exactly what &quot; %#&quot; in a .aspx is? Tried google and msdn and of course, no matches found, I am looking for gibrish. So what is &quot; %#&quot;? Is there a better name for this? And how is it different from &quot; %&quot; which I know is delimeter for server side code. Thanks! Jon Paugh
no response when button.performclick is invoked if button is invisible (2 replies)
microsoft.public.dotnet.general
Hi, if button1 is set visible false, button2 invoke button1.performclick. But not any response. If it is a .net bug? Any help is very appreciate. thank you.
Only getting first letter when reading data of SQL Server (2 replies)
microsoft.public.dotnet.general
Hello, This is a weird problem. Am attempting to extract information of a database and display it on a ASPX web page. The information extracts ok but it seems that not the whole word is displayed. For example, when user logs in, the main page should say, &quot;Greetings Joe Bloggs&quot;, instead it says &quot;Greetings J B&quot;. When in the database, the column for first name is in full &quot;Joe&quot; and column for second n...
URL Launched Executable and app.config (2 replies)
microsoft.public.dotnet.general
Hi all! I'm trying to launch a Windows Form .exe program via a URL to my webserver. All works fine and the programs gets downloaded, but when I try to read some settings from the .config file (that allso is located in the same directory on the server) I run into errors. It seems that I can not access the ..config file from my downloaded application at all. Any one has any ideas? Is this not the wa...
Not Sure why I am getting the error CS0118: 'xyz.def' denotes a 'namespace' where a 'class' was expected (3 replies)
microsoft.public.dotnet.general
Hi I have 2 c# projects defined in Visual studio , 1. VMS.Image and 2. VMS.Windows Here is the snapshot of the solution. Project VMS.Image has a dummy class, Class2, defined in the namespace VMS.Image using System; namespace VMS.Image { public class Class2 { public Class2() { } } } Project VMS.Windows has a class, Class1, defined in the namespace VMS.Windows. It has reference to, amongst other thi...
Cookie Container: how to iterate through? (2 replies)
microsoft.public.dotnet.general
The following code returns a CookieContainer from an HttpWebRequest. How can the client side (C#) program iterate through the cookies returned to the client by the target web server (wRes.Cookies), and write them to the console? String TargetURI &quot;https://www.someserver.com/&quot;; HttpWebRequest wReq (HttpWebRequest)HttpWebRequest.Create(TargetURI); wReq.CookieContainer new CookieContainer(); HttpWebRe...
POST via HttpWebRequest not working. HELP! (4 replies)
microsoft.public.dotnet.general
Here's how I'm trying to POST a request via HttpWebRequest: If Request.Method &quot;POST&quot; Then Form zGetPostForm(ASPPack, Request) ' Don't worry about this ' returns a byte array ' of Form data (X Y&amp;A B) If Not Form Is Nothing Then If Form.Length 0 Then Request.ContentLength Form.Length zPostForm(Form, Request) ' See method below End If End If End If Response CType(Request.GetResponse, HttpWebResponse)...
Why Does This Cause a Virtual Memory Leak? (2 replies)
microsoft.public.dotnet.general
I call the following code each time an event is fired. It causes Virtual Memory to run out after 10 hours. Why?? How Do I get rid of it??? Dim sweepProg As New SweepProgressInvoke Dim thr As System.Threading.Thread New System.Threading.Thread(AddressOf sweepProg.SendSweepProgressEvent) thr.Start()
"Import" drawing functions (2 replies)
microsoft.public.dotnet.general
Hi, I would like to use the drawing functions that you can see in word for example. I have one rich TextBox in one C# application where I would like to draw lines, text boxes etc. Is there a way to use some component for this insted of develop it by my self. BR FinnO
Unable to send mails with attachments (3 replies)
microsoft.public.dotnet.general
[Windows XP &amp; MS .NET SP1] Hi guys, I have an application which sends out e mail periodically using the System.Web.Mail.SmtpMail.Send(MailMessage message) method. It has been running perfectly using either the SMTP service with Windows XP, or using ArgoSoft Mail Server (my preferance) up until now. When I add an attachment to the mail I'm trying to send, I now get the following exception: System.W...
Performance Counter problem with restoring instance (2 replies)
microsoft.public.dotnet.general
Hello, everyone. I'm working with PerformanceCounter and have noticed a strange behavior. I can't add an instance to a counter (without restarting my PC) if I have deleted it before. I have used the following simple code: PerformanceCounter theCounter new PerformanceCounter(sCategory, &quot;Templates Count&quot;, &quot;Device #1&quot;, false); for (int iAttempt 0; iAttempt 100; iAttempt ) { theCounter.RawValue iAttem...
Data Formatting Expression for the DataGrid (3 replies)
microsoft.public.dotnet.general
Hello, guys, Is anyone knows what formatting string should be used to have datagrid values in currency format? The usual format like $#,###,##0.00, of course, does not work. Thank you, Olga.
VB COM+ or VB.NET Service? (6 replies)
microsoft.public.dotnet.general
I have a (hopefully) simple question. I have created server code (I've made both a VB COM object and a VB.NET Windows Service with Remoting) to create an Exchange 2k mailbox with CDOEXM. This code is called from a remote machine. My question is, which should I use? Which will be faster? 1. Calling a remote VB6 COM object? 2. Calling a remote VB.NET Windows Service via Tcp Remoting? This object is ...
Getting Array list from enum (5 replies)
microsoft.public.dotnet.general
How can I get an array list from enum? I want to populate a combo box with the values from an enum. Thanks Biswajit
How can one change the value of a DataRow inside DataTable event handlers ? (2 replies)
microsoft.public.dotnet.general
Plese help me. My intention is to listen to DataRowChanging events of a DataTable. I want to check in my event handler method that the DataRow was modified appropriately and take some actions, that is, modify some DataRow items if necessary. However, I'm not able to do this inside the event handler, since when I try to modify the data row, a runtime exception is Raised: System.Data.InRowChangingEv...
inheritance question (5 replies)
microsoft.public.dotnet.general
I am getting some strange behavior from the following test code. I am trying to get only instances of the same class (i.e. track instances) to share a common Shared variable (in this case c). The variable c declared in the base class is a dummy variable so that property Count and method CountUp can compile. The derived classes shadow the base class' variable c so that it can be overridden and conv...
Style Question: vs. ICollection (3 replies)
microsoft.public.dotnet.general
Lets say I want to expose a method that takes lots of integers and then performs some operation on these integers. The order of the integers is not important. Which would be the &quot;correct&quot; way to expose this: a) void DoSomething(int[] numbers) b) void DoSomething(ArrayList numbers) c) void DoSomething(ICollection numbers) (a) is nice because it forces the user to pass only ints, but (c) is nice bec...
sorting with datagrid (2 replies)
microsoft.public.dotnet.general
Hello there. I use the datagrid to display data from my MS Access database. I have created several queries that allow the user to input specific information into asp:textbox/ and asp:dropdownlist/ objects, click a submit button and see the results of their query. My problem is this. My user base is used to Excel spreadsheets and wishes that my datagrid could be filtered and sorted. I have not emba...
What's better? (3 replies)
microsoft.public.dotnet.general
for string concatenation 1) Dim a, b, c, d as string a &quot;Hi &quot; b &quot;John&quot; c &quot;, how are you&quot; d a &amp; b &amp; c 2) Dim a, b, c, d as string a &quot;Hi &quot; b &quot;John&quot; c &quot;, how are you&quot; d a.concat(b, c)
Playing Sounds in VB.NET (3 replies)
microsoft.public.dotnet.general
How do I load and play sound files (wav) in VB.NET? This is probably a simple thing that I am over looking, but I have three different VB.NET books that never mention sound/audio anywhere. I have 5 sound files that I would like to have part of my EXE as I would images associated with controls and be able to play them during certain events. Is there an easy way to do this that I am missing? Thanks,...
Upper case characters in combo box. (2 replies)
microsoft.public.dotnet.general
I know you can use the CharacterCasing property in VB.NET to allow only upper case characters in text box controls. But, the combo box control does not have this property. In VB 6, I used the form's KeyPress event to handle this. But, I've noticed the KeyPress event works differently in VB.NET. Help!
LArgeObjects and GarbageCollection : C# (2 replies)
microsoft.public.dotnet.general
Hi there! I have a lot of Large Objects( 20KB). These are arrays of bytes stored in ArrayList. After filling the array(and using...), I invoked the Clear method of the ArrayList. Then I set the ArrayList Pointer(Refernce) to null, in order to free the memory; But : no memory is freed. If I store little objects ( 20kB) the Garbage Collection works properly. How can I free the memory of the LargeObj...
Setting User properties with ADSI (3 replies)
microsoft.public.dotnet.general
Sorry if someone has asked this before but I can't find a post on this newsgroup. I have problem with setting user properties using .NET Directory Services. I want to set email, phone number, fax etc properties for a user, but couldn't do it. What did i do wrong? Any help is much appreciated. Thanks // Code static void Main(string[] args) { string con &quot;WinNT://MONKEY&quot;; // Monkey is the machine nam...
SQL Server connection string (7 replies)
microsoft.public.dotnet.general
Hi all; I recently installed the trial version of MSSQL Server 2000 onto and X P Pro machine; and tried to establish a connection through the following string using VB.Net Pro. The connection fails in the form constructor when it calls objConnection.open and throws an unhandled exception. When I step through the code, I find that the vairable declaration Dim objDataAdapter As New OleDbDataAdapter(...
Ad
Need Dot Net Interview Questions?
Ask ExamGuru, Inc. for advice and help on Passing .Net Interviews
.Net Projects
Best-of-breed application framework for .NET projects, developed by ExamGuru, Inc. and ExamGuru IT
Free .net Help
Commission ExamGuru, Inc. and his team for your next bespoke software project
FogBUGZ
The only bug tracking system carefully crafted with one goal in mind: helping teams create great software.
Awesome Tools
If you don't know about these, you're missing out... IT Certification Questions
IT Interview Questions
Free Oracle 10g Training
MCSE Boortcamp
Cisco Study Guides
Cheap Study Guides
Exact Questions
Dot Net Interview Questions
Oracle OCP
Cheap Travel
Designer Perfumes - Wholesale Prices
Free Programming Tutorials
 
ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
 Copyright © ExamGuru, Inc. 2001-2006
Contact Us - Terms of Use - Privacy Policy - www.dot-net-guru.com - www.examguru.net - www.oraclesource.net - www.itinterviews.net - www.examguru.net/ITCertification