GrandpaB's Q&A profile
Smart Device Development MissingMethodException while running smartphone application
Hi there, I am totally lost on what is going wrong with my application. I have a smartphone application designed for a pocket pc that uses a class library I have written, both which is written in C#. My code compiles fine, but when I run it (on the pocket pc emulator) I get a MissingMethodException on this line: if (!FormSenderAppSettings.RememberPasword || FormSenderAppSettings.EndUser.UserName == string .Empty || FormSenderAppSettings.Password == string .Empty) { ... Where FormSenderAppSettings is a class with static members in my class library. This line is the first line of code in the main forms Load event. I have used some other classes in my class libary within the main windows constructor, the code in the c ...Show All
SQL Server Iterating the rows of a script component
Hi There, Can someone please let me know what is the best way to iterate the output rows of a script component and stick in those ids in a where clause of a select query (to retrieve additional info from a database) Is this possible at all If not, what is the best way to deal with this situation Thanks a lot!! Sam_res03 wrote: Hi There, Can someone please let me know what is the best way to iterate the output rows of a script component and stick in those ids in a where clause of a select query (to retrieve additional info from a database) Is this possible at all If not, what is the best way to deal with this situation Thanks a lot!! Probably the best way is to push the data into recordset destination a ...Show All
Visual C++ URGENT!! New using VS 2005!! Problem on releasing...
Hello, I have a question like I have two computers at home, one loaded VC++ 2005 Express and the other one with nothing but a clean Windows XP. I am working on a little project on the computer w/ VC++. After I compiled the project by using either (debug/release), when I try to run the exe file over the other computer (I copied the whole folder to the other computer already). It shows an application error. Is there anything I can do Thank you!! Luis I have tried this on three different computers, with no success on any of them. I have even tried turning off the firewall briefly, but it has no effect. I am completely stumped. Any other thoughts on what might be the problem here (especially since ...Show All
Visual C# How to Cast from a System.DirectoryServices.PropertyValueCollection Value object to Byte[]
Greetings, I'm pretty new to C#, so sorry if this is a dumb question. I am trying to read a byte field on a System.DirectoryServices.PropertyValueCollection which contains a jpeg image to an http response stream. I am getting hung up on my lack of type casting knowlege in C#, as I can do this very easily in VB. Please help: DirectoryEntry entry = new DirectoryEntry("LDAP://DC=blah,DC=com"); DirectorySearcher mySearcher = new DirectorySearcher(entry); mySearcher.Filter = ("(sAMAccountName=" + "blah" + ")"); SearchResult result = mySearcher.FindOne(); System.DirectoryServices.PropertyValueCollection props = result.GetDirectoryEntry().Properties["thumbnailPhoto"]; byte[] arraybytes = props[0]; // <--------This pro ...Show All
Windows Forms DataGridView strange behaviour!
Here is a problem that I have encountered frequently and I am a at loss to explain it. Say you have a DataGridView in unbound mode. You set some of its properties with a method like "SetupDataGridView" ( just like one of the examples in MSDN). Then you start to fill it with data with another method "PopulateDataGridView"( again, a la MSDN). So far, so good. Everything works as it's supposed to. Then one day, out of the blue, it's not working anymore. You fill another row with data, and when you try to build the project, you get an error message. You bring up the CLR debbuger and guess what It highlights in yellow one of the methods in the program ("PopulateDataGridView") and tells you it i ...Show All
.NET Development Convert.Toxx vs DataType.Parse
Whats is the best practice between using Convert .ToInt16 ("stringVar") short.Parse("stringVar") what is more aproppiate for performance and memory space use thnks Convert.ToInt16("string") calls Short.Parse("string") ...Show All
.NET Development load multiple xml documents into a dataset
I have a web service that provides me with various XmlDocuments. In effect each XmlDocument is a table and what i need to do is load these various XmlDocuments into a dataset so that i can create relations and treat the dataset as if it were a mini database. I have used the ds.readxml() method but that only reads the first xmldocument and the rest are ignored. I have tried to create multiple datatables and add them to a dataset but got an error saying that the xmldocument can not be read into a datatable. Im using VS2005. Any suggestions on how i can achieve my goal would be appreciated. ...Show All
Visual Studio 2008 (Pre-release) Error in markup file+loading the usercontrol's dll with reflection.assembly
Hi all, I have developed an customcontrollibrary project in which i have one canvas and inside it, one button.Now i have one class called 'Clinkwidth' which implements IValueConverter.In the xaml file, i am using the class for binding the width as shown below: <UserControl x:Class="CustomControlLibrary1.UserControl1" xmlns=" http://schemas.microsoft.com/winfx/2006/xaml/presentation " xmlns:x=" http://schemas.microsoft.com/winfx/2006/xaml " Height="203" Width="248" xmlns:local="clr-namespace:CustomControlLibrary1" Name="ctltemp"> <UserControl.Resources> <local:CtxtLinkWidth x:Key="otxtLinkWidth" /> </UserControl.Resource ...Show All
Windows Forms equivalent of Access Requery method?
I have a DataGridView bound to a collection in a custom object. It works fine pretty much. My question is this. This collection of mine is a collection of folder names. The user clicks a button to select a folder, and the folder is added to the collection if the user clicks OK on the folder dialog. However, the DataGridView is not displaying the newly added folder, even though I've successfully added it to the underlying collection. (When I close and reopen the form, the new item appears.) How do you get the DataGridView to display rows added programmatically In Access, we have to call the Requery method on the control, but I don't see something like that here. ...Show All
.NET Development SqlCommandBuilder Will Not Build Update - Why?
Here is the code that works: Dim CmdBldr As New SqlCommandBuilder, Tmp_da As New SqlDataAdapter Dim Tmp_ds As New DataSet, CmdTerms As New SqlCommand CmdTerms.Connection = ADOdotNetConn CmdTerms.CommandType = CommandType.Text CmdTerms.CommandText = "Select * FROM Terms" Tmp_da.SelectCommand = CmdTerms CmdBldr.DataAdapter = Tmp_da Tmp_da.Fill(Tmp_ds, "Terms" ) 'this works But the Tmp_da.UpdateCommand and InsertCommand properties are empty. Why It's driving me nuts. The problem was not the indexes. The Insert and Update commands would not be generated until the following two lines were added to the code after the fill. Without them, the da.update method fails ...Show All
Visual Basic Multiple Checkboxes, 1 Varible
Is it possible to have mutliple checkboxes (two or three) change the same variable, but when one of them is set to True, all change to True one way would be to place the checkboxes in 1 groupbox then on the checkedchanged event for each checkbox, if the current checkbox is checked then for each checkbox in the groupbox - set the current checkbox in the iteration loop to checked (true) example... private sub Checkbox1_CheckedChanged(byval sender as object, byval e as eventargs) handles Checkbox1.CheckedChanged if Me.Checkbox1.Checked = true then for each currentCheckbox as CheckBox in Me.groupBox1.Controls currentCheckbox.Checked = true next end if end sub this is ju ...Show All
Visual C# vs 2005 c# and infopath!
hi, me and my team are currently developing an application for creating workflows, something similar to k2, however it is using windows workflow founadtion. the user is supposed to use infopath to design his forms containing information about his workflow. our application should be able to open infopath for him and edit the information in the forms to create the workflow accordangily... the problem is that i cant find any tutorials describing how to edit information in infopath forms through visual studio 2005!! if u have any plz send.. thanks alot:) Here is the InfoPath SDK, I hope there will be solution for this: http://www.microsoft.com/downloads/details.aspx familyid=351f0616-93aa-4fe8-92 ...Show All
SQL Server Server: The operation has been cancelled
This may be a silly question.. If the server is fully processing a partition, is it expected that all pivot table queries that are running will die with the error "the operation has been cancelled" One of our users is getting this error at the exact time that the partition is being reprocessed. I guess I should just tell them to just live with it <Batch xmlns=" http://schemas.microsoft.com/analysisservices/2003/engine "> <Process> <Object> <DatabaseID>OlapWarehouse</DatabaseID> <CubeID>GL Budget and Activity</CubeID> <MeasureGroupID>GL Summary Activity for Corporate G and A</MeasureGroupID> <PartitionID>GL Summary Activity f ...Show All
Visual C# Call Java from c#
Is it possible to call Java code from a c# (or any other .NET programming language) application I dont want to fork it as a separate process (with a call to batch file or something) but want to call a Java API method which returns some data to be processed again in the c# side. Is there a way to do it Appreciate any help ! Thanks for your Suggestion. The Java API will undergo revisions and will that mean, I'll have to rebuild the VJ code each and every time Am I missing something ...Show All
Visual C++ Internet App
Hi I would like to create an internet application using Visual C++ that allows me to search web pages for certain info and then store it. I have no idea how to do this and am hoping someone either knows of a tutorial, example program or can point me to some info. Thanks Jon i think you are looking for this IHTMLDocument Interface This interface is used to retrieve information about a document, to examine and modify the HTML elements and text within the document, and to process related events. A document object represents the HTML document in a given browser window. and if you Simply want to Downloads bits from the Internet and saves them to a file you can use URLDownloadToFile Function for ...Show All
