jac's Q&A profile
Visual Studio Express Editions Dynamic Textbox - property setting problem.
Hi Newbie here, please forgive a simple question. I have, with the aid of this Community site, made the following code snippet. It works correctly, adds the textbox to my form, with the correct text etc, but, the only property change not working is the Height component which remains at 20 throughout. From other answers, and the fact that I made my code snippet identical to those, then the Height property should have changed - or, more l ...Show All
Smart Device Development Start a process just one time ?
Noone have an idea Hi, I'd want to know how to not launch an application two times. I thinked I can compare the current process with the other process but I don't know how to create a list of the processes with the .NET CF for smartphone. There are methods to do it on other platforms but I didn't found it for smartphone. Ideally, I 'd like that when I re-start the application, I can see the m ...Show All
SQL Server AggregationFunction=NONE
Hello, I want to use the AggregationFunction=None, but when I browse my cube, there are no data. Anyone ever use this aggregation function Thank you, Guillaume. Hi Guillaume, For a measure with AggregationFunction=None, you'll only see values at the leaf level cells of the measure group, unless you're loading non-leaf fact data. Furthermore, if there are multiple fact records for a leaf-level cell ...Show All
SQL Server System.Data from NETCF and System.Data from .NET
Currently, I have a WinCE application which uses the System.Data from NetCF and System.Data.SqlserverCE from MSSQL Server 2005 Mobile Edition. Now, I'm trying to use the System.Data.Sqlclient but I can't seem to find it in my System.Data. I notice that there are different version which is one from NetCF and one from the MS.Net framework itself. Here's my question: Is it possible for me to use both System.Data or should I only choose one. This i ...Show All
Windows Forms Setup Project, Custom Actions Editor
Hi, I try to use Regedit.exe in custom action. I add it from "Windows folder" (after I add it from the Special folders) but at the property sourcePath of this custom action I get the absolute path (C:\Windows\regedit.exe) instead of the relative path. If I try to install on windows 2000 the installation failed because the path is incorrect. (c:\WINNT\Regedit.exe). Any suggestions... (I Don't want to call regedit ...Show All
SQL Server Parameterizing the XPath for a modify()
Hi all, I'm trying to write a generic stored procedure which will parameterize the XPath in my XML file so that I can update a value by giving just its path and the new value I wish to store: Here is the code: CREATE PROCEDURE ModifyLoanXML @LoanNumber char(60), @XPathQuery varchar(300), @Value varchar(300) AS UPDATE Loans SET LoanXML.modify('replace value of (sql:variable("@XPathQuery"))[1] with xs:string(sql:variable("@V ...Show All
Visual Studio 2008 (Pre-release) Exceptions
While trying to create and position an ellipse... Exception System.Windows.Serialization.BamlParseException was unhandled Message="Error at element '' in markup file 'Window1.xaml' : Exception has been thrown by the target of an invocation.." Source="PresentationFramework" LineNumber=0 LinePosition=0 StackTrace: at System.Windows.Serialization.BamlRecordReader.ReadRecord(BamlRecord bamlRecord) at System.Windows.Serialization.B ...Show All
Visual C# Zebra printer issue
Hi, A guy who used to work in my position created an application in c# to print a label in zebra printer Ht-146. I am so new to this kind of application and not sure how he did that. I think he used EPL2 programming language to print it. My question is, is there any way that i could preview the label before printing it. Below is the code to print the label: public int printGreenLabel( string field1, string field2 ){ StringBuilde ...Show All
SQL Server Close to quit working with VS 2005 and SQL Express (Cannot Create Database)
About 2 months ago, with great interest installed VS 2005 beta on my local Windows XP Pro. The SQL Express is running. I cannot work FULLY on starter kits like Personal Web Site SK or Community SK. I create a new web site based on the Community SK. I can successfully bring up ASP.NET configuration, create roles, create users etc. When I look in the App_Data folder there is no ASPNET.MDF database. Where is this getting created 2) Do we have ...Show All
Windows Forms MDI Application -> freezing certain windows?
Hi, Im creating a program that allows a user to run sql commands etc. I want commands to be executed concurrently in different windows. So when someone executes a command in one window, I would like a box to pop up saying "time running etc etc cancel etc"... but while this box is open I dont want the user to be able to hide it and view the window it was ran from, but still be able to view other windows within the MDI application to see results f ...Show All
.NET Development Error while storing image into sql database.
Hi All, I was trying the below code : -------------------------------- try { MemoryStream stream = new MemoryStream(); this .gearPhoto.Image.Save(stream,System.Drawing.Imaging.ImageFormat.Bmp); byte [] content = stream.ToArray(); // insert new entry into table sqlinsert = "INSERT INTO pr_person_image (national_number, capture_date,expiry_date,operator_id, wstation_id, picture)VALUES("+ Convert.ToInt32( this .TxtNat.Text)+",'"+ this ...Show All
Visual C# Generic math functions
I want to create some functions that operate only on the numeric types but I don't particularly care what those types are. I'd rather rely on the invoker or .NET's automatic casting rules to create the answer in the appropriate type. I could declare two versions of every funciton one taking and returning doubles and the other decimals but that seems excessive and slow. Is there a way to make a function generic yet restrict its parameters to nume ...Show All
Smart Device Development CeOidGetInfoEx2 parameters.
Hello, I found in MSDN documentation that the CeOidGetInfoEx2 is defined like this: BOOL CeOidGetInfoEx2( PCEGUID pGuid , CEOID oid , CEOIDINFO* poidInfo ); but poidInfo [in/out] A pointer to a CEOIDINFOEX (EDB) structure. On successful return, it contains information about the object specified by oid . The caller must set poidInfo-> wVersion to the current version of this structure type to CEOIDINFO_VERSION (2). so what is ...Show All
Visual Basic Comparing data within datarow.
Hi, I would like to know if it is possible to correctly compare value between 2 data fields in a dataset. I am trying to put this in my final year project. So far I have managed to make some head way through it from books and a lot of help from this forum. Heres the deal. I am trying to make my app compare two data values in the same datarow which will then cause an output to be entered in another field within the datarow. So I have tried ...Show All
SQL Server SSIS: Inserting unknown members from fact table
Looking up surrogate keys in a dimension table and adding these to your data flow is easy when there is a match in your dimension table for every key in your fact table. However, I am puzzled by how to manage the data flow when no match can be found for a specific key in the fact table when doing the lookup AND I then want to insert this unknown key as an unknown/inferred member in the dimension table. The problem is further complicate ...Show All
