Tryst's Q&A profile
Windows Forms Conditional installation with ClickOnce
I am writing an application for internal use in my organization, and I need to create an application that dynamically links to one or more of several class libraries. My users will be from different groups of my company, and depending on which group they are from, they will need access to particular class libraries. I would like users, upon install, to somehow indicate which group they are from, so that the correct libraries are downloaded and subsequently updated whenever they are changed on the server. How can I accomplish this I have figured out how to mark project files as belonging to a particular download group, but I do not know how to exploit these groupings to do conditional installation. Thanks! ...Show All
SQL Server Displaying MDX result in GridView
Hello all. I'm trying to use GridView to display a simple MDX query result. If I set AutoGenerateColumns property to true, then it fails on GridView1.Databind(); while executing the following code: AdomdConnection conn = new AdomdConnection ("Provider=MSOLAP.3;etc., doesn't really matter"); conn.Open (); AdomdCommand cmd = new AdomdCommand ( "SELECT" + "{" + "[Org Structure].[Organization Tree].&[14], " + "[Org Structure].[Organization Tree].&[15], " + "[Org Structure].[Organization Tree].&[16], " + "[Org Structure].[Organization Tree].&[17] " + "} ON COLUMNS " + "FROM Test2 " + "WHERE [Data Levels].[Data Level ...Show All
Visual C# make default webbrowser, and publish problem
hey i just made a simple webbrowser (using IE activeX) an i want to use it as default Webbrowser, how can that be done. i read something on a post that it can be done with the registry key, i read something on this link but, i didn;t understand many (visual basic ) this is the link... http://support.microsoft.com/default.aspx scid=kb;en-us;299853 isn't there anything easyer or made in C#. btw i have another question, at my borwser i used some pictures on buttons but when i publish project it;s not working (only when i deselect pictures form buttons) how can i make the publisher to take the pics (they are imported local resources should i use project resource file Resources.resx and import them there) can u plz b ...Show All
Visual Studio Express Editions send video to two diff display
hey, i am working on a project to send video to two different displays.. i have hooked up a Video card which supports 3 monitors at a time. Now i wanted to know whether is it possible to output a particular video to any of the threee monitors using VB. Thanks Dim PrimaryScreen As Screen = My . Computer . Screen Dim AllMyScreens () As Screen = System . Windows . Forms . Screen . AllScreens Dim TheFirstScreen As Screen = AllMyScreens (0) Dim TheSecondScreen As Screen = AllMyScreens (1) Dim VideoForm1 As New Form f . Location = TheFirstScreen . WorkingArea . Location f . Show () Dim VideoForm2 As New Form f . Location = ...Show All
Visual C++ Shared memory IPC
Dear all I would like to achive IPC through two procesess by using the shared memory aproach. I did some research but could not find an apropriate example that would describe that. There are few that are trying to talk about the efficiency but nothing that shows how to: Process A would write to shared memory Process B would detect that something is written and pick it up. and vice versa from B -> A Any help would be apreciated. Sincerely You asked the same question in Best approach for IPC... Confusion about what to use... and Windows IPC....help . You should not post the same question in two different forums. In the first one, you were told that this question is outside the scope of this forum. ...Show All
Smart Device Development How memeory is collected declared in static method+memory leak
Hi, there; I am developing application with C#, but I am not clear how memory allocated in static method in a class is collected. For example: class myclass { public static void MyMethod(string arg) { string str1 = "bla"; Class2 obj = new Class2(); string [] str12 = new string[2]; // //Some operation...... // } } So what I mean is, will memory taken by "str1", "arg", "obj", "str2" be released when MyMethod is returned (Sometime later by GC.) Thanks here. My threads (created every 2 minutes) use some static properties like network connection, SqlCe connection (not created in each new thread), My understanding is that these static objects will always stay i ...Show All
Windows Forms Location of view designer on windows visual basic 2005 express edition
I have checked where it should be found but still can't find it. HELP!!! I can't open up my window designer! ...Show All
SQL Server Creating a Query for Notification
We want to be able to cache the data for our propertydetails web page (a real estate web site) Right now the stored procedure for that page is not a good candidate for query notification. Is it possible to have a trigger on a Property table and when the lastupdated field is changed then go and update the web cache data for that propertydetails page (i believe that this is Broker Services). You'll probably receive more responses from another newsgroup or forum. This one is dedicated to SQL Server Notification Services - not the same technology as Query Notifications. Cheers! Joe ...Show All
Visual Basic Binding Radiobutton using vs2005
I had a database that was designed by someone and use from the old system which in turn had many bugs.I was assigned to make a new system using this old database since all the transactions are here.Now there are two radiobutons(rbtnMale,rbtnFemale) which was suppose to be bounded to a certain field of my database table.The field Sex of the database happens to be of value 'M' and 'F', and since radiobuttons check propertty can be either true or false which can be equate to '1' or '0', I decided to have this code in my query. SELECT PatientID, LastName, FirstName, MName, DateOfBirth, Sex, IIF([Sex]="M", 1, 0) as IsMale, IIF([Sex]="F", 1, ...Show All
SQL Server how to public my cube to website?
I have just studies SSAS, A simple question i think thanks hi, here's something new you can use excell 2007 publish it on an excell web service and then share it with sharepoint 2007. excell 2007 has a builtin connectivity with analysis service you can try the old versions too. i think this feature exist regards, joey ...Show All
Smart Device Development How do I know If my network adaptaer has an IP
Hello, does anybody knows how to obtain de information about the network adapter of my device HHP I tryed with a class: system.management but this class only works for Windows XP. Check out this post, finding out if the computer has an active connection , to see if it answer's your issue. ...Show All
SQL Server My XP Client doesn't access SQL Server 2000
Hi, I have a server (WIN 2000 server), is connected with many clients mostly having Win 2000 Professional OS. My application is developed in VB 6.0 and we have MS SQL Server 2000 DB in our server. All the clients with win 2000 professional have no problem with connecting and accessing my SQL Database. But few of my WIN XP clients don’t connect to database thru my application. It gives error as follows. Runtime error Login Failed for user ‘(null)’ . Reason: Not associated with a trusted SQL Connection. Can anyone help me Regards Ahmed Sahib Are your clients in the same domain as the server Are you sure that they are attempting to connect using SQL Authentication and not using Windows authenticat ...Show All
Windows Forms Error launching Clickonce app from intranet
I have an app which is deployed on an intranet site. When I try to launch the <app>.application file, I get the error below. BUT, if I do a RUNAS and run under a admin user of the webserver, the app will launch. Running framework 2.0 Windows Server 2003 Here is the error: PLATFORM VERSION INFO Windows : 5.1.2600.131072 (Win32NT) Common Language Runtime : 2.0.50727.42 System.Deployment.dll : 2.0.50727.42 (RTM.050727-4200) mscorwks.dll : 2.0.50727.42 (RTM.050727-4200) dfdll.dll : 2.0.50727.42 (RTM.050727-4200) dfshim.dll : 2.0.50727.42 (RTM.050727-4200) SOURCES ...Show All
Visual C++ how to find the value of a macro?
Hello everyone, I am wondering what is the easiest and safest way to find the value of a macro For example, if I, #define FOO "value1" The value of FOO I can get is "value1" and if then I, #undef FOO #define FOO "value2", then the value of FOO I can get is "value2". thanks in advance, George Cool, Viorel! Viorel. wrote: If you need the value of a macro at compile time, not necessary a string, I think you can try this way in Visual Studio 2003. For instance, if you need to see the value of INVALID_HANDLE_VALUE constant: #define M1(f) #f #define M(f) M1(f) #pragma message( "The value is: " M(INVALID_HANDLE_VALUE) ) ...Show All
SQL Server Problems While Excecuting a DTS
Hello guys, I have an application developed in ASP.NET, C# and SQL Server 2000 database. I've developed a subroutine that executes a DTS on the SQL Server 2000 database, this DTS reads the data contained into an .xls file, the DTS process this data and then writes it into SQL Server tables. The admin user can select the .xls file he/she wants to be processed by the DTS. The .xls file is copied from his/her machine to a directory on the webserver and then the new path is passed to the DTS connection for the .xls file. For example, the admin user has the .xls file on "c:\", so he/she selects it from the application. Once the admin user has selected the file, the application copies it to the application path on the web s ...Show All
