rcat's Q&A profile
Windows Forms Windows Form w/Internet Explorer
Has something changed between .Net Framework 1.1 and 2.0 concerning the ability to use Windows forms in IE. In 1.1 I wrote a class library and then used it via the <OBJECT> tag in IE. I could access the public methods and properties of the DLL via javascript as well as using the <PARAM> tag. I wrote the same DLL in 2.0 and now I can only use the <PARAM> tag to access properties and methods, not javascript. For instance my class library has a property, LabelText, that modifies the text of a Windows Form Label hosted in IE. Assuming my <OBJECT> tag has an id of myObject I could modify the text by the following BLOCKED S ...Show All
.NET Development Interlocked.CompareExchange(Int32, Int32, Int32)
i am confused about the documentation of Interlocked.CompareExchange ( see http://msdn2.microsoft.com/en-us/library/801kt583(VS.80).aspx). it says "the compare and exchange operations are performed as an atomic operation." but then, in the included example, it talkes about "another thread that can have updated the total variable in the meantime". how is it possible that another thread can modify the totaValue variable through the use of Interlocked.CompareExchange() if it is supposed to be thread safe and stated to be an atomic operation another observation of the msdn example: why isn't the read access to the totalValue ...Show All
SQL Server Question about SQl Server proformance based on Datatype
Hi all , I have a generic question about the table columns And its data type. As per most of the sites and forums : - This is advisable that we should keep the Numeric data type (int , Bigint ,smallint ) for the columns and not char Data type to gain or boost Query performance. Now see example below :- Table A : A_col_1 Int index R ow count 1000000. Memory used 1000000 * 4 bytes Table B : &n ...Show All
SQL Server Variables Not Seen In Custom DataFlow Destination
I have run into a HUGE problem (possibly a BUG)! I have a custom XML Destination script which uses a FILE Conn to send to another path using the original file name. (found in my foreach container (varFileNm) The problem is that my destination will not use the value found for the varFileNm. I can see the value just fine in the Flat File Receive, but I can't see the value in my custom XML Destination Script using a File Conn (also tried a Flat File Conn for laughs and giggles) In additon, I have tried several other ways to set the varFileNm to some value (both dynamc & s ...Show All
Visual Studio Tools for Office Integration in an existing project
Hi, I'm a last year student at a technical school in Brussels, Belgium. I'm writing a Windows Application using Visual Studio .NET 2003 and C#. I would like to be able to create Word documents based on information entered in the Windows application. So, I added a Word project in the same Solution. I would need to create an eventhandler on a button in my Windows Application calling the constructor of a new Word file and passing a value from the application... Problem, I don't know how... Can anyone help Hi Jeke, If I understand well your problem is to create Word document from Windows A ...Show All
Smart Device Development How to Convert Stream to String
How to Convert a Stream datatype to string.For example Dim path As System.IO.Stream = (Reflection.Assembly.GetExecutingAssembly().GetManifestResourceStream(AssemblyName)) the path should to converted string. It depends on the content of the stream whether or not you can conver to a string. What type of embedded resource are you trying to load from the assembly's resources with GetManifestResourceStream If you're trying to load textual data, let's say you've embedded a resource from file "notes.txt" you would use the Stream's Read method to get the data as bytes then Encoding.ASCII to ...Show All
Visual Basic Problem Downloading Samples
Downloading code samples from this page generates a message 'Virus Detected' from my AVG virus software. http://msdn2.microsoft.com/en-us/library/fyc8kydy.aspx I am interested in the Game sample. Would someone please check by going to the page and trying to download the sample by clicking on the download tab top left hand corner of the page. Steep No problem with AVG, it's free and has served me well for 3 years and on two computers, one with Windows 98 and my latest with XP. Better to be safe than sorry. ...Show All
Visual C# How do you merge a ContextMenuStrip with a MenuStrip?
I have a MenuStrip with 3 items on it: File, Edit and Help. I'd like to merge a ContextMenuStrip I've created with the Edit sub menu. I've been scratching my head and trying without success now for over an hour. I've been attempting to use ToolStripManager.Merge() am I on the right track Please help! merge menu will create submenu item, for Example if Main menu contains - File,Edit and Help, and Contextmenu - Open if you merge context menu to Main menu then - it will like Main Menu | Open. ------------------------ File | Edit | Help | this forma ...Show All
Visual Studio How to build custom debug engines for VS2005?
We built a custom debug engine, using the TextInterpreter sample as a guide, five years ago, and have managed to build high-value debuggers since then. I have everything working porting our plug-ins from VS200[23] to '05, except the debuggers don't work. And now I see in the Beta 2 Readme item 15: "The TextInterpreter sample is not working." I feel we're being left high and dry here. What kind of resolution can we expect for those of us building custom debug engines that don't involve managed code generation - Eric What would be the recommendation about implementing a custom debug engin ...Show All
SQL Server Fit Table on one page if possible
has anyone had any luck with the table property option 'Fit Table on one page if possible'. Reporting services seems to ignore this. Anyone familiar with issues surrounding this property RS seems to break the table at will. I am MOST concerned with this issue as it relates to exporting to .pdf. Any ideas or workarounds would be helpful (we are running sp2). Thanks! Are you talking about the table's width and height properties For me, this issue is height as that is what is causing the breaking to the next page. My table width is 7.5, and the heig ...Show All
Windows Forms Help me to getting value in another form (C#)
I have 2 form: form1; form2 in form 1: textBox1 and Button1 code Button1_Click(){ form2 f = new form2(); f.show()} help me to get value in textBox1 (form1) at form2 thank you alot! ... I try in form1 public string getStringValue() { return myText.Text; } Button1_Click(){ form2 f = new form2(); f.frm = this; f.show(); } in form2: public Form1 frm; Form2_Show(){ MessageBox.Show(frm.getStringValue()); } that ok! ...Show All
.NET Development Calling unmanaged c++ dll's and lib's into c# using visual studio 2005 beta
Hi, i would like to find out what are the ways to call unmanaged c++ dll's and lib's into c# using visual studio 2005 beta. I have tried many ways like using p-invoke and adding through reference but none of these methods seemed to do it for me. Are there any easier ways to perform this operation using Visual Studio 2005 Beta I would like to create an application that uses certain dll's and lib's from the ogg vorbis library and implement them into my windows application whereby the GUI would be done using C#. The url for the ogg vorbis codes are as follows. www.vorbis.com. I would really appreciate your kind feedback. ...Show All
Visual Basic Where is VS2005 beta2?
Anyone know when the official Visual Studio 2005 beta2 will drop I've been patiently waiting for it for a while. I'm not sure how much longer I can wait. I'M STILL WAITING FOR MY DISC FROM MICROSOFT!!!!!!! THEY SAID IT WAS IN THE MAIL SEVERAL MONTHS AGO, AND NOW THEY CAN'T FIND MY ORDER!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ...Show All
Visual Studio Team System Team Build Sharepoint
What's the best way to publish build results to the sharepoint team site I see a menuitem called BuildProcess but how can i do somehting with this There is a link to builds on the Sharepoint team site, under the reports heading. This will show all the builds that have been uploaded to the warehouse. I could not locate the menuitem BuildProcess - can you point me to where this is Thanks, ...Show All
Visual Basic How to use XML genrated tag comments?
I am trying to us the code Editor that allows you to automatically insert the tags for generating XmlDoc comments. To use this feature, i place the cursor above a member in the code file and type a single quote three times. This generates the following XmlDoc comment tags: ''' <summary> ''' test ''' </summary> ''' <remarks></remarks> Now what do i need to do in order to view the XML formed documention (in this case just test) Thanks I just worked this out. I went into the project properties and clicked on Compile which "should have" had this option - but it never. Looking in the bin directory ...Show All
