Remi's Q&A profile
Visual J# Does Visual J# supports Browser Helper Objects(BHO)
Hi In our web application we want to access frames in HTA.But some reason ,HTA doesn t seems to load the application.So now we trying for BHO in VJ#.But we don t have a clear idea ,whether it is supported by vj# or not.If any body have idea in it ,revert with some examples. thanks praveen Hi Praveen, BHO is supported in VJ#. I have done a small example. Create a new VJ# classlibrary project named sample.Add reference to the folllowing dlls from visual studio IDE. C:\Program Files\Microsoft.NET\Primary Interop Assemblies\Microsoft.mshtml.dll C:\Windows\System32\shdocvw.dll copy t ...Show All
Windows Forms TreeView for Menu - Newbie
Hi All, I have a TreeView setup with 2 Items on it. Node1, Node2. I would Like to be able to open a form called Form1, when I double click on Node1, Form 2 when I double click on Node 2. I`ve done a google search but can`t find to much info on it. Could somebody possible point me in the right direction with a bit of code or link please Many Thanks Si That worked like a treat! Excellent. Many Thanks for you help. I think I need to find myself a Study Buddy! lol Many Thanks Again Si ...Show All
SQL Server Debugging SP On server from workstation using Query Analyzer
Hai ....., I 'm able to debug a Stored Procedure directly on the server, but I 'm not able to debug the same stored procedure from my machine. What should i do in order to debug the stored procedures on the server from my workstation. (I can debug the stored procedures of my local sql server) Please take a look at the KB article below http://support.microsoft.com/default.aspx scid=kb;en-us;280101 This has additional information than BOL. You should also try this from a different client so you can start with a d ...Show All
Visual C# richtextbox escape characters
How do I read tabs and newlines from a richtextbox For instance, I would like to do the following: richTextBox.Text.Replace( "\n" , "<br>" ); But it is not picking up \n as a character in the richtextbox. Thanks The Replace method return the result in a string. So, change your code to this and it will word: richtTextBox.Text = richTextBox.Text.Replace("\n", "<br>"); ...Show All
Visual C# enumeration was modified operation may not execute
Hi all; i am using the following fuction to close some open forms with tag "NOTMAIN" in my application. private void CloseOldForms() { FormCollection frmColl = Application .OpenForms; foreach ( Form tempFrm in frmCOll) { string tempFrmTxt = tempFrm.Tag.ToString(); if (tempFrmTxt.Equals( "NOTMAIN" )) { tempFrm.Close(); } } } But the application stops after executing foreach loop for only one time, with an exception i.e enumeration was modified operation may not execute i.e FormCollection enumeration was modified.can someone plz tell how to handle it or ...Show All
.NET Development DataView with DateTime comparation
I have a DataTable which has a DateTime column . I want to view in my DataGrid only the rows that has any date and their time is between 12:00 and 16:00 how can i compare only the time What you do is create a DataView over the DataTable and set the DataView's RowFilter property to some expression that will filter down the results. Then attach the DataView to the DataGrid. So DataView is like filter you can layer over the DataTable. If you have a DateTime you can use the Hour property to get the hours: DateTime dt1 = DateTime .Now; if (dt1.Hour > 12 && dt1.Hour ...Show All
Visual Studio Team System where my "team project" menu goes?
Hi all, I am new to vsts, today I met a strange problem. I just installed visual studio .net 2005 yesterday (Sep 2005, ver RTM.050727-2600), I saw the option "Team project" from File->New right after I onpened. since I have no foundation server, I cancled the prompt to connect to a FDS server. but today I can not see the menu at all, also I can not see the menu option "connect to foundation server" from the tools menu. where it goes I'm not sure as to why you would have seen it and then have it disappear, but you would need to install the Team Explorer (aka tfc sku) separately after installing VS 2005 in order to get the TFS functi ...Show All
.NET Development Problem: How to draw text into bitmap?
Hi, I need to draw text into the bitmap. Resulting text should be "smooth" (antialiased) and international scripts should be handled properly. In addition, it should be fast. You might think, "That is simple, isn't it " Well, it is not! There are at least two ways to do it: 1. Graphics.DrawString and 2. TextRenderer.DrawText. Problem is that I cannot reach my targets with these two guys (who would say, huh ). Graphics.DrawString is too SLOW, and it is not handling complex scripts properly they say. On the other hand, rendering quality is ok, and it is not depending on system-wide tex ...Show All
Visual Basic Shell Method
How can I load a folder up in the windows explorer Your first line, should be... Dim sFile As String = Me .TextBox.Text.ToString() Don't forget to add the .Text before the .ToString(). If that doesn't help, debug the code, and check the value of sFile at the If statement. ...Show All
SQL Server Convert UTC time to local time
Hello, I am new with the reporting services. I am creating a report and I need to display date/time on the report. But the servers stores those date/time in UTC. How can I convert them to the local time in my report. Thanks for your help. You need to use System.TimeZone.ToLocalTime(UTCTime). See http://msdn2.microsoft.com/en-us/library/system.timezone.tolocaltime.aspx . You should be able to use TimeZone.CurrentTimeZone if you want to convert using the server time zone. ...Show All
SQL Server Outer Join Problem
Because we have a lot of different kinds of data that we track, the system that I use uses an Entity-Attribute-Value data model. (Think of the entity id being the row, the attribute id being the column, and the value being a cell value.) I want to be able to get all the values for an entity in one select. Unfortunately, most can be null, in which case we don't store a row for that value at all in the values table. So I'd like to get everything with an outer join. Unfortunately, that doesn't work very well. This SQL behaves like you'd expect. SELECT Event . Event_ID , String_Value . Value , String_Value . Attribute_ID FROM ...Show All
SQL Server Accessing from desktop - path not found.
Hi, I am trying to write a desktop application using C# and .NET that can edit an SQL Server Mobile database stored on a device. The problem is no matter how I specify the data source, I get an error the path was not found. Heres the bit of the code: string strConn = "Data Source=" + "Mobile Device\\My Documents\\Nutricom.sdf"; SqlCeConnection connDB = new SqlCeConnection(strConn); connDB.Open(); And the error i get is.. The path is not valid. Check the directory for the database. [ Path = Mobile Device\My Documents\Nutricom.sdf ] Everytime it thorws an error saying the path is invalid and to check the locaiton of the dat ...Show All
.NET Development asynchronous remoting questions
Hello, I have a couple of questions on asynchronous remoting. the first one is are the callbacks only called when the remote function on the "server" is done executing or is it possible to call the callback anywhere inside the remote method my second question is regarding delegates and remoting...is it possible for the server to make a call to the client when some event occurs during execution thanks! -ken Hi, You can use return, to get back whereever you want to from the function thereby make sure the callback is called. The only way for the server to make a call to the client, is if the client als ...Show All
Windows Forms InitializeNewComponent on IDesignerHost.CreateComponent ?
Do I really need to do this for InitializeNewComponent to be called each time I programmatically create a component at design-time, or is there another way that does this automatically if (host != null ) { QueryComponent newComp = (QueryComponent) this .host.CreateComponent( typeof (QueryComponent)); IDesigner des = DesignWorks.GetComponentDesigner(newComp); if (des != null ) { if (des is IComponentInitializer) { &nbs ...Show All
.NET Development how to represente xml Document(elements and attributs)in TreeViewer
I am student and i am biggener user of c# I want to represent xml document on treeviewer can any personne help me thanks Sorry. I don't understand last sentence. If this is the question, can you rephrase it. If your initial issue was resolved, but you have new (even related) questions, sometime it helps to start new thread and explain them from blank sheet. Thanks ...Show All
