MiltGrin's Q&A profile
Visual Basic Is datarow empty?
I have this code, which is used to extract a single datarow from a table. How can I determine whether the datarow is empty (that is, if the filter variable does not exist in the table ) tia MyDataRow = DataSet1.Tables( "MyTable" ).Select("MyFilter") Dim MyDatarow () As DataRow MyDataRow = DataSet1 . Tables ( "MyTable" ).Select( "MyFilter" ) If MyDataRow . Length > 0 Then End If ...Show All
.NET Development Database secure login to program
Hi, I am creating a VB.Net program and know basic VB programming. The program will at first ask you to login. I want an admin who can change his password and also add users. I am not sure how to do this. I know how to access SQL databases but not how to make the program check the database each time a user inputs a login and them direct him to his account or how he can change his password without being able to access that of others. If anyone could give me a word of advice thats easy to understand I would be very grateful. look at the SQLConnection, SQLCommand and perhaps SqlDataAdapter classes: http://msdn2.microsoft.com/en-us/library/system.data.sqlclient.sqlcommand.aspx http://msdn2.microsoft.com/ ...Show All
Visual C# HELP: Convert PDF to HTML
Hello all Programmers! I want to write a software myself that can Convert PDF file's content to HTML. But I don't know where to start: Is there any valid ActiveX for this Any exist Function that can extract PDF contents and add it to an HTML file Or anything else that a newbie like me don't know So wonderful if I can receive any reply of yours... Thanks a lot! So many things to learn in this world, hihi : - ) you need to use some PDF SDK that maybe available then generate html from it in some way. in .NET there is no direct way since PDF's are not a Microsoft product really but Adobe as well as having no relevance to the .NET Framework itself. I believe there are a couple of open source PDF projects you can lo ...Show All
SQL Server Multiple joins in a filter
I'm using Sql 2005 and merge replication. I want to create a dynamic merge filter on a table but the data I filter on is only reachable by a few extra joins. For example: I want to filter Table3. Table3 is joined to Table2 which in joined to Table1. Table1 contains the host_name column that I use to filter i.e. host_name = HOSTNAME(). In order to get filtered data in Table3 do I have to also filter Table 2 and Table1, or in my filter clause for Table3 can I say something like: Table3.FKid = Table2.Id and Table2.FKId = Table1.Id and Table1.host_name = HOSTNAME() I'm pretty sure I can't use AND in my dynamic filter clause but I just wanted to make sure. Thanks for your help Graham The reco ...Show All
Visual Studio Team System Create new folder programatically without checkin - Is it possible?
Hi, I need to create a new folder in my repository but I don't want to create the folder locally and then use the pendedit. Is there a way to create the folder programatically directly on the repository Thanks Xavier Like Michal said, PendAdd will not work unless the folder (a) is mapped (b) exists. I don't see why you can't create a throwaway folder under %temp%. There's even a built-in API for it: Directory.CreateDirectory(Path.GetTempFileName()). ...Show All
Windows Live Developer Forums bulk geocoding canadian addresses
im looking for tool to bulk geocode canadian addresses. will have to geocode over 200, 000 addresses at first then 10-20% on daily basis. steph I'm in a similar situation for Australia but for reverse geocoding. I looked into various web services etc but for thousands of lookup per day you can't use free services and the paid services were not cost effective, not to mention the performance was terrible and the bandwidth used wasn't great. We bought the dataset and will be creating the logic ourselves for performance. For Australia its not cheap but maybe Canada is cheaper, I know the US is free for the tiger data. John. ...Show All
Visual Studio Can it be done : Custom colors for bars in bar chart ?
Is it possible to have different colors for bars in charts. I am wondering if there can be formula applied for each (x,y) values We are using Reporting services in local mode. If it cannot be done, it appears we have to purchase separate charting components. Thanks You can take a look at the following blog article which also includes a sample report: http://blogs.msdn.com/bwelcker/archive/2005/05/20/420349.aspx Within the next month or so there will also be a new MSDN article that specifically focuses on how to get more out of the built-in RS charts. -- Robert ...Show All
SQL Server Permissions for SSAS Service Account?
Hi All, Please help with this. I'm running a server with Windows Server 2003 R2 Enterprise x64 Edition. On the box I've performed one named instance installation of SSAS. I've installed SP1 as well. There's no firewall running on the machine. My domain account is in the SSAS Server role. SSAS Service is running according to SQL Configuration Manager SQL Browser Service is running according to SQL Configuration Manager If I run both SSAS and SQL Browser under Local System, everything works OK. But this is not the way I want it, because it's not safe and SSAS is unable to read data from the remote SQL box. If I change the service account to a domain user account, I can't connect to SSAs anymore. The error mes ...Show All
Visual Studio Express Editions How can I get the current Browser URL?
I have the need to automatically get the current page's URL for the user, how can I do that in VC++ 2005 express please Cheers iccle my first realistic response that is unfortunately in basic but give me an idea of the direction I should be looking! orcmid "I don't understand the use case here..." The user is probably a poor person who cannot afford to be connected to the web 24/7 so wants to save pages to refer to later or he has IE7 and can't find what he wants especially the way favorites management and accessing has been changed by Microsoft. Personally I think an explorer style plugin would be very popular but I do not have the skills to implement that, yet and my attention is directed elsewhere but for commer ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Matrix decomposing
A method for Matrix decomposing into rotational, translational and scaling parts would be great. Think you can put it in before things go out of beta I needed such a thing as well so I did a fast (sloppy) port of this matrix decomposition code to C# which you can download here . It's in the MatrixDecompose class. ...Show All
.NET Development Cross AppDomain Performance
I have setup a secondary appDomain to host addins/plugins. The secondary AppDomain contains a loader method which loads the addin assembly using Assembly.LoadFrom(). The loader method then creates an object of the desired type ( the base class of the addin type ) by calling Invoke(). The addin type is derived from MarshalByRefObject. After all this, I can access the plugin object via a remoting transparent proxy (TP). Within the plugin there is an array object ( also derived from MarshalByRefObject ) which I need to access from the primary/application appdomain. I find that when I access the array from the primary appdomain (via the TP), it takes approx. 1,000 times longer than directly accessing the array from within the addin. ...Show All
.NET Development [C#] How to login with Passport or Windows Live ID?
Hello, I'm writing a C# tool for Windows (.NET 2.0) and i want to kow if there is a SDK or tips to login with a Passport or Windows Live ID account Thanks. This may help: http://msdn.microsoft.com/live/ Best Regards, Rizwan aka RizwanSharp ...Show All
Game Technologies: DirectX, XNA, XACT, etc. How to render alpha blended textures on a Model?
I have a 3D model with a texture applied that contains alpha information to make parts of it transparent. How do I go about rendering the model with the transparency I've figured out how to render the entire model translucent but not how to make a specific material on the model translucent in accordance with the alpha values of the texture used by the specific material. Is there a way to do this Given that the texture you are using does in fact have an alpha channel, the key here is to setup the blending render states properly depending on what you are trying to do. Additive blending will make parts of the texture that are set to opaque (having an alpha value of 1.0) appear to be translucent, so I assume you are probably going fo ...Show All
Windows Forms Highlighting in Grid View.
Hi I'm choosen to use the data grid view to display notes. There are two colums, Date/Time and Notes. Is the data grid view the best way These notes have different servrities. So if its high severity I want to be able to change the row color to red. Is this possible Also in datagrid view how can I make it so that the size of the row changes to fit all the text in it Some notes are longer than others, can it dynamicaly change size acording to the lenth of the note In theory, impossible is nothing. :-) RajDas wrote: ...change the row color to red. Is this possible Set the cell style of DataGridViewRow. The simplest would be DataGridViewCellStyle cs = new DataGridViewCellStyle(); cs.B ...Show All
Visual C++ Update the Edit Box.
Hi... I am setting the text in the Edit Box by the following way. CString in_buff_data; m_Edit1.SetWindowText( in_buff_data ); I am calling SetWindowText in the timer event. The part of the contents of in_buff_data is chaging each time. But not changing whole string. Is there any way to just update(or replace) the characters those are changed. Because my Edit Box is blinking little bit because it is drawing each time from start. Thanks Hello The right place for your question is probably the MFC newsgroup: http://msdn.microsoft.com/newsgroups/default.aspx dg=microsoft.public.vc.mfc&lang=en&cr=US Thanks Damien ...Show All
