Lucianamaría's Q&A profile
Windows Forms WithEvents in C#
Please help me translate this code into C# : Dim WithEvents myNewBookMark As Microsoft.Office.Tools.Word.Bookmark Private Sub ThisDocument_Open() Handles Me.Open With ThisApplication.Selection .ClearFormatting() .Find.Text = "fashion" &n ...Show All
Visual C++ Char ipv. LPCWSTR
Hi, i'm not really experianced in C++... well in my sight :) i never used the VS compiler before. but now i'm cant work without it anymore. My problem is that i had a lot of code, who all worked with the char parameters, like: MessageBox(NULL, "test" , "test" , 1); This is under a Win32 empty project. Now he keeps saying, "cost char[5] cant convert to LPCWSTR" My question is, if there is a option for still using the char parameters, or else a macro or something to make LPCWSTR easy... i hope this was readeble, because my english isnt any good. Thanks already! -Koen It is suggessted that you wrap all liter ...Show All
.NET Development Webservice not returning results when dealing with large data
I have an interesting situation. I have a webservice function that I pass a DataSet, do some inserts, then return the results as a dataset. This works fine 99% of the time. However, when I send a large dataset to this function strange things happen. On my 'client' end nothing happens - I have a Console.WriteLine right after the webservice call and it NEVER executes (nor does it error out). ex: webserviceRef.sendData(someDataSet); Console.WriteLine("Done!"); <- never executes Now back on the server (webservice) end, the function executes perfectly. I can tell because right before the 'return' statement I write out a text ...Show All
Visual Studio Team System Is shelving broken in TSF Beta 3 Refresh?
I've actively shelved some changes (making sure to follow the docs), but have been unable to unshelve. When I get the list of shelvesets nothing is ever returned but if I try to shelve something with the same name again I am told that the name already exists. I also poked into the database (modifying nothing) and did see that my shelving did make it into SQL Server. As a note, I only have one user in the same so I'm shelving and attempting to unshelve to myself. Do other people have this working properly Joe This sounds like the registration information needs to be changed to use the fully qua ...Show All
Visual Studio Tools for Office Word Add-In Office 12 Deployment
I'm developing a Word 12 add-in for Office 12 (beta 1), but the deployment fails for some reason. I'm deploying my plugin using the msi installer. PIAs are installed by default, Access to code is granted and the VSTO runtime is installed on the host computer. If the project runs as shared add-in (as under Word 2003) it works fine. But changing the project type to Word 12 add-in does not work for the deployment. Is there something that must be taken into account or is there a possibility to debug the loading process. Word 12 just says that an error occurred when loading the add-in. Regards, Arne The ...Show All
SQL Server TOP 100 ordering of Data Question
Hi, I was trying to use the UNION construct to combine two tables. The second table was to be sorted before effecting the UNION. The first attempt was the following: SELECT emp_id , assigned_branch_id FROM employee WHERE title = 'Teller' UNION SELECT open_emp_id , open_branch_id FROM account ORDER BY open_emp_id The above was generating an error. I then tried SELECT emp_id , assigned_branch_id FROM employee WHERE title = 'Teller' UNION SELECT e . open_emp_id , e . open_branch_id FROM ( SELECT TOP ( 100 ) PERCENT open_emp_id , open_branch_id FROM account ORDER BY open_e ...Show All
Visual Basic Status Strip Labels
Hi, If you have a Staus Strip with a couple of Status Labels defined within the Status Strip. Is there a way to evenly space them apart, or to space then to your liking Do you need to know the size of the form and then divide them equally using the width property or something like that. Thanks in Advance....Eric ...Show All
Visual Basic Splash Screen Question
I put the following code in the applicationsevent.vb file and it still doesnt display my splash screen for more than 2 secs. Am I missing something here Namespace My ' The following events are availble for MyApplication: ' ' Startup: Raised when the application starts, before the startup form is created. ' Shutdown: Raised after all application forms are closed. This event is not raised if the application terminates abnormally. ' UnhandledException: Raised if the application encounters an unhandled exception. ' StartupNext ...Show All
.NET Development Page.Timeout in C# .NET
Im new to this, but have made an OK site. i just need one thing....... And thats a pageTime out. I have tried all i can find on msdn, but can get it to run.. In JavaScript you have the commando: window.setTimeout('window.location="Default.aspx"; ',5000); What is the correct .NET way to do this Hope somone can help, as i have used a hole day on this toppic Best regards from Denmark. the hood Use this link to register: http://forums.asp.net/user/createuser.aspx ...Show All
Windows Forms If you can answer this Overrides Question... you're brilliant and probably way underpaid
I have a treeview control on a form. The TreeView control automatically as part of the .NET framework contains and uses a TreeNodeCollection, which of course you gain access to using objTreeView.Nodes I am able to override the TreeView control without breaking the tinyest of a sweat. Public Class MyOwnTreeView Inherits System.Windows.Forms.TreeView ... End Class Well here's the EEEnormously HUUUUUGE dilemma where MASSIVE brain power would be required to solve... Now that I have inherited the treeview control and overridden various methods/properties in it, I also want to override the TreeNodeCollection that the ...Show All
Visual Basic Purchase Order Number Generator
I'm designing the forms for our business, and am currently working on a Purchase Order form. The aim is to create a form that, when opened, creates a new PO number that runs in sequence. IE: I open it one time and I have GH-0001, but next time it's opened, we have GH-0002. I'd like to avoid anything based on date and time because those make for very long PO Numbers, and slightly weird. Any suggestions or redirections are welcome. This ID could be inserted in a database. What you'll have to watch is when 2 people open an order for at the same time, you don't want them to have the same ID. ...Show All
.NET Development GetInitializer(Type serviceType) and global configuration for a soap extension
Hello, I've developed a SOAP extension that has some interaction with SQL server and I want to configure it at a global level with the connection string. I've looked online and although I can easily do this at an individual WebMethod level, information on the global side information looks pretty sparse. SOAP extension is working fine and I attach it using the web service web.config. Any ideas would be a great help Cheers Mannfred You could use the appsettings section in your web.config. http://msdn.microsoft.com/library/default.asp url=/library/en-us/cpref/html/frlr ...Show All
.NET Development Parameterized queries
When using a parameterized query such as: SELECT LocationID, StreetNum, StreetName, rowguid FROM tblLocations WHERE (StreetNum = @StreetNum) AND (StreetName LIKE @StreetName) Is there a way to automatically add % to the beginning and ending of the parameter I've tried the following command: SELECT LocationID, StreetNum, StreetName, rowguid FROM tblLocations WHERE (StreetNum = @StreetNum) AND (StreetName LIKE '%' + @StreetName + '%') But I get a FormatException. I don't want the user to have to type % in the parameter field. Any suggestions Thanks, Lee I have split this post into a separate thread, and ...Show All
.NET Development Lock a record by SQL Command
Hi! I develope my windows application using VB.NET & SQL Server 2000. How may I lock a record in a table while updating by a system user, to prevent other users update or delete that record (Imagine that my database contains a table named 'myTable'. There is a form in my program running on a network, to edit the data of table 'myTable'. A user is going to update a record of table 'myTable'. I want to lock this record as loading in the edition form of application and unlock it after update completions. Take notice that I am looking for a SQL Command to do such task.) Regards! M.Sadegh Samiei The simples ...Show All
Visual C++ Passing an array of structs
I have this struct struct student//Struct layout { char name[30]; char id[11]; float gpa; int age; char gender; }; this is the syntax I have for the function I want to send the array to: void firstmenu(student students[]); student students[5];//Struct Array, this is where I make the array firstmenu(students[]); and that is where I try to call it. I get a compiler error of: error C2059: syntax error : ']' when I try to call the function. So I am assuming I have the right parameters when I make the function but I am missing something when I call it. I tried it without the [] doing [5] and it still gives me errors. I'm not sure ...Show All
