PeterM's Q&A profile
Windows Forms list boxes more HELP needed.
I need a way of making list boxes center the values displayed within the list. I also need to find a way of making them unselectable without setting enabled to false or SelectionMode to None because the form won't load the way I tryed doing it if you know of another way please help me. Okay, the more that I participate  ...Show All
Visual Basic How to Use MailMessage to Send MHTML?
I'm attempting to send an MHMTL document out as an email and am having issues getting it to do so. What I've done is created a windows service to poll reporting services for a "Web Archive" report (read in as a string or byte array via System.Net.WebClient) that I then want to send out to a set of people via System.Net.Mail.MailMessage. I'm aware that reporting services has subscriptions built in, but the situation is a little more complex than that and requires a seperate program to poll the report. What I'm looking for is some sort of code sample or something that demonstrates sending MHTML as part of the body of an email us ...Show All
Visual C++ CRT heap in DLL
I used to believe that each process has a default heap shared by everybody in the process space including code in loaded DLL and heap manager works as described in http://msdn.microsoft.com/library/default.asp url=/library/en-us/dngenlib/html/msdn_heapmm.asp Then I’ve found out that if DLLs are linked with CRT each has own heap manager http://msdn2.microsoft.com/en-US/library/ms235460.aspx My questions: how those individual default heaps are allocated and grow if the DLL needs more memory What is their initial size and limit My application is ISAPI filter/extension that runs out of memory once in a while. I wa ...Show All
.NET Development send mail through c#.net
hi i want to send mail through my c#.net application. i wrote following code but it is giving erro. so plz help me and tell me if another way to send mail. thanks and regards kavita MailMessage msg = new MailMessage(); msg.From = "ksbhalodia@gmail.com"; msg.To = "kavita.bhalodia@bizos.net"; msg.Subject = "hi"; msg.Body = "hi hello"; & ...Show All
Windows Forms Bottommost window
I know there is an option to make the window the toppmost but not bottommost. Is there a way to keep the window at the bottom throught the API or something oh, I don't know C# but I got the code to work anyway thanks. ...Show All
.NET Development DBNULL value question
Using VB.NET, I perform a trim function on a SQL server table field trim(row1(''account'')) . When the field is empty I get an error: cast from 'DBNULL' to String is not valid. I want to be able to perform that Trim function without testing each single field if it s equal to DBNULL or not. That s because I have many fields in the same string generated big string and I wanna insert some spaces inside that string: trim(row1(''account'')) & '' '' & (row1(''address'')) & '' '' & trim(row1(''FirstName ...Show All
Windows Forms Master/Detail Combobox in DataGridView (VS.NET 2005 Beta 2)
I want to create 2 combobox in DataGirdView which have relate Master/Detail together. Ex : 1. I have three tables in Database : Customer, City, District. - Customer (n-1) District by DistrictID. - District (n-1) City by CityID. 2. DataGirdView have 3 column : CustomerID, CustomerName, CityID, DistrictID. 3. In this DataGirdView i have 2 combobox which display City, District and they have Master/Detail Relation. This is my code (C#) 1. I made dataset (dsCustomer) contain 3 tables Customer, City, District and was load data from Database : 2. I define 2 BingdingSource and 1 DataRelation private BindingSour ...Show All
SQL Server How to sort table in sql2000 with ipaddress(format x.x.x.x) as column with nvarchar datatype in ascending order
How to sort table in sql2000 with ipaddress(format x.x.x.x) as column with nvarchar datatype in ascending order without using stored procedure Ex: Table: netComputers(3 rows) Column Name: ipAddress (string data type) ipAddress 0.0.18.1 0.1.1.2 0.0.0.1 Sql query : if I use the query Select ipAddress from netComputers order by cast( replace(ipaddress,'.','') as numeric(12)) asc Gives result as : ipAddress 0.0.0.1 0.1.1.2 0.0.18.1 Where as expected result should be: ipAddress 0.0.0.1 0.0.18.1 ...Show All
Smart Device Development how can i play a sound file ?
hello . how can i let my program on my pocket pc play any sound file wav , mp3 , wma i tried every thing , searching in msdn ... the system.media is not found . also microsoft.devices.audio and my.computer.devices.audio is not found .. so , what's the solution .. regards ,, You can P/Invoke PlaySound() or you could use sound classes from OpenNetcf.org. ...Show All
Visual Basic DataTable and MDI form problems in VB.Net 2003
Hi all, I will be really happy if someone could help me with a problem that has been causing me heartache for about a year. From an MDI parent I want to directly access the contents of a DataTable that is in an MDI child that is only singled out by its caption text. In the parent I figure out which MDI child I want by counting over Me.MdiChildren.Length while comparing its Text with the caption I am looking for. I then find the Janus Grid that is in the MDI child that the DataTable is bound to. I then get the data through the grid control but the grid "conditions" the data depending on how it is sorted. I can't seem to ...Show All
Windows Forms browser & winform
I want to create a menu in plain html for my application. How do i launch a winform by clicking on those links(anchors) in the browser I am using framework 1.1. thanks for any advice You have to elevate the permissions level of your code by using an .msi file. Its a real pain in the ass to do this. read this: h ...Show All
SQL Server adding page breaks on User Choice
Hi All, I have a parameter for adding a page break for a group. The parameter values are "Yes" and "No". When the User selects "Yes", I need to break the page else the data should be displayed continously. Please let me know how this can be implemented in SSRS. Thanks, Uma ...Show All
.NET Development Is it possible to install Win App without .net Framework?
Hi Folk I have created a Win .net Application and when I try to install it, it asks me to install the .net Framework first!! Is it possible to install a Win App on third party machines without the need to install the .net Framework !!!!!!!!! This is a big disaster, if I will need to install a 20 MB to make a 200 kb application Works! I need to run my application without the .net Framework! Any ideas please Thanks Actually, there is a solution...unfortunately, it's not cheap. http://www.remotesoft.com/linker/ I've been looking for other solutions too..... And eventually, Mono will have it a similar feature: http://www.m ...Show All
Visual C++ LNK2005 from a C++/CLI dll linking against a non-CLR C++ static library
Hello all- I have some static C++ libraries that I wrote in VS2003 but which upgraded fine when i went to VS2005 Pro. In them i overload the global versions of operators new, new[], delete, and delete[]. I also use the STL and parts of boost (shared_ptr<> and weak_ptr<>) pretty heavily. They have dependencies on various windows libs (dbghelp, winsock, etc...). These static libraries have no common runtime support at all and use the Multi-Byte character set. I'm trying to expose the functionality provided by my libs up to .NET by way of a C++/CLI DLL that links against them and exposes a new public re ...Show All
Windows Forms ExpandableList Paint Bug
1) Start IssueVision 2) in the middle pane select the top item in the second "Computer" group. 3) Then click on the last item in the above group "Telecommunications." Notice you'll see the list "jump" and draw the Telecommunications group starting at the top, when the top of that section had scrolled off the screen. It is disorienting to the ...Show All
