zeljko62's Q&A profile
Visual Studio 2008 (Pre-release) GridView CellTemplate
Hello, I just started using GridView today, it is pretty cool. I have a question about the cellTemplate property of GridViewColumn class. I want to style the content of a cell (fontsize, etc.) so I use cellTemplate (I'm not sure if this is correct ). So I need to define my binding in the cellTemplate's value (a datatemplate resource). But then I would have to define a cellTemplate for each column. Is there a better way to approach this problem, so that I have one style for all my cells regardless of which column the cell belongs to Thanks Houman I think Lee's suggestion solves my immediate problem. Thank you all for responding! Houman ...Show All
Smart Device Development Traffic on GSM Modem
Dear All, I am developing an application using GSM modem I have around 50 messages limitonto my SIM card of Modem. Time when I am receiving the SMS I have to delete it using AT commands through C#.NET, Similarily I did when I had very less traffic , But Now I am getting numerous messages and the time when I am deleting the messages I am getting more messages still to come and it goes on increasing and my process of reading data gets slow... I want to get the messages directly to my PC hard disk instead of getting it on SIM card .As soon as new message comes in to GSM modem I would be able to redorect message to my hard disk So that , I would be able to handle large amount of Messages on my Machine Regards ...Show All
Audio and Video Development When is ready picture in pixelbuffer
Is it posible to check for a moment, when the picture is loaded to the pixel buffer and when can i start animation in script At the moment i am using a timer and for a short time waiting, but this is not an exact method. Hi Clinic, Take a look at 7.2.4 in the spec - Application Lifecycle. This describes the order of operations for processing an advanced application. Thanks, --Rankin ...Show All
SQL Server Package structure in SSIS
Hi I have been working with DTC packages together with analysis service, and are now begining on SSIS. But I have some demands that's been giving me headache before, so I hope there's a solution in the SSIS for the following. My DTC packages was build to be executed i 5 steps/Packages 1. Transfeer data from my Oracle 9.2.0.4 to SQL 2000 2. Transform data 3. Quality check 4. Process dimension 5. Process cubes BUT in 2005, I want a little more flexibilty. I want to execute smaller packages, let's say, only my "general ledger". This way I will be able to update some of my important cubes quicker. And not wait until all data is transferred . So what I have done until now is that I have cre ...Show All
Windows Forms [c#]datagridviewcells value before insert in db
Hi again. On unbound datagridview on a form made with designer, i put some values in cells and with a command button this values are stored in database. Now, how can i control before the insert, if some values already are stored in the database For ex.: my values in cells are: row[0]: 1 5 7 i need to control before insert that in the table of db, at relative column and row, that values are already stored and so, i need to prevent user to create a new row in database. I cant bind datagridview with table before insert because i need to set the rowcount property of datagridview, which is not possible with bound dgv. Is it possible Thx a lot. Hi :) I've already the h ...Show All
.NET Development Classes that reference eachother
I'm creating a music organization application. I have tracks and playlists and I want to be able to access the playlists from each track and I want to be able to access tracks from the playlists. So each class needs to reference the other. Anybody have an example on how I should do this I want to make sure I do it right from the beginning. Thanks JGA Store the Track objects in a collection member of a Playlist (like List<Track>). Have the Track constructor take a Playlist reference that you then store in a private member. That way, you can always find the Playlist back that the track belongs to. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Build speed with many projects
I've been working on my first large XNA project and am finding that building my projects takes forever. I have both my Windows and 360 projects in the same solution, and there are 5-6 projects each. Normal setups like this in Visual Studio are a incredibly quick to build on average, but with GSE I notice that it seems to be invoking MSBuild for every project regardless of the solution configuration or dirty state. For example, if I have platform set to x86, my build output window still scrolls the 360 projects, each one taking 1-2 seconds to find out it's not set to build. Worse yet, it does this for every project, every time I build, even if I just made a one line change in an assembly with no dependencies; builds take 25-30 seconds! M ...Show All
Visual Basic Strange vb temp file problem
Hi there Has anyone ever encountered vb6 creating temp files when the user navigates through a program A friend of mine is boggled by her vb6 app that mysteriously creates lots of tmp files as people uses the program. This has caused the server to create thousands of these tmp files, which are all empty. I have no idea what could be causing this especially since there is no explicit file handling in the code of the app. Any ideass Mike Hi there, Are u sure the VB6 program is creating those files.. Try using the file monitor tool from Sysinternals and see which program exactly has the file opened.. I suspect a malware!!!! ...Show All
Windows Forms WebBrowser and BindToMoniker
Hi, Recently, We've begun upgrading certain components of our project. One of those components was the ActiveX Web-Browsing control who was dumped in favor of the native .NET version of System.Windows.Forms.WebBrowser. This version, however, Does not seem to expose the document as an object, as its ActiveX version did. We use those controls to display Word documents as hosted in the web-browser itself. For this reason, We need access to the document object. To get around this problem, I was using BindToMoniker with the navigated file\url to get Word's document back again ( DownloadComplete event with the AX browser, DocumentComplete event with the new browser). This, However, Seems to not always be successful. Quite often BindToMo ...Show All
Visual Studio Tools for Office Unable to cast object of type 'System.__ComObject' to type 'Microsoft.Office.Interop.Outlook.ApplicationClass'.
Hi, I am trying to create an add-in for Outlook 2003, using VS2005, C#2.0, O2003PIA and VSTO. Outlook SP2 is installed. I have created an Outlook add-in project, but get a cast exception when I am trying to create the application object - which I need to be able to add a button in UI. I have been searching forever, but the only thing I find are people having trouble accessing AppointmentItems etc. Nobody seems to have troubles creating the Outlook application object. Does anyone have any ideas on how to solve this The code and exception is below. Thanks in advance! Anders To help clarify the previous responses - From the ThisAddIn class in your code, it appears that you are indeed using a VSTO 2005 SE add-in projec ...Show All
Microsoft ISV Community Center Forums MS Office document and image writer print driver
Besides removing this feature from Office during setup, is there a process to remove this virtual printer from 300 users with roaming profiles on an active directory network We are having an issue with this printer assuming the "default printer" selection for our users. As a work around we have changed their default printer, but after they reboot or log off / on it has defaulted back to the MS Ofc doc and image writer printer. Microsoft recommendation to solve the issue is: Rename MDIMON.DLL Remove OFFICE DOCUMENT IMAGING Restart Install OFFICE DOCUMENT IMAGING Restart But nothing happened Any farther suggestion ...Show All
Windows Forms How to put contents to two fields into one TextBox?
Hello, I've just started creating my first windows app. using Visual Studio Express and have added a SQL Server Express DB, created the DataSet, added TableAdaptors, DataBindingSources, etc, etc. I've managed to create a master/details style form by dragging and dropping objects from the DataSet - much easier then coding it all by hand! Now I'm stuck... I have a DataGridView containing a four columns from each row in the BindingSource; when the users selects an item in the list the Details form is populated with all the columns for the row - with each column in it's own TextBox. I want to combine the content of some fields and place them in a single TextBox - for example I have columns called 'FirstName' and 'LastName' which I wou ...Show All
Internet Explorer Development BHO works in IE6 but not IE7
Hi, I have a BHO that is written in VB. The BHO works in IE6 but not IE7. The place it fails in IE7 is that it does not perform the Navigate2 method correctly. I tried changing the 2nd parameter in Navigate2 to different values according to MSDN documentation. It yield different results. Thus, I know Navigate2 is actually being executed but not correctly. Can someone spot where the problem is Thanks. Private Sub m_ie_BeforeNavigate2(ByVal pDisp As Object, url, flags, TargetFrameName, PostData, Headers, Cancel As Boolean) If someConidtionIsTrue Then m_ie.Navigate2 "xxx.jsp", 0, "aFrame", Null, Null End If End Sub Thanks for your reply. I can send you the complete VB program if i ...Show All
SQL Server BULK INSERT /BCP with UDT
Dear all, I tried to do BULK INSERT / BCP of a table with a UDT column there. The data file looks like this: (Tab, \n, second column is the UDT column) 9556987 C,C,0.84 4974588 9845355 C,C,0.84 4974588 9556988 A,C,0.82 4974589 9845356 A,C,0.82 4974589 9556989 A,T,0.90 4974590 This is the SQL: BULK INSERT dbo.TEST FROM 'E:\My Documents\Visual Studio 2005\Projects\Genotype\Genotype_UDT\BULK_in1.txt' WITH ( KEEPIDENTITY, KEEPNULLS, ROWS_PER_BATCH = 5, TABLOCK ) This is the error msg: Msg 4864, Level 16, State 1, Line 1 Bulk load data conversion error (type mismatch or invalid character for the specified codepage) for row 1, column 2 (GENOTYPE). My UDT works fine if I do this: INSERT INTO TEST VALUES('A,A,0.1101', 'Wh ...Show All
Software Development for Windows Vista Wrong font printing with XPS document on specific printer...
Thanks for reading, We have an application that takes in a XPS file and allows a user to create a new XPS file (based on the original), along with any changes/updates he wishes to make. The newly generated file displays correctly on screen. The newly generated file also prints correctly through the XPS viewer. The problem occurs though when I print to the office Kyocera FS-3750 printer through our application. One of the pages prints the wingdings font instead of the font on screen. When I print to another printer, or 'print to file' on many other drivers the document is OK. We have been through the print driver and checked all settings: True Type Font: Download as Softfont etc, but we are at a loss as to why this happens. I can email the ...Show All
