Rachel Lavoie's Q&A profile
Software Development for Windows Vista workflow monitor
hi all, does annyone know: is it possible to have something like a workflow monitor in a self programmed application. if yes, how would i do that and: would it then be possible to edit the workflow of my application via the monitor at runtime please advise, thanks in advance, .k hi shawn, kinds of modifications would be f.e. to change the order of activities in a sequential workflow... i will have a look at the sample now.. thanks! .p ...Show All
Visual C++ Lib debug problem
Hi, guys, I am trying to debug a project using visual C++ 6, which using some libraries in an SDK. I compile and run the demo in the SDK, there is no problems. But when I press F5 to debug and track, I cannot do it and assembly language appears; I cannot even enter InitInstance(). I open the stach, it is in SUMDLLAPI! 100f66e5(). I never meet such problems before. the libraries can be loaded and used; but cannot be debugged; I cannot observe the return values of any API in the lib. Thanks a lot. Damon Make sure you have no stray breakpoints active: Edit + Breakpoints + Remove all. Make sure you built the debug ...Show All
Windows Forms MainMenu item and Controls.Remove()
I am trying to learn about forms in .NET and can't figure out a couple of things: I have a MainMenu item that serves File Help and other things on the top of the application. The whole application window has a background image but the line with the MainMenu is still of control color. Is there any way to make the background image cover th ...Show All
SQL Server Data of type SQLBIT always 1??
Hello all, Apologies if this is posted in the wrong forum, however I wasn't exactly sure as to which one would be the best for my query... I have recently inherited the job of maintaining a database of internet logs and I am using the bcp utility to bulk insert rows into the database. The problem is that for the fields which are classified as SQLBIT in the .fmt file (and the field in the database is bit) are always inserted as '1' even if the data is actually a '0'. Any value will be inserted into the database as a 1 except for NULL which is inserted as NULL. I tested changing the type to SQLCHAR in the .fmt file, and this allo ...Show All
Software Development for Windows Vista about ShadowProperties
In System.ComponentModel.Design there is ShadowProperties that can hide the parent property.But this property isn't in System.Workflow.ComponentModel.Design. Now I wanna hide "Name","Description" properties in my custom activity property window,how to implement it Have you tried overriding the properties and then using the browsable attribute to hide them from the property grid [Browsable(false)] public new string Name { get{return (string)base.GetValue(Activity.NameProperty);} set{base.SetValue(Activity.NameProperty, value);} } Matt ...Show All
SQL Server SMO Connection String conversion
Hi, I am using SMO in my application to retrieve data from SQL Server in order to display it in the UI (such as DB list, tables list, etc.). Eventually the user has a connection definition screen, in which he inserts his data. The thing is that in the background my application needs to use this data to connect via OLE DB. Is there a way to convert the connection string generated by SMO to an OLE DB connection string Thanks. Hi, sorry, AFAIK the conversion from sqlconnection to oleddconnection is not implemented by default, although they share a common interface, the IDBConnection. Perhaps you can bu ...Show All
.NET Development XmlSerializing inherited generic list
[XmlRoot(ElementName="Charges")] public class Charges : List { private Charge _total; public Charges() { } [XmlElement(ElementName="Total")] public Charge Total { get { return ((_total == null ) new Charge() : _total); } set { _total = ((value == null ) new Charge() : value); & ...Show All
SQL Server OLAP cube design
Hi, This is an OLAP cube design question. I have a cube that was running fairly ok but now has started showing memory errors as the data being processed has increased considerably, so I have started to doubt the design of the cube. I have an SQL database that stores the information of people visiting certain web pages of mine, and analysis server running on it so that I can do analysis of trends of people accessing my pages. For example, I want to know how many smokers(dimension : Smoker) from state Alaska(dimension : State) accesses page1(fact table data) of my application during 1st month of 2006(dimension : Acessing time) Now, the dimensi ...Show All
Windows Forms Just a small suggestion.
Just a thought, but since when you right click on the toolbox and click customize it takes so long to load..couldnt the default tabpage be the .net Framework components..it just seems to me that in a .net application I would want to use .net components, and I'd rather see the .net ones than COM upon toolbox config startup..does that make sense or& ...Show All
Visual C++ Thread again!
I changed my code. to this and it's work properly . but I can't to add " str " to a listobx. what should I do void CThreadTestDlg::OnRunThread() { BOOL T=TRUE; Suspend(T); } UINT CThreadTestDlg::ThreadSimple(LPVOID pParam) { CWnd *pWnd=new CThreadTestDlg; CTest *pTest=(CTest*)pParam; BOOL b=pTest->SetTrue(); while(b) { CString str =pTest->RandString (); pWnd->MessageBox ( str ); ///----m_listbox.AddString(str)----------------error. /// CListBox m_listbox is bublic member in CThreadTestDlg } return 0; } void CThreadTestDlg::Suspend(BOOL bSus) { if(!bSus) { if(m_pThread) { HANDLE hThread ...Show All
Visual C# Adding Attributes Dynamically generated CheckboxList
Hi, I am using CheckBoxList control and Adding checkboxes dynamically based on the results. Here is my code foreach (Site s in Sites) { ChkSites.Items.Add ( new ListItem(s.Description)) } I would like to add Attributes to each of the above generated Checkbox ListItem. The following code is adding attribute to the CheckBoxList control, but I want the attribute to be added to ListItem. foreach (Site s in Sites) { ChkSites.Items.Add ( new ListItem(s.Description)); ChkSites.Attributes.Add("Checked", "True"); } Can anybody help me please. Thanks in Advance. Bhaskar. Try this: for ...Show All
Visual Basic VB.NET 2005 RC - Datagrid issue
I have an application which uses a datagrid to display a property listing. The list will contain around a quarter of a million records so I need the user to have a simple way to search. I have built a search routine which allows the user to type some text in to a toolstrip bar and then performs a search through the dataset. The issue I have is when the routine finds a match, I need it to highlight the row on the datagrid. This is where I have the problem; I cannot see how to achieve this. I have tried searching everywhere (Google/Experts Exchange etc) and have seen some pretty ridiculous solutions such as mim ...Show All
Windows Forms TextBox, decimal field and null values
Hi all, As the username suggests, am new to all this- so appologies for what seems to be a silly question... Working on a small application on VS 2005, I've noticed that when binding a textbox to a table ('price') column of decimal value that accepts null values, whenever I erase the contents of the textbox, it gets 'locked' till I fill it back with a numerical value. In the "price" column's properties in the TableDataSet.xsd I've changed the dataType to string and changed NullValue to (empty), which ends with an FormatException thrown since the attempt to convert an empty string (Nothing or "") to decima ...Show All
.NET Development how to get the return value from store procedue?
Hi, Below is a sample SQL SP. How can i get the return value using SqlCommand/Sqlparameter. Thanks and have a nice... CREATE PROCEDURE udspCheckForMilestoneUpdates AS IF EXISTS ( SELECT * FROM storyData WHERE nameKey = 52 AND date_posted = CONVERT(varchar, DATEADD([year], 0, GETDATE()), 101) ) BEGIN RETURN 1 END ELSE BEGIN RETURN 0 END GO I suggest that you have a look at the documentation on the different Execute methods available to you, and when it is appropriate to use each one. Have a look at the examples given, and you will learn how to use them. ...Show All
Smart Device Development How can I get the current version of the app .netcf 2.0
Hello, I am wanting to get the current version of the wm 5.0 application that is on the mobile device at runtime. How can I accomplish this as the .netcf doesn't support Diagnostics.FileVersionInfo.GetVersionInfo. Thanks. John If you want to get the version of your current assembly you may use code like this: System.Version ver = System.Reflection.Assembly.GetExecutingAssembly().GetName().Version; You may also load another assemby with Assembly.Load / LoadFrom and extract the version in the same manner. You may use the OpenNETCF implementation of the FileVersionInfo class in the OpenNETCF.Dia ...Show All
