Software Development Network Logo
  • Visual C++
  • Visual Basic
  • VS Team System
  • Visual C#
  • Windows Vista
  • SQL Server
  • Audio and Video
  • Visual FoxPro
  • Game Technologies
  • IE Development
  • SharePoint Products
  • Windows Forms
  • Microsoft ISV
  • Visual Studio
  • Smart Devicet

Software Development Network >> FabMark's Q&A profile

FabMark

Member List

neogortex
Ramses2
rogupta
Josh Smith
caveman1
marco.ragogna
JM_F
Leomath
Yeago
CJira
inzel
Steadyonabix
LamptonWorm
kehsiao
Davids Learning
DanDro
WineNCheese
winstonSmith
Layne Teske
GROTH
Only Title

FabMark's Q&A profile

  • Smart Device Development Drawing in a Pocket PC Picture Box

    Hi! I have a Picture Box in a Pocket PC application and I don't know how to draw images in it since there isn't any Picture Box Paint event. How should I do it Thanks! PictureBox is used to display a picture - you can either associate one at the design time or set one at runtime using PictureBox.Image property. e.g. below byte [] buffer = {}; // read bytes System.IO. MemoryStream stream = new System.IO. MemoryStream (buffer); Bitmap bitMap = new Bitmap (stream); pictureBox1.Image = bitMap; Manav ...Show All

  • SQL Server sql 2005 Transaction log size

    We have a database that is backed up every night (full backup). The database size is around 5GB and the transaciton log is about 3GB. And it's 3GB after the backup too. I thought the log size should shrink after each full backup. I can't imagine what data the log needs to maintain after a full backup is complete. What can be done about this large transaction log TIA, barkindog i simply right click the db, all tasks, shrink, shrink file, log file. it went from 500mg to < 1mb. not sure why it wroked for me and not others. ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. fx Shader files do not support more than 1 technique?

    I found some strange bug in the Effect class (I think), maybe this was mentioned before, but I couldn't find any information on this. I wrote some simple shaders for line rendering (see more details and fx source code on my blog). If I put each technique in a own file, I can access the shader technique passes with: effect.Techniques[0].Passes But if I put 2 techniques into 1 fx file only the first one works. If I access the second one either by calling effect.Technique[1] or effect.Technique["NameOfTechnique .."] it still accesses the first technique. I'm pretty sure this is not a user error on my side because if I have only 1 pass in technique 1 and 2 passes in technique 2, the app crashes if I try to access the 2nd pass in the ...Show All

  • Visual C++ Managed array of pointers to elements in another managed array

    Hello, I have some problems using arrays (system.array) in managed code. I have a two-dimensional array available and I would like to sort the values in this array by making a second, jagged array of pointers to the elements in the first array. However, there are some problems: the first array is of course declared on the managed heap. Pointers to elements in that array can change as the CLR rearranges the heap. The solution to this is could be an interior_ptr (which makes sure the pointer is updated when the heap is rearranged) or a pin_ptr (which makes sure the 'pointed' part of the heap isn't rearranged). The problem is that both pointers are only declared on the local stack: it is not allowed to form an array of pin_ptr or inter ...Show All

  • Visual Studio 2008 (Pre-release) ScaleTransform a Visual to create reflection effect

    Hi I'm trying to apply a visual to a border to make it reflect the content above it, the problem here is that I need to set the CenterX and CenterY to be half the size of the visual. Now the values are hardcoded, you can see what I have below. Is it possible to do this with XAML < Style x:Key = " brdAdorner1PgProductFilter " TargetType = " {x:Type Border} " > < Setter Property = " Grid.Row " Value = " 4 " /> < Setter Property = " Grid.Column " Value = " 1 " /> < Setter Property = " VerticalAlignment " Value = " Top " /> < Setter Property = " Width " Value = " {Binding ElementName=grdVisu ...Show All

  • Visual C# Creating a solution without creating a directory

    I've looked around for a workaround to this - but when you create a new blank solution in my current configuration of VS 2005, I cannot create it without the solution being placed under a directory of the same name. The checkbox to avoid this operation is disabled . I'm really annoyed by this and I'm tired to moving .sln files out of the directory and deleting it - does anyone know how to tweak this Andy Hi, The checkbox is only valid if you create a new project. When creating a new project, you can specify if the solution must be in a higher directory. There is no real way to create a solution without creating a folder. Greetz, Geert Geert Verhoeven Consultant @ Ausy Belgium ...Show All

  • SQL Server How to move Log Ship monitor to a new SQL2K server

    Scenario: Old SQL server - which currently serves as monitor for ~ 100 Logship jobs needs to be dismantled - the monitoring function should be absorbed by another new SQL server. If anybody has accomplished this successfully and would like to share - I am all ears :) Log shipping monitor will be installed on the new server only when you run through the log shipping wizard to setup on the new server, it is not a seperate component you can take it as a script. ...Show All

  • SQL Server Auto Primary Key with fill in

    I want a table to have an int auto primary key, that will fill in deleted rows. EG 1 2 4 5 8 The next primary key should be 3 (NOT 9) This table changes often, so just adding 1 to the last number used, will fast run out of numbers. The table is accessed by many users, so it can not be manually generated. That changes existing data. but can be expanded upon, to use a multi sql statement to defrag a database. but then how to reset the auto number to the next number. So far the only way, i can do what i want, is one of two ways 1. Run all sql through a service, that can sync me a new auto fill in number. 2. Have unacceptable down time, and run a program to defrag the tables. ...Show All

  • Smart Device Development ActivateService sometimes fail

    Hi, I've developed a service component that runs under Services.exe. I also have a user interface to control the service. To start the Service I write the necessary information to the key HKLM\Services\MyService and call ActivateService (ActivateService(TEXT("MyService"), 0)). This works fine for most of the time but occationally it fails with the result code 87(ERROR_INVALID_PARAMETER). I flushed the registry just before the call to ActivateService but that made no difference. I set the Flags registry value to DEVFLAGS_LOADLIBRARY but still no success. What's going on here I fails approximately one time of twenty. DeregisterService on the other hand never fails. I can't find any information about this, but surely I can't be t ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Shader Newbie question - Jagged (sharp) edges

    I'm working on a custom shader for a game and I'm really happy with the results except the edges of my object when drawn are jagged, and I was wondering about the best (preferred)way to antialias or smooth them out. Do I need to write a postprocessing shader or is there a way to do this in the vertex or pixel shader Thanks, Bill Hardware multisampling will generally give you much better performance than trying to fake this yourself by rendering to a texture and then manually shrinking it down. GPU's (and especially Xbox) have all sorts of crazy silicon dedicated to making multisampling fast. ...Show All

  • Windows Forms How can I set a label background color with transparency?

    Hi, I would like to know if any possible ways to set the lable background color with transparency Like we set the opacity value for the form. I check the documentation to say that we can set this.lable.backColor = System.Drawing.Color.Transparent; Transparent; However, following this way, the whole label will be invisible in the form. Thanks for your help. Sorry about the bad description. Let me make it easy. Is it possible for users to set lable opacity value Hope this is clearer. Thanks. ...Show All

  • SQL Server Best Practice for Ranking

    Looking for advise or best practice for ranking of top 10 companies (out of 100s) for aggregates on a shipping comparitive value (tonnage). Would like to make each of the top 10 companies a column with values broken down by region (rows). I also need a column for a single chosen company (not necessarily top 10), and another column for that company's percentage of market share. I'd like to utilize our data cube in a matrix, but can't solve how to add the last two columns above. We have the option of using the cube or the transactional db. Any advice is helpful, thanks. One option would be to use the sort number 1-10 as your grouping key and have your report dataset based on a union of the 1-10 dataset, the 11 extra column dataset, ...Show All

  • Visual Studio Express Editions Modifying Public Variables

    I've been searching for this all evening, and can't find it. I have an application (project) with several forms. I use one form to gather inputs from the user, and am trying to place them into another form. (My central "repository" for the public forms) I then reference those public variables using my report form. Here's the problem. When the first form (the inventory gathering form) obtains the data, it does not write to the public variables located in the second form. I have it set up so that the repository has a public class, and the variables are all declared as public. (public XYZ as integer for example) In the other forms, I declare the variables local (dim) with the local name and set them equal to the publi ...Show All

  • Visual Studio 2008 (Pre-release) Custom credentials

    Hi! I'm working on a small project and I'm using WCF for the first time but ran in to some problems. My server app runs as a service on a Win2003 server, currently the configuration and code for the server app looks like this: < system.serviceModel > < bindings > < netTcpBinding > < binding name = " NewBinding0 " > </ binding > </ netTcpBinding > </ bindings > < services > < service name = " IBOL.PowerClass " > < endpoint address = " net.tcp://localhost:5555/PowerClass " binding = " netTcpBinding " bindingConfiguration = " NewBinding0 " contract = " IFace.IPowerClass " > </ endpoint > </ service ...Show All

  • SQL Server Data Transfer from SQL200o to SQL2005

    I need to transfer data from SQL Server 2000 to SQL Server 2005 nightly. Replication DB1.T1 table in SQL 2000 to DB2.T1 table (the same table structure) in SQL 2005. What are my options I need to extract a daily data and do this daily. Some example would be greatly appreciated. Thanks, You can create a linked server with sp_addlinkedserver and then issue a simple insert statement like this: exec sp_addlinkedserver MyRemotePC insert into MyRemotePC.DataBase.dbo.Mytable select bla bla bla from dbo.Mytable where << records are newly created >> To do the night job you can use enterprise manager to schedule a stored proc that nightly executes the job. ...Show All

©2008 Software Development Network