Software Development Network Logo
  • Visual C#
  • Visual Basic
  • Visual C++
  • Visual Studio
  • Visual FoxPro
  • IE Development
  • Windows Vista
  • SharePoint Products
  • Windows Forms
  • Microsoft ISV
  • Audio and Video
  • VS Team System
  • SQL Server
  • Game Technologies
  • .NET Development

Software Development Network >> None01's Q&A profile

None01

Member List

i7hira7
KeithGWilliams
AndyGVM
Boulderdude
Idanle
KevinDSE
rockworld
Nfrf
Tdar
maest
Jeff-B
lockdon9w1
Kent Boogaart
Andrew Buyan
Dan Mikkelsen
LarBru
Dan Imbrogno
Niro
stuntpope
sunny123
Only Title

None01's Q&A profile

  • Windows Forms updating label in main form from a thread

    Simple question: I have a form which creates and executes a thread. The thread calls a function included in a header file. In this function there is a line like this label1->Text="something"; obviously the header does not contain the definition of label1. If I pass label as a parameter to the function I can change its property, but, is there another way to access main form component properties you would need to do some invoking in this case, in .NET 2.0 if you try to access a control from another thread which the control was not created in, you will get a runtime exception Illegal cross exception (or invalid cross exception or something) to "invoke" it safely: http://foru ...Show All

  • .NET Development active directory System_com object

    hi when i run this code : public static void Main() { DirectoryEntry de = new DirectoryEntry( "LDAP://192.168.1.100/cn=a b, cn=Users, dc=soheila, dc=org"); PropertyCollection pc = de.Properties; foreach(string propName in pc.PropertyNames) { foreach(object value in de.Properties[propName]) Console.WriteLine(" property = {0} value = {1}", propName, value); } } some of the property value pair that it shows are: property = uSNCreated value = System.__ComObject property = uSNChanged value = System.__ComObject property = badPasswordTime value = System.__ComObject property = lastLogoff value = System.__ComObject property = lastLogon value = System.__ComObject property = ...Show All

  • .NET Development Error after deleting C:\Documents and Settings\<username>\Local Settings\Temp directory contents

    Hi, I'm not sure if this is the right forum for this question, but couldn't find anything more suitable. We run a windows form application developed in .NET 2.0 (C#) on a Windows 2003 Server. Today, someone deleted the contents of the C:\Documents and Settings\<username>\Local Settings\Temp folder. After that, the application has started throwing weird errors. Excerpts from the logs are: Error occurred during execution of background worker! Could not find a part of the path 'C:\Documents and Settings\<username>\Local Settings\Temp\2\inkug4vk.tmp'. Error occurred during execution of background worker! Could not find a part of the path 'C:\Documents and Settings\<username>\Local Settings\Temp\2\h12ixqfg.tm ...Show All

  • SQL Server How best to deploy database?

    What would be the best way to deploy a database to customers Execute sql scripts to create the database on the customer's server, or distribute an .mdf file Package as msi Other ideas Hi Jens, There is very little data in each newly deployed database. The customer uses an application front end to populate the database to their own specific requirements. The applicationfront-end will be deployed via MSI as each customer will have multiple installations of it, each pointing at one or more database servers. Having had little to do with MSI packages thus far is it easy to get an MSI to execute the scripts and/or attach a template MDF The way I see it, the database installer will execute under admin account on the ...Show All

  • Windows Forms MSI with custom action(created vai vs2003) insatll hang on vista

    Hi, I created a window service and msi install file vai vs 2003. I try to install it on vista, it "hang"... If I remove custom action, it will install well. I try to modify custom action type from 1025 to 3073. The insatll progress run failed , too. Does anyone have solution I HAVE THE EXACT SAME ISSUE! I know that doesn't help you - But hey, at least you are not the only one! I will post anything I find out. ...Show All

  • Visual C# convert string to int

    how can i convert hex string to integer for example string hxStr = "C" then int i = 12. Thank you You can simply use: int i = int .Parse ( "C" , NumberStyles .HexNumber); NumberStyles is in System.Globalization. HTH --mc ...Show All

  • Visual Studio Grouping data based on a range of values

    Greetings, I have a large result set of data and am trying to group the data based on a range of values stored in the database. For example: Group 1 - must contain all records whose field N has a value of less than 100 Group 2 - must contain all records whose field N has a value between 100 and 200 Group 3 - must contain all records whose field N has a value greater than 200 Group 2 may need to be supressed in the case of an exception report. I have been struggling with this all day and am having no luck. Please can you help me. Thanks, Robert Lancaster It sounds like you need to create a custom group. From the file menu, click Insert Group. Insert-Group Select your “Field N” and change “in ascen ...Show All

  • Silverlight (formerly WPF/E) WPF/E - Embedded JavaScript/HTML

    Hello, Is there a way to embed JavaScript or HTML within a .xaml file I played around with CDATA and didn't have any luck. If not, could it be possible to add a parameter to the WPF/E container object that allows developers to point to a custom .js file Even if you put the javascript into the xaml in some way, you would need javascript on the page itself to make the createFromXaml calls. I can't think of any way to get javascript out of WPF/E without having some javascript on the client. Do they block the script tag from being rendered How do they restrict you from using javascript ...Show All

  • Visual C++ Visual Basic Express + PostGres

    Hello again huge comunity. How can i connect to a postgresql data base on a local server.. (or extern.. but that's not the point..) using visual basic express 2005 ... I read an information on a "Visual Basic Step by Step" book about Ado.net, but, y saw an image that show an ODBC driver provided in the datasources.. but.. umm.. visual basic express 2005 do not have it. I heared about npgsql, but.. there's not a more direct way including somehow and odbc driver in vb express or do i have to get the comercial copi of visual studio 2005 .. and... if ODBC is the way.. in this case what's the step to folow .. Thanks a lot, and sorry, if you're to busy.. ok I understand.. thanks.. but.. did you know which library ...Show All

  • Windows Forms ClickOnce & MS Agent

    I'm trying to get my C# application which uses MS Agents to work with ClickOnce. First off, it seems I have to include agentctl.dll in my publish, or the app won't run. This is even if the client already has MS Agent installed. What's up with that Secondly, I can't access my custom.acs agent file. I can't load it from: System.IO.Directory.GetCurrentDirectory() + @"\custom.acs"; It will only work if the MS Agent is already present in c:\windows\msagent\chars. How do I get around this Cheers! ...Show All

  • Visual C++ compiling the "selected" project in dev studio 2005 - behavior change

    Hi, We are currently in the process of moving from VC6 to VC8. We have several projects with houndreds of cpp and h files. One of the biggest complaints we get from the developers is the issue of "build selection" button and F7: Our solution is built from several projects, most are static libraries for the main project (the main project having dependencies to these lib projects). When working on the code, developers generally changes a few cpp's without needing to know which one is related to which lib project and in the end they would always compile the main project by pressing F7 or pressing the build - these would automatically build the 'active' project which was always the main project. all relevant libs related cpp's that had changed ...Show All

  • Visual C++ Memory Leak in C++ STL library - Visual Studio 2005

    There's something wrong with the ios_base class in Visual Studio 2005. I was debugging my program and I noticed a memory leak. Since I could not understand what was causing that leak, I've tried using a memory leak detection tool (Rational Purify) and I found that the ios_base class causes a memory leak. I just tried to write this piece of code #include <sstream> int main(void) { std::stringstream myStream; //nothing else return 0; } The memory leak detection program tells me that: --Memory leak of 4 bytes from 1 block allocated in --std::basic_iostream<char,char_traits<char>::std>::basic_iostream<char,char_traits<char>::std>(basic_streambuf<char,char_traits<char>::std>::std*) --at file xi ...Show All

  • Visual Studio 2008 (Pre-release) identifying GridViewColumn in ListView

    I have a listview with a gridview as its view. The gridview columns contain checkboxes and there is a context menu associated with the listview. The context menu has options such as "Include all" and "Exclude all". The requirement being that all checkboxes in a column should be checked or unchecked appropriately when the respective menu item is clicked. I don't seem to be able to identfy where the context menu is when it opens. I'm sure I've seen something somewhere before that documents how to do something like this but I haven't been able to find it again. I also think that I should be able to do this with a hit test but there doesn't appear to be anything I can subscribe to on the GridViewColumn. Has anyone go ...Show All

  • Smart Device Development UI Design Pocket PC?

    Hello , i am designing a Pocket PC 2003 App. How best the GUI can be designed or is there any guidelines to build rich GUI. Pls suggest. Thanks Karthik it's just another winform application ... smartphone UI is a little trickier b/c you have less capable cursor interaction, but pocket pc is pretty easy -- just create controls as you normally would, keeping in mind you're working with a much smaller screen. buttons, input fields (textbox, checkbox, etc.), panels, it's all the same stuff as a desktop windows form application. ...Show All

  • Visual C++ Can Anyone Tell me what I did????

    I am working on my final project for my C++ class. Everything worked fine until I had to enter in the array. It still works to an extent but, I need some HELP on why it does not display the amortization table properly. Can anyone give me a clue as to where I went wrong Thank you in advance!   The completed mortgage calculator code is pasted below! Yes it did. Thank you very much. I have my assignment completed and it is ready to turn in. If you want, I could use a little feedback on what you think! I have 3 warnings with the project but it all works fine from my end. Tell me what you think! #include <conio.h> #include <iomanip> #include <iostream> ...Show All

©2008 Software Development Network