|
tech
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
General .NET discussionmicrosoft.public.dotnet.general
Sample codes on FontCollection didn't work...
pedestrian via DotNetMonster.com -
18 Nov 2006 1:54 PM - 3 messages
I'm trying to get all the font names (types) so I use the following code from MSDN which entitled : "How to: Enumerate Installed Fonts" (refer ms-help://MS.MSDNQTR.v80.en/MS.MSDN.v80/MS.VisualStudio.v80. en/dv_fxmclignrl/html/26d74ef5-0f39-4eeb-8d20-00e66e014abe.htm) ...
Unit Tests and COM Exceptions
batvanio -
18 Nov 2006 1:54 AM - 3 messages
Hi, Sorry I am bringing this topic again, but something does not feel right: I am trying to use VS 2005 unit test to prove that a COM component that I use is throwing the right COM exception. So I am trying this ...
Getting the generated name attribute for use in JavaScript
Nathan Sokalski -
18 Nov 2006 1:16 AM - 2 messages
As most of us probably know, ASP.NET controls do not use an exact copy of a control's ID for the HTML element's name or id attribute. When generating JavaScript as part of a control or event, we need to have a way to reference ...
check caller before ServiceBase.Run?
stevenkobes@hotmail.com -
17 Nov 2006 9:31 PM - 2 messages
I have a service application in C#. If the user double-clicks the service EXE, I want to display a form with options to install or uninstall. In other words, I want: static void Main() { if (invoked by user) { // <-- how to implement this? ...
INSERT SELECT with Stored Procedures?
John Bailo -
17 Nov 2006 9:12 PM - 4 messages
A cool feature of SQL is that I can use a SELECT statement and pass values into an INSERT -- great for moving a few records between tables. Question, is there a way to use a SELECT to pass values into a stored ...
TreeView Problem
Amigo -
17 Nov 2006 8:18 PM - 5 messages
Hi, I hope everyone is doing great programming. I am a new to this group, and i am facing problem with loading treeview from XML file, using C++.NET. Please if some one could help me in this, by sending code snippet or whatever. I would be highly obliged, because ...
asp.net 2.0 adds unwanted semicolons
Eachus -
17 Nov 2006 7:37 PM - 2 messages
I've just upgraded an asp.net project from asp.net 1.1 to 2.0. It compiles and runs. However, on one of the pages, which worked in 1.1, it appears that ..net 2.0 goes into a perfectly good client-side vbscript onclick event and ...
DataGridView - Differnt Column Widths
Roger -
17 Nov 2006 7:26 PM - 6 messages
I am trying to do a 'simple' task in a DGV control. The problem is this. I have an unbound DGV with all 'AllowUser' options disabled. RowHeader.Visible=False ColumnHeader.Text is labelled as needed. For simplicity the DGV has 7 columns and 15 rows. ...
textbox and size.
Per W. -
17 Nov 2006 5:13 PM - 11 messages
Is it possible to have dynamic size on a textbox? If the context is only one line then the box is only one line, but if the context is 10 lines then the box adjust to this? /Per W. ...
Console.WriteLine(s) Is Missing Line Terminator?
Fir5tSight -
17 Nov 2006 4:16 PM - 14 messages
Hi All, I have a simple VB code: Sub OutputLine(ByRef Level As String, ByRef InfoString As String) Const gSTDOUT As Integer = -11 Dim hStdOut, BytesWritten As Integer ...
Problem with generic List<>
ThunderMusic -
17 Nov 2006 2:12 PM - 3 messages
Hi, I have a problem using the generic List... in fact, it seems like a bug in the framework, but I can't find why... I have an application that runs in the tasktray (not as a service), after a ...
problem with DataSet.GetXml() method
lucky -
17 Nov 2006 2:03 PM - 2 messages
Hi guys! i've filled the DatSet object and was trying to get xml data from it. i used GetXml() method for that. it worked fine when all columns of the datatable has data. it generates perfectly fine xml but when if one column in datatable has no ...
MethodInfo.Invoke and TargetInvocationException
Lambuz -
17 Nov 2006 1:34 PM - 4 messages
Hi all, when I use MethosInfo.Invoke method I obtain a TargetInvocationException where inner exception is +{"classBase.OpenConn cannot be invoked directly" } System.Exception. I'm using the following class public abstract class classBase{ public static int OpenConn(){ ...
Joining Threads vs. Monitors
Mathias Hasselmann -
17 Nov 2006 1:08 PM - 5 messages
Hello, Hope this is the right group for asking this. Didn't see a threading specific newsgroup here. I currently expire unexpected dead-locks within some trivial C# code. Now I wonder if it is expected behaviour, that monitors do no wake up, ...
abort UDP.Receive
Andreas -
17 Nov 2006 10:57 AM - 3 messages
Hello I have a Problem with my UDP communication. I will receive data from a known Target, but after a timeout i will abort the receive. has anybody an idea how to make this. ...
Use reflection to find out property name?
Nemisis -
17 Nov 2006 9:52 AM - 8 messages
Hi everyone, Can anyone tell me if it is possible to pass in a property of an object into a sub, and within that sub, find out the name of the item that was passed along with the property name?? ...
vista / vs2005
guy -
17 Nov 2006 8:02 AM - 6 messages
[link] are MS really saying that they do not have a development enviropnment for Vista that will be supported and work out of the box, with no warnings or ...
Display image from sql server using c#
Bama -
17 Nov 2006 6:20 AM - 4 messages
I already stored the image in the SQL database. How do I retrieve it? Any help is appreciated. ...
Other printing problem (resolution not honored)
Lloyd Dupont -
17 Nov 2006 5:11 AM - 7 messages
Before printing I create an instance of PrintDocument as Follow (beware, pseudo code) //============================== PrinterResolution pr = new PrinterResolution(); pr.X= 600; pr.Y= 600; pr.Kind = PrinterResolutionKind.High; PrinterSettings printer = new PrinterSettings(); printer.PrinterName = "my printer"; printer.PageSettings.PrinterResolution = pr; PrintDocument pd = new MyPrintDocument(); ...
help for regular expression syntax
jhgonzales -
17 Nov 2006 3:17 AM - 3 messages
I cannot seem to formulate what seems should be an easy expression. I need to find all occurances of a pattern except when it contains a specific string. For example if the string is Dim s As String = "xmlns:b=""base"" xmlns:h=""[link]"" ...
CASE tools for .NET developers?
R.A.M. -
17 Nov 2006 12:34 AM - 4 messages
Hello, I am learning .NET 2.0 (C#, VB, ADO.NET, ASP.NET). I have a question to experienced .NET developers: do you use any CASE tools? I have downloaded set of Visual-Paradigm application but I haven't tested ...
Copy from one grid to other
Arvi -
16 Nov 2006 9:52 PM - 2 messages
Hi, I have a db design as table 1 id length table 2 id startposition length im loading the data on the grid as grid1 (for table1) 1 12 2 10 ...
system restore and saving music!
DanSmith -
16 Nov 2006 9:39 PM - 2 messages
is there a way i can restore my computer but save all my music in my iTunes? please help! ...
More PropertyGrid Agony
Ron M. Newman -
16 Nov 2006 9:34 PM - 8 messages
Hi, Can the native PropertyGrid accept dynamic properties? ones that are not pre-compiled into a class and don't have those [TAGS] thingies attached to properties? Can I just instantiate a property grid and put a dynamic "Name" property in there without having a class with a name property "fed" to it? ...
2.0: well-written sample application?
R.A.M. -
16 Nov 2006 6:58 PM - 2 messages
Hello, I am learning .NET 2.0 (C#, VB, ADO.NET, ASP.NET) and I am looking for a well designed and coded database application - prefably using SQL Server 2005 and ASP.NET. Could you give me a link to such appliacation or send me source? ...
passing parameter to class from application
Smile -
16 Nov 2006 6:51 PM - 2 messages
Hi there, I have a question, please give me some idea. Thanks in advance! Solution1 DataTable by sqlstr my questions is, the ConnString is hard-coded in the DBLogic class, with "server = xxx; database=xxxx; uid=sa; pwd=sapass", as said by the book i am ...
Add Downloaded 3rd Party Control to Tool Box - How Do I
Larry Rebich -
16 Nov 2006 4:57 PM - 2 messages
I have downloaded a 3rd party calendar control. It is supplied via a dll. I have added a reference to the dll in the Project's References. How do I get the control to appear in the toolbox? I'm using VB2005. ...
Hex values to dec with AND
Magnus Flisberg -
16 Nov 2006 3:03 PM - 2 messages
Best programmers, I have two hex values (800A03EA) and (FFFF) and would like to use AND to get the decimal value 1002. Using windows calculator this is easy...but what code do I use for either C# or VB.NET? Can't figure it ...
Howto Identify an Exception?
Pieter -
16 Nov 2006 2:07 PM - 7 messages
Hi, For some procedures that throws exceptions, I would like to show different messages to the user depending on what type of exception he's getting. For instance this one: when the file is locked, I want a messagebox to tell that ...
how does using work?
AAJ -
16 Nov 2006 12:48 PM - 4 messages
Hi all I have the following that looks at a XSD Table adapter JobDescription.VWJobDescriptionMinEducationDataTable m_MinQuals; but for compactness I would like to reference it as Using JobDescription; VWJobDescriptionMinEducationDataTable m_MinQuals; but the 'using' part generates 'Error 1 A using namespace directive can only ...
I must be dumb or something
James -
16 Nov 2006 12:07 PM - 21 messages
I am new to vb.net (I am an old vb6 programmer). I cannot figure out an easy way to watch variables. In vb6 all I did was right click and could chose to stop execution when a variable chances as well as how ...
Problems installing a service
Bart Jonkers -
16 Nov 2006 10:01 AM - 2 messages
Hey, I have created a windows service in C#. The service gets and sets its configuration in a .config file. When I install the service with installutil serviceName. The service works without a problem. When I create an install package and install the service with the package. ...
help needed
nil -
16 Nov 2006 9:06 AM - 4 messages
hello everyone..my self nilesh and i m new to vb.net and developing one web application..and now i've one problem...the problem is like that i m creating one datatable and in that user will add new record by making ...
How to fill tree view in c#.net web application.
gujarsachin2001@gmail.com -
16 Nov 2006 6:56 AM - 2 messages
hey How to fill tree view in c#.net web application. Can any body tell me. Sachin. ...
Using Visual Studio .NET 2005 to compile to ASP.NET 1.1
Nathan Sokalski -
16 Nov 2006 6:08 AM - 3 messages
I have a webhost that unfortunately does not yet support ASP.NET 2.0. This would not be a problem, except for the fact that most places no longer sell Visual Studio .NET 2003, which means I need to use Visual Studio .NET 2005 ...
DirectoryInfo.MoveTo "Across Volumes"
Tophog -
16 Nov 2006 4:46 AM - 3 messages
I haven't done a lot of file I/O in .NET and thought I had this figured out. I am simply wanting to move a UNC-based directory path to a new path using DirectoryInfo. Example: Source directory I want to move: ...
IE 7 and desktop shortcuts
miles -
16 Nov 2006 3:01 AM - 2 messages
Since installing IE 7 RC1, desktop shortcuts that just use a URL will only work once. Then they hang. If I do a re-boot, they will work again. I can put the URL in the links bar and all is fine. Any ideas? ...
Installing a program from the web
Mark -
16 Nov 2006 1:24 AM - 4 messages
Currently, when I want to install my program, I publish it to my computer and then zip it to the web. This works well except many times on an upgrade, it iwll not remove the old program as it loads the upgraded version as well. ...
DirectoryServices bug?
bugnthecode -
16 Nov 2006 12:59 AM - 7 messages
Hi, I'm building a small desktop app in VS Std 2005 with C# and .net 2.0. I've managed to get the code together to query the ldap my company has, but every time I attempt to access a specific property a COM ...
How to enable IME on a custom UserControl?
Blue -
15 Nov 2006 10:04 PM - 6 messages
We have a custom word processing type editor built with C# and .NET 2.0 and we need to support typing in languages other than English. I want to be able to use the Windows IME to enter in text similar to how it works in a ...
Customize treeview control nodes ???
serge calderara -
15 Nov 2006 7:55 PM - 7 messages
Dear all, I was wondering is there is a way to customise the treView control in order to get any Control as a Node. What I try to do is having a Progress bar as a treeview node object. Is that possible ? ...
calling a .bat program in a vb .net program
Janet -
15 Nov 2006 5:02 PM - 5 messages
Hi, I need to call a .bat program inside a vb .net program. I have yet to find anything on this but have just started searching. Can someone enlighten me? It was be very much appreciated. Thanks, ...
item in dataset
Per W. -
15 Nov 2006 3:57 PM - 5 messages
Hi, how can i check one spesific item in a dataset and then hide that item if there isnt any data in it? in a gridview i can use e.row.cells(1).text to read the value, but how can i read one item in a dataset? ...
CrystalReport XI question on V.Net
Jason Huang -
15 Nov 2006 9:08 AM - 2 messages
Hi, I've installed CrystalReport XI on my Windows XP PC which has Visual Studio 2003 on it. However, when I add the reference in the project manager, I can't find the CrystalDecisions version 11. Would someone tell me how to solve this problem? ...
First file in C++ project always being rebuilt
nospam -
15 Nov 2006 2:03 AM - 5 messages
I have been running .NET 2003 for some time now. I have been working on the same C++ project for about a year now. All of a sudden, the first file in the project is being built every time I build the project. I ...
Your preferred RSS syndication library?
clintonG -
15 Nov 2006 12:14 AM - 3 messages
Several syndication libraries have been developed for use by ASP.NET applications. Your preferred library would be what? And why? ...
help - string.Format syntax
matt -
14 Nov 2006 11:45 PM - 2 messages
hello, i am accustomed to using the string.Format method in this way: string foo = string.Format("The formula is {0} * {1}", inputOne, inputTwo); but now i am trying to do one where i need squigley brackets in the ...
Save treeView as XML ???
serge calderara -
14 Nov 2006 8:05 PM - 4 messages
Dear all, I have a treeView control which is build with different parent and childs node objects. I try to find out an easy and proper way to save that nodes architecture in a XML file. Then reading back that XML file will rebuild the same treenode structure. ...
Re: The VS2005 ToolBox is big slow jug of lard (not literally, I'm speaking metaphorically)
JS -
14 Nov 2006 7:11 PM - 3 messages
Yes, the toolbox is very slow. Your VS hang at the end of the build is most likely because VS is doing its 'AutoToolboxPopulate'. You can turn this off in 'Tools/Options/Windows Forms Designer'. ...
Websites crashing
SK -
14 Nov 2006 6:39 PM - 2 messages
Hello My company develops as well as hosts .NET applications. The applications have been developed using .NET framework 1.1 and C#. We recently moved the websites from a Win2K/IIS 5.0 environment to a Windows 2003/IIS 6.0 environment. IIS is running in the worker process ...
newbie: projects and solutions
R.A.M. -
14 Nov 2006 6:14 PM - 3 messages
Hello, (Sorry for my English...) I am learning .NET 2.0. Could you explain me please the difference between solutions and projects. What are the solutions used for? /RAM/ ...
Custom Dialog Box as PropertyGrid Editor
Ron M. Newman -
14 Nov 2006 4:39 PM - 2 messages
Hi, Simple imaginary problem: 1) I have a class with three integers in it. 2) An object of this class is a member of a class I will submit to a propertygrid 3) I want to have a custom dialog box to edit this structure ...
Check for Duplicate Appointment Times
geo039 -
14 Nov 2006 4:36 PM - 4 messages
I have a simple application that takes user input by text and time selected by date time picker. It displays the appt description in one list box and the time in another list box. I need a simple function that checks the times for duplicates. I want to check for a duplicate ...
Managed Thread to Win32 Thread
niclester -
14 Nov 2006 1:36 PM - 2 messages
Hello, I am trying to obtain a safe correlation between a managed thread and a WIn32 thread. I need to be able to gather run time statistics on particular running threads using WMI or System.Diagnostics classes. Apparently in dot net 2, the AppDomain.GetCurrentThreadId method is ...
One to many relationship in OOP
Nemisis -
14 Nov 2006 11:34 AM - 5 messages
hi everyone, hope u r all ok, and looking forward to xmas, well the xmas holidays!! lol In my backend database i have a table that has a foreign key column in it. Is it best practice that when i load my object from the table, to also ...
Large Application development ideas
Jenbo -
14 Nov 2006 9:38 AM - 5 messages
Hi all, I am looking for some ideas or pointers for an application i am currently looking into. I have a management .net web app that is using sql server as the back-end for config data for users etc. I then wanted ...
Property label
Charles Bazi -
14 Nov 2006 6:28 AM - 3 messages
Hi, I'm using databing with some classes, and I would like to know if there's a way to define some sort of description Attribute for a property. I have this Porperty: public string ItemsInStock{ get { return _ItemsInStock;} ...
Unknown publisher
Mark -
14 Nov 2006 2:51 AM - 2 messages
How do I deploy an application downloaded from the internet without displaying the message "Unknown Publisher" ...
create dataset from a datagrid
Abby -
14 Nov 2006 2:51 AM - 5 messages
Hi all, I have a datagrid which i am using for updating the data to the database. It works fine for single row data however when i have multiple rows(records) associated with the same criteria(billno) it updates both the rows with the ...
what's the deal with me.width and me.height?
Richy -
14 Nov 2006 1:05 AM - 3 messages
Hi, I am running at a resolution of 1280 x 1024, but my maximised form returns a Me.Width of 1440 whereas System.Windows.Forms.SystemInformation.WorkingArea.Width returns 1280, which is the correct value, as there is nothing docked to the desktop ...
Converting String to int results in 0x3f ?
John Bailo -
13 Nov 2006 11:20 PM - 5 messages
In Visual Studio.2003 I set up two command line arguments in the Project Properties. The arguments are XFER 63 Written just like that. If I example the value of args[1] it shows its equal to 63. Now I want ...
Is there a way for this to be done
Chris -
13 Nov 2006 10:48 PM - 2 messages
Hi, How can I access or trap the data entered into the browser address bar when the go button is clicked? I am trying to get a all url entered into the browser for access. Thanks ...
dropdownlist controling appearance of signature in textbox
bindurajeesh -
13 Nov 2006 10:03 PM - 2 messages
I have a webform which has a dropdownlist with names. I also have jpg in my project which has the person's signature. I want the persons signature to appear at the bottom of the page when the name is selected from the ...
Immediate window question ?1
Patrick Hill -
13 Nov 2006 9:48 PM - 2 messages
Hi, We have a SQL Server Intergration services project but this also has happened with a reporting services project. When you are in the immediate window and type ? [number 0-9] it will run the project and in the case of the reporting server project it started to deploy ...
How to set internet explorer options programatically
Raja -
13 Nov 2006 9:24 PM - 2 messages
Hi All, I would like to set internet explorer options programatically i.e suppose if i want to enable script debugging open IE->Tools-->Advanced Options--->uncheck disable script debugging. But, i want it to do programatically.Is it possible to do? ...
Currency Localization Issue - Part 2
rahimdaya -
13 Nov 2006 4:34 PM - 2 messages
Is there any utility in .NET that would inform me on how to display local and foreign currencies for the current culture? For example, how should I display, USD, EUR, JPY currencies for a user with the "en-US" culture. I am very interested in showing foreign ...
Dynamically add columns to GridView?
JP -
13 Nov 2006 3:27 PM - 4 messages
How C#? I’ve tried everything and I hit brick wall. My VS 2005 doesn’t have a DataGrid in the toolbox. I read that GridView replaced DataGrid, but another programmer here also with VS 2005 has it under their general tab. ...
read-only
Jante -
13 Nov 2006 2:46 PM - 2 messages
I'm working with Windows Vista and Office 2007. When I open a file it is opened as a read-only file most of the time. This is at least the case in Word and Excel. Where can I turn this off? ...
what language
gerryR -
13 Nov 2006 11:31 AM - 6 messages
Not sure where to post this as I don't know what language it applies to (yet) Basically I work in IT and often have to manipulate folder structures or large amounts of text files and am looking for the best way of automating ...
what language
gerryR -
13 Nov 2006 11:31 AM - 4 messages
Not sure where to post this as I don't know what language it applies to (yet) Basically I work in IT and often have to manipulate folder structures or large amounts of text files and am looking for the best way of automating ...
Connecting to a VPN from a dot net 2.0 application
Alan Lambert -
13 Nov 2006 11:16 AM - 3 messages
I need to write a small application (VB.NET 2.0) that gives the user a choice of several VPN connection (these may or may not already be defined in Network Connections) and then connects them to the chosen connection. ...
csc.exe fails suddenly after running several weeks
kristof.bonnast -
13 Nov 2006 7:23 AM - 2 messages
Hi all, I'm have a console app which is called by a thirth party system over 20000 times a day. This console app links to a webservice on another server to capture information. This works fine for several weeks, but ...
i don't know wats wrong with my sound
babykennedy -
13 Nov 2006 4:21 AM - 3 messages
im using Windows XP and it was working great... but i was cleaning out old programs off of the actual hard drive, and now my computer will not play sound. it says that there is a problem with the soud set-up or whatever, but ...
Windows Will Not Start Properly
Julia -
13 Nov 2006 1:30 AM - 2 messages
I have left my computer on for the past few days and today I tried to shut it down, but it was taking awhile to actually shut down, so I just held down the ON/OFF button. I let it sit for a few hours and I turned it on and I get a ...
DataGridViewCell has lost its DataGridView - How to solve?
Daniel Manes -
13 Nov 2006 12:31 AM - 4 messages
I need a strategy to debug this situation... I can't put all the code involved, but here are some of the critical lines with comments: ------------------------- Private _parentDataCell As DataGridViewCell 'declare private field _parentDataCell = _parentDataGrid.Rows(rowIndex).Cells(columnIndex) 'set to a specific cell ...
vb.net v. vsto
Toulousse -
12 Nov 2006 11:05 PM - 6 messages
Hi, I'm currently a VB6 developer and I write mostly office type apps (not always Office though). At this point in time I have a project where I need to develop an add-in for Microsoft Project. There appears to be two paths I can go down, VS.NET or VSTO. ...
How do I add a class
David McCallum -
12 Nov 2006 10:01 PM - 5 messages
First excuse my ignorance, but I'm completely new to VS2005 development I've created a new project and want to add an already written class stored elsewhere on the computer to the project. This class will be used by a number of projects. ...
Compression namespace for Array
Fla -
12 Nov 2006 2:29 PM - 7 messages
Hi! I would like to use Compression namespace for Array, i.e. use .NET native Compression for compress a String, or an Array of Integer whose elements are returned values of AscW for each char of the String. I tried with the code available @ ...
Able .NET ?
StarryNight -
12 Nov 2006 1:48 PM - 3 messages
Hi to all. I would to develop a mathematical software in Visual Basic .NET. Equations, system of equation, inequalities, radical, logarithm, limits, differenzial equation ecc.... ..NET is not able in this problems. A way exists in order to expand the mathematical capacity of the .NET ? ...
I need a pro's assistance
Chris -
12 Nov 2006 7:24 AM - 2 messages
Hi, How can I post a web request like [link] and then parse the request ex Home Enter another IP address to check: Here is the result of your query: 999.999.999.999 was not found in dnsbl.njabl.org. ...
Debug VS2005 .Net dll called from a VB6 exe
Amelia -
12 Nov 2006 4:23 AM - 4 messages
I only have a VB6 exe that calls a .Net "plug in" and only have the code for the plug in NOT the original exe but it needs to pass through all the setup com objects from the exe. Should I be able to attach to this process and step into debug the .Net code? ...
|
|||||||||||||||||||||||