Marco Manetti's Q&A profile
SQL Server Getting HelloWorld_CLR sample to work
Hello, I have been trying to get the app installed and running; I've updated the install script to point to the right server and it worked. I've run the ALTER DATABASE ssb_HelloWorld SET ENABLE_BROKER ; and the EXEC sp_configure 'clr enabled' , 1; and the CLR seemed to have problems while getting replies back from the server. However after repeated retries it worked well. Sporadically I would see an error. After uninstalling the sample and installing it again - to document the steps previously taken - the CLR application is no longer receiving messages from the server. Any idea about what setting might be needed Thanks, See this previous post: http://forums.micro ...Show All
Windows Forms Images do not appear in listview
Hi all, I am using a listview and have images being shown in the first column, however these images do not show up every time. Every now and then, there is no set pattern, the images do not show and there is an empty space instead. If anyone can help me it would be greatly appreciated. Thanks in advance Below is the code to view the images. Private Sub Form1_Load( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase .Load listview1.SmallImageList = cResources.Instance.StatusImageList listview1.View = View.SmallIcon listview1.Columns.Add( "test", 100, HorizontalAlignment.Center ) listview1.Items.Add( "test", 1 ) End Sub When this fo ...Show All
.NET Development How To Store Products with Attributes
Hello I am building an application and website, However 1st of all I obviously need to design the database, and i was just woundering about the best way to do some things. For example my application/website must allow customers to purchase products, these products can have 0 or many attributes, such as size, flavour, colour etc. Which is the best solution to tackle this in regards of database table design This is the setup atm, but i would like some idea's/opinions Products Table - holds products information, and a base price information Attributes Table - holds many different attributes, such as name, description etc. ProductAttributes Table - This holds 2 foreign keys and some other information. ProductID A ...Show All
SQL Server Displaying different text
I want text displayed as: some text here Somename another text here. How to do that if Somename is a value of a field and it's width changes As it can't be done with a single textbox, can it be done with a table Can a table have dynamical width The only dynamic sizing property in reporting services is the "CanGrow" property. However, this only applies to the height of objects. The width cannot be dynamically adjusted for larger values. ...Show All
Community Chat New Windows Mobile Devices around 2007
What are the Windows Mobile devices manufacturers (like HTC, Palm, etc.) will be releasing with Windows Mobile 6.0 around second half of 2007 I know it's too early to ask but I felt like asking my question since I have my BlackBerry 7290 for instant messaging, e-mail, etc. (didn't have a credit history) and my contract will expire around July of 2007. I'm an "early-adopter" when it comes to looking forward on what Microsoft has to offer. For me, I'd like to have a laptop-style PDA/SmartPhone with a large screen, but small enough to fit in a pocket. In other words, bigger than Palm Treo 700w/wx and Blackberry, as my thumbs are big and makes me make typos in my Blackberry; plus, it takes a lot of training for typing without look ...Show All
Connected Services Framework Custom Agent Desktop?
Hi, We are building a proof of concept for a client of ours on CCF.and I was wondering, If I want to implement an application with similar functionality to the Sample Agent Desktop provided with CCF: Is implementing the UIConfiguration Interface and all it's methods sufficent Is there any other documentation on the agent desktop or atleast the Interfaces required and webservices in order to create another application with similar functionality Any help on this topic would really be appreciated. Thanks alot Yes it can be done. As an example, there are 2 implementations of the Agent Desktop in the CCF distribution. The one loaded by default with the agent desktop project is ...Show All
Visual Studio Express Editions Gzipstream Question
I've searched in the msdn database for gzipstream stuff. It's really good working but I haven't figured out how to unzip more than one file out of a gzip. GZipStream doesn't deal with an archive with files, just a stream of bytes. You'll need a lot more code to parse the contents of the archive. Rather than inventing this yourself, try a freeware Zip assembly such as SharpZipLib ... ...Show All
SQL Server XML source not reading any records
The problem started off as: I have a webservice written in VB.NET that simply returns a System.Data.Dataset. I want to use the dataset in SSIS. So i decided to do this: Save the returned dataset returned by the WS to an XML file. so it is sitting there, and looks like a fully valid XML file < xml version="1.0" encoding="utf-16" > <DataSet> <xs:schema id="NewDataSet" xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> <xs:element name="NewDataSet" msdata:IsDataSet="true" msdata:UseCurrentLocale="true"> <xs:complexType> <xs:choice minOccurs="0" max ...Show All
Visual Basic round down function
is there any function can do round down. eg. 127.35 round down to 120.00 ...Show All
Windows Forms Issues exposing a DataGridView control in a User Control
Hi All, I have a DataGridView control embedded inside a User Control. I have exposed the DataGridView control to the external world by exposing a public property GridView. My issue is that when my User control client tries to access the GridView->Columns property in design time it says 'Object Reference Not Set...'. Interestingly, when i exposed the Columns property of the DataGridView Control the Columns editor opens properly but this time i get an error when i add a column. This is how the code looks. 1. Create a UserControl 2. Add a DataGridView control 3. Compile it and place the User Control on a FORM 4. Access the properties design time via the Properties window public partial class FindControl2 : ...Show All
Software Development for Windows Vista Handles/Pointers/Resources
Hi huys, hope someone can help, been stuck for a couple of days now - but after finally getting a foot forward im struck back. While writing a resourcer application to save re-compile time on lowest-denominator machines I came across problems when loading icons from files, there are lots of methods and samples on the internet to help use icons in files but all are either over complicated, only work to a certain extent or just dont help in this particular case... If i enumerate the resource types within a file and then enumerate the names of the resources I can come up with a list, or treeview containaining these details, however when trying to actually work with the resources using the given names it just doesnt seem to work out, the names ...Show All
SQL Server assigning datepart function to a datetime variable?
I am getting wrong output when assigning a datepart function to a variable. I should get 2006 but instead I get an output 1905. Below is the code and output. Any help will be greatly appreciated. Thanks DECLARE @FiscalStartCurrYear datetime SET @FiscalStartCurrentYear = DATEPART ( year , GETDATE ()) select @FiscalStartCurrYear Output ----------- 1905 - 06 - 30 00 : 00 : 00.0000 This should work: SELECT DATEADD ( year , DATEDIFF ( year , 0 , GETDATE ()), 0 ) -- Adam Machanic Pro SQL Server 2005, available now http://www..apress.com/book/bookDisplay.html bID=457 -- < Rob68@disc ...Show All
Visual Studio Express Editions how to access the parallel port?
i want to send and recieve data through parallel port i dont what class shall i use or function i need help plz Hi I am using VB Express 2005. I tried to add the reference to inpout32.dll in the first example you referenced and it tells me it is invalid assembly or COM. I assume I need this to do the port access writes in the article. Is there a new .NET version of this DLL Thnx John ...Show All
SharePoint Products and Technologies Emails sent from Workflows do not contain links to items
I am sending emails from a Workflow and am using a couple of "Current Item" fields that are supposed to be linked to the item (Title etc). However when the email arrives it has no links in it. In one of the Document Library's I used the "Type (icon linked to document)" field and all I saw in the mail was the type (doc) printed and no link to the document. Anyone know what I am doing wrong ...Show All
Windows Forms Where should I put the global variables?
Hi all, First step, I created a simple "Windows Form" Form1 project. There is Form1.h, and I have many functions like click(), paint(), buttom_down()...in it. How to pass the variables between these functions Should I use global variables or they are not recommanded For example: The program tries to get the screen size and pass into image display function I will have scr_width, scr_height, img_src_width, img_src_height, img_scr_width, img_scr_height, Bitmap^ img... What is the good way to set up them And the second step will be, I separate the buttoms and display area, should I use two Forms If so, how do I pass these variables between so many functions in two Forms Thanks! ...Show All
