zzy's Q&A profile
Windows Forms Showing Icons In A DataGridViewImageColumn
First had this with the beta, but it's still there with the release MSVCS/framework. My main problem is that there is no background drawn in for the Icon. Hence when the control is first drawn whatever was there before remains around the Icon. If the icon changes, it overwrites the previous one. If the window is dragged the Icon and the (incorrect background) are moved. I tried converting the icons to bitmaps, but the bitmaps have alpha channels so the problem remains. I have tried setting ValuesAreIcons true on the column but to no avail. I have tried various background colours but they don't show either. It's ...Show All
Visual Studio Tools for Office VSTO Deployment
Hi all We have just started our work with VSTO enabled documents. We have made our first Proof-Of-Concept solution, which works in our development environment. So now we have come to the next level, deciding and implementing our deployment strategy. So I was wondering if any of you could provide some help, links to guides, or just general comments on "how-to". Our primary deployment strategy is to store both the actual templates and the managed code dll on the network. Currently we have only one dll pr template - but that may change when we get more and more templates, and are able to reuse some of the code. So in a deployment ...Show All
Windows Forms Thread Error!
Probelm: When I update the progress bar, with vs2005 b1 I've an error saying that the thread that tries to update the progressbar is not the sampe that has created the control. this is the code. Have I to create the control programmatically at run time if yes, why Thanks /// Angelo sub xxx (...,...) 'Progress Bar   ...Show All
Software Development for Windows Vista .NET IMAPI2 Code samples
Here you will find code samples for the April 18th MSDN Webcast on IMAPI v2 . The samples will be posted shortly after the webcast Here is a VBScript sample that shows how to erase a disc. REM - REM - Erases the current media in the recorder REM - FUNCTION fnEraseMedia( byRef recorder ) DIM eraser REM the second argument hooks up the events with prefix "fnErase_" SET eraser = WScript.CreateObject("IMAPI2.MsftDiscFormat2Erase", "fnErase_") eraser.Recorder = recorder eraser.EraseMedia END FUNCTION REM - REM - The event callback that occurs during an erase operation REM - FUNCTION f ...Show All
Visual Basic Trim method is not working.
Here is my code: For i As UInt64 = 132296 To 132303 tbName.Text += Convert.ToChar(b(i)) If tbName.Text.Contains(" ") Then Exit For : tbName.Text.Trim(" ") Next It is supposed to stop the loop when a space is encountered and then delete all spaces that crept in. It does stop the loop after a space is encountered but the space isn't deleted. I looked though help and it said the Unicode equivilant for a space is U+0020 . I put that as an argument and the code editor split it like so: U + 20 . Then it said that U wasn't declared. This is probably simple but I cannot get it. Any ideas Hi, tbName.Text ...Show All
Smart Device Development Cannot connect to TCPListener work in device
I am creating a TCPListener object at 8080 port in my smartdevice program but i cannot connect to it from desktop. I determined the ip address of my smartphone too it was 127.0.0.1 and this is a wrong ip i think. so i installed the Microsoft Loopback Driver for emulator to try this in emulator but not success. How can i connect to a tcplistener working on a smartdevice thanks hi sebepsiz I am facing same problem if u got the solution please also send to me on j_ibni_ali@yahoo.com thanx ...Show All
Visual Studio Express Editions ; after every line in int main() {}
I read in a tutorial that at the end of every line in the int main() {} . But then I had a bunch of problems coming up with this code and one of the main problems was the fact that I put semicolons at the end of every line in the int main function. Here is the code: #include <iostream> using namespace std; int main() { int choice; cout << "Enter the number 1 if you want the color blue \n"; cout << "Enter the number 2 if you want the color red \n"; cout << "Enter the number 3 if you want the color green \n"; cout << "Enter the number 4 if you want the color orange \n&qu ...Show All
Windows Forms How to add multiple lines to a textbox
I've a textbox which shows logs from the program. Each log should be shown on each line eg. Line 1: "Some text ..." Line 2: "Some more text ..." The problem is that it shows the text on the same line. I've tried appending \r\n or Environment.NewLine to the text string but without any luck. And yes, the multiline property is set to t ...Show All
Visual Studio Merging auto-generated code with custom code?
Let’s say you have a DSL combined with a set of wizard and recipes to generate code for a custom framework on which a customer would like to build all future .NET applications. As a developer I start the first iteration of the application development and generate supported implementation artifacts. Then I continue adding my business logic (e.g. code behind “click” events in a form or code in C# classes which skeletons were generated through recipes). In iteration #2 I figure that I messed up the framework code that was initially generated. For instance, I modified the caching mechanism of the framework which in consequence led to viol ...Show All
SQL Server SSIS Send Mail task problem
Hi, I have got the problem connected with Send Mail Task in SSIS. The general idea was: sending email alert to different email users. I tried to use Foreach Loop task which loops through dataset (where the emails are stored) and assign different email addresses to SSIS package variable. When I try to use this task inside Foreach Loop task I receive this error message: "Error: 0xC002F304 at Send Mail Task, Send Mail Task: An error occurred with the following error message: "The parameter 'address' cannot be an empty string." The SSIS package has variable (string) which is binded with ToLine - property of Send Mail task ...Show All
Visual Studio 2008 (Pre-release) No WinFX template in VS2005!?
I have installed the Visual Studio 2005 Extensions, but there's no WinFX project template in Visual Studio. I'm using Vindows Vista Beta 2 Build 5384.4. When you installed Vista Beta 2, did you reformat the hard disk If not, I wonder if your problem could be caused by an old version of the Visual Studio extensions for WinFX on your disk. Also, you are using the Beta 2 version of the Visual Studio extensions, right Tom ...Show All
Microsoft ISV Community Center Forums Buddy hasn't contacted me yet...
A few weeks (months) ago, I signed up for the Buddy program (great idea!). I got an e-mail stating that there were some matches several weeks after that. I picked a buddy from the list and got that confirmed. However, since then, I have not heard anything at all from my Buddy, who was (if I understand it well) supposed to contact me first. SA. Hello, Please send your name and email address to budsup@microsoft.com and we can connect you with your buddy. Thank you! Michelle (ISV Buddy Team) Become an ISV Buddy today! http://www.msdn.com/isv/isvbuddy Visi ...Show All
Visual C++ Linking error
I am using vc++ 6.0 for an application which uses nmake tool to build the required files. During the process it is giving an linking error LINK : fatal error LNK1104: cannot open file "mfc42u.lib" NMAKE : fatal error U1077: 'link' : return code '0x450' Stop. Please tell me a way to resolve this. thanks in advance It looks like you are missing a directory from you LIB enivronment variable: I would fix this by finding out where mfc42u.lib is on your machine and then add the directory that contains it to the LIB environment variable. ...Show All
Windows Forms Retrieve a dataset size
Any way to retrieve a dataset size in byte maybe by serializing err i meant other then serializing which is overkill if i just want to estimate how big a dataset is (Performance is a big issue) ...Show All
Visual Basic How to Regex quoted expression
Hi I'm trying to get the attribute value from HTLM Tags. i've retived all metatags on a arraylist and now i'm trying to separate the attribute value from the string, can some one help this is the current code: Dim MetaCol As New ArrayList Dim RX As New Regex("<meta.[^<]+>", RegexOptions.IgnoreCase) Dim MC As MatchCollection = RX.Matches(Me.HTML) For Each M As Match In MC If Not MetaCol.Contains(M.Value) Then MetaCol.Add(M.Value) Next For Each S As String In MetaCol If Regex.IsMatch(S, "name=(Description):q" ...Show All
