dataMonkey's Q&A profile
.NET Development Passing a Form handle to a class constructor
I'm just starting to use Managed C++ and .NET. I'm still in the early learning stages. Basically, I have a Window Form that has a value for MyClass to use. I thought I could use the following code to pass the Form1 handle to the Myclass constructor. First, the compiler says MyProgram is not a namespace. I've placed the using namespace into the MyClass.h, but this dosesn't help I think it may be a chicked before the egg kind of thing, but want to make sure I'm not missing something. Currently, I have a private member method within the Form1 class called setMyClass( ^Form1 ) which works but this doesn't seem very OOP to me. //---MyClass.h--- #pragma once public ref class CMyClass { public: CMyClass( MyProgram::Form1 ^hFor ...Show All
Visual Studio Team System Please include options in Compare (e g ignore owner)
When I compare two schemas I would like more options the check like, ignore schema owner. So if an object is the same but has a different owner it should appear as a difference. Even nicer it could appear with a different colour with appropriate text explanation tool-tip-text. Best regards Niklas Engfelt Niklas - On the Schema Compare toolbar, you should see a "Schema Compare Options" button. Have you tried that button to set options that control what is ignored when comparing databases The options should also be available from the menu, but I don't believe that is implemented yet. I should also note that while you can set options, in CTP3, they weren't all working correctly (I think th ...Show All
Visual C# Adding a column of type AutoNumber
Hi. I am writing a program that connects to an Access database. The table can have any number of rows. In my example I have about 172,000 rows. Now I am trying to use the following DDL statement to add a column of type AutoNumber to this table. alter table <Table_Name> add column <Column_Name> COUNTER NOT NULL But I get the following error: [Microsoft][ODBC Microsoft Access Driver] File sharing lock count exceeded. Increase MaxLocksPerFile registry entry. Now, one way to fix this is to modify the registry entry to the value '172,000' for the database driver as mentioned in the error message. But the users of my program can have any number of rows in their table. So, is there a way to (preferably usi ...Show All
Microsoft ISV Community Center Forums Sort table based on array
I have table and an array, both have the same length. I want to sort the array and the table based on the array. The array is never seen to the user so I cannot paste it next to the table. I have to deal with the array. Is it possible If so, any ideas on how to do it Any help appreciated! Thanks very much! ...Show All
Windows Forms problem resizing tablelayoutpanel
Hi all, I have a tablelayoutpanel filled inside a splitter container. when I try to increase the size of tablelayoutpanel by moving splitter, always the last row of tablelayoutpanel is becoming bigger. I want to increase the size of the first row. Is it possible Seems you are using a horizontal splitter container, right did you try to adjust the height of your rows in percentages instead of absolute values or vise-versa I can't be sure which will be more suitable to you as it depends on the number of rows and their respective orientations and sizes. The rule generally is: absolute values over percentages! that is, if you want your last row to remain unsized, adjust its height to an absolute value, then ...Show All
Visual Basic how i can display all application on my computer but not all proccess?
hi, i want to display all application that install on my computer (like media player,excel,word,norton,...) but with out all proccess. like the list display in control panel->add/remove programs i know i can see the all proccess like this: proccess.getallproccess but i need just my install programs. i talking about visual studio 2003 thank u try this: You may also retrieve them from Add/Remove Programs registry key : HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall use the Display Name value to get application Name Dim regRegistry As Microsoft.Win32.Registry Dim astrKeys() As String Dim intAppCounter As Integer Dim strDisp ...Show All
Windows Forms Control 'lb_info' accessed from a thread other than the thread it was created on.
Cross-thread operation not valid: Control 'lb_info' accessed from a thread other than the thread it was created on. Thread t = new Thread ( new ThreadStart (c_processWindow.InfoStart)); t.IsBackground = true ; t.Start(); c_processWindow.InfoMess( "temp" ); c_processWindow.InfoClose(); t.Abort(); *************************** IN ProcessWindow Class public void InfoMess( string tempInfo) { lb_info.Text = tempInfo; } how can i change the label information in a window that i created with a thread A worker thread should never update a windows control directly. Only the UI thread (the thread that created the control) may change something to a control. You can update the cont ...Show All
Smart Device Development check if device connected or not
Hello sir/madam, I need some sample codings in vb.net so as to know whether my SmartDevice is connected to my USB drive/PC or not any clues ello Sir/Madam, I am developing a PDA smartdevice application where data is stored in sqlce and then i am synchronizing this data with sql server 2000 database server. Before synchronization, i want to check if my PDA is connected to the PC or not. Is there any clue for developing this code in vb.net if i am not wrong, PDA devices are connected to USB devices, so i wil need sample code in vb.net for detecting my PDA with PC. Suggestions ...Show All
SQL Server Replication without initialize subscriptor with the snapshot
Hello all, I am developing a system using SQL Server replication between SQL Server EXPRESS 2005 clients and SQL Server 2005 servers. I initialize the replica databases with a script, then I do not want to initilize the subscriber with the snapshot; I configure each subscriber to "not initilize", but when I run the first synchronization the snapshot copy process is always is executed. Maybe am I forgetting something Can I use this SQL Server EXPRESS - SQL Server replication scheme without initialize the subscribers with the snapshot Thaks for reading! Merge or transactional replication Try looking at this topic: Initializing a Transactional Subscription Without a Snapshot. http://msdn2.microsoft.com/en-us/libr ...Show All
SQL Server Duplicate Values on Top Level of Dimension
Hey there community, I have a problem, and i am lost as to how i can fix it.. I would be over joyed if someone can give me a hand in identiffy it.. I will try to explain below:: I have a cube for sales, that displays sales by a Market heiracy of Market->Division->Family->Item. When i drill down, sales numbers look fine.. I added in a budget file, which only specifys budgets down the the Division Level.. I have added the Budget Figure as a Measure Group. In the dimension usage tab, i specify the Division as the Granuality for the Budget Measure Group on the Market Dimension.. Measure Groups Dimensions Standard Measure Bu ...Show All
.NET Development .Net 2.0 loaded 1.1 needed
On a new system I loaded Microsoft .NET Framework 2.0, now some of my applications need Microsoft .NET Framework 1.1. Of which I can not load, even after unloading 2.0. Using XP Pro SP2. Any Suggestions Ordinarily a .NET application will try to run by the same framework version as it was compiled for (provided no overrides exist) and it is strange that installing the 2.0 Framework caused your 1.1 apps to try to run in 2.0 and stop working. Have you tried reinstalling/repairing the 1.1 Framework Also worth noting is that when you have multiple versions of the framework installed and you absolutely want to have control over the framework that your app runs in (provided it is installed) you can modify the apps config fi ...Show All
SQL Server Hidden Subreport Executing Queries
I'm currently developing a report in which the customer has requested a drill-down type of interface that starts at a regional level to a district level to a territory level and finally to the individual customers within the territory. The drill-down interface was easy to create by using Groups in conjunction with the ToggleItem and Visibility.Hidden properties at the different Grouping levels. The problem I have run into is that there are around 1 Million customers across the country and the report was attempting to retrieve all of the records at all levels at once. This turns out to be unworkable from a performance standpoint. To try to work around this I proposed using drill-through at the territory level to open a new report w ...Show All
Visual Studio Express Editions Compile a stand-alone cpp using the IDE
Hey guys, can anyone tell me if it is possible to compile a stand-alone cpp using the Visual C++ Express IDE. I've seen in the other threads that it's possible using the command prompt compiler. But I dont want that! How do I compile a .cpp file without using a project It was possible in previous versions of VC++ (atleast to my knowledge!), in that if you try to compile a .cpp without a project, it would make a temporary project and compile it, doing all that in the background. Plus, in another thread, someone said I should uncheck the 'Save new projects when created' option in the 'Projects and Solutions' node in the Options dialog (Tools > Options). But it's still not working. There is no Build option for the stand-alone. What do I do ...Show All
Visual Studio Team System Problem VS 2005 WebDev.WebHost error
Hi I have projects that i would like to use at home as well as at work. At work everything is fine and works ok. At home i had a computer with 2003 installed i then installed VS 2005 and tried to run the 2005 code from work and i got this error when trying to run the code.. An unhandled exception of type 'System.IO.FileNotFoundException' occurred in Unknown Module. Additional information: Could not load file or assembly 'WebDev.WebHost, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified. I found that the WebDev.WebServer.exe was missing from my home computer so i copied from from my work computer into the correct location i still get this erro ...Show All
Visual Studio Express Editions RichTextBox - two questions.
Hi I am using 3rd party dll to receive string messages and displying them in RichTextBox. How can I limit the amount of lines to be in specific number (let's say 100) and in case 101 message arrived delete the first one and insert the new message at the bottom How can I autoscroll the scrollbar in the RichTextBox to the last message that arrived (on every message that arrived the cursor move to the first line). Thanks in advance Asaf. 1. I would like to append the coming message at the bottom and the delete the first line ( FIFO). 2. I am using the richtextbox due to the fact that each messag that arrived, is also contain color, can I change color of each line in ListView Thx ...Show All
