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

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

Pekuja

Member List

incarcerus
Steve Jo
Fluxtah
smickell
him19010
Puntor
Faraz_Ahmed
spshah
Kim Carlsen
format1337
Nightmare_BE
Randude
BushGates
a.d.m
Bill Bassler
pogmothoin
joynerCN
hailong1977
jaime_olivares
harrier_coder
Only Title

Pekuja's Q&A profile

  • Visual Studio Tools for Office RemoveCustomization

    Hi, I want to Remove the customization of the document when the document is closed. I tryied to do this in the Shutdown event calling the RemoveCustomization method but i got an error that the file is opened. How can I remove the customization when the document is closed Regards, Juan Hi Juan, I tested this for you, and I was able to do it using the BeforeClose event: public partial class ThisDocument { private void ThisDocument_Startup(object sender, System.EventArgs e) { UserControl uc = new UserControl(); Button bt = new Button(); bt.Text = "Click Me"; uc.Controls.Add(bt); ActionsPane.Controls.Add(uc); } private void ThisDocume ...Show All

  • Visual Basic save as new project

    I want to open an existing project in vb 2005, modify it and save as a new project keeping the existing one unchanged. Is there a way of doing this. In your senerio you will have two project files in the same directory.. OriginalProjectFile.vbproj & NewProjectFile.vbproj...and both files will have the same source code files attached to them... If your intent is to make a back-up before continuing work...I would suggest coping the whole directory as mentioned above! ...Show All

  • Visual FoxPro Random Sample

    I have a table containing 3773 records, and i need a random sample of 2500 of these records. Does is there any easy way to to this w/ foxpro or do i have to come up w/ an algorithm myself Thanks in advance, Mike It's not a matter of crediting. I think neither Tamar nor me needs crediting (at least she has an enormously high credit among VFP community). I simply can't see the benefit of multiplying with reccount(). How does it give 'required' result How does it affect accuracy If you think that column values would match with the actual recno() of their source rows then you're mistaken. ...Show All

  • Software Development for Windows Vista information about application on windows vista

    Hi! i am using windows vista and i wanna know , is it posiable that SNMP in stall on vista ...Show All

  • Visual Studio Express Editions datetime trouble

    Hi! I'm using VB.NET 2005 Express Edition under Windows XP. In a clean project I write: Dim myDate As Date myData = CDate("12.05") myData = System.DateTime.Parse("12.05") both instructions return the exception: "Index was outside the bounds of the array." Source: "mscorlib" The same if I try to convert/parse a date such as "3/4/06". Thank you, Marco Trapanese / iw2nzm Umm, the only Italian I know is the Pope. Just as an experiment, try this before calling CDate(): Thread.CurrentThread.CurrentCulture = new CultureInfo("it-IT") ...Show All

  • Visual Studio Team System How do I retrieve only part of a TFS project needed to build?

    Hi, I am trying to figure out how the best way to structure my projects would be and build automation has some impact on this in my opinion. Generally I know Microsoft advises that a TFS project should hold many subprojects, so as to avoid making a new TFS project for each subproject. However, whenever I decide to create a new buildtype and configure it, it seems to make a complete checkout of the whole source tree even though I have only asked it to build 1 solution out of the 10 now present. If this is intended behaviour this scales quite poorly since the working directory is not cleaned after the build is finished and with 10 build types this renders 10 full copies of my entire source tree on the build server. So I am quite sure that I ...Show All

  • Visual Studio 2008 (Pre-release) WPF TextBox disable or handle paste

    If I'm deriving from TextBox is there any way to disable or override the default paste handling I've tried to attach handlers for the ApplicationCommands.Paste command, but I must be doing something wrong as none of them are firing. As with the pasting I attempted this but the handler does not fire. How would one best attach a handler for the undo command. Bearing in mind that it must also intercept before the textbox's default handling. ...Show All

  • SQL Server Where is DataDirectory ?

    Hello, I see that one of the new features of SSEv is DataDirectory support. Where is DataDirectory pointing to Is it the same directory as the program ".exe" file Thank you Tom Hi, | DataDirectory | (enclosed in pipe symbols) is a substitution string that indicates the path to the database. It eliminates the need to hard-code the full path which leads to several problems as the full path to the database could be serialized in different places. DataDirectory also makes it easy to share a project and also to deploy an application . For example, instead of having the following connection string: "Data Source= c:\program files\MyApp\Mydb.sdf" ...Show All

  • Visual Basic Cross-thread exception

    Hi, I'm writing a small server application (and a client ofcourse) using an asynchronous socket listener. Since it uses different threads, I can't directly call for controls on my form. But I can't solve the problem myself. Maybe someone else can hopefully help me with this. I have a socket listener class clsListener, and when the listener sends a connectionrequest, it should add a new row to a datagrid. Here's the sub I use for that: Private Sub writeOutput() Dim row As New DataGridViewRow row.Height = 16 ' all code for adding cells to the row ' after that, it should add the row to the datagrid dgOutput.Rows. Add (row) ' dgOutput is the datagrid I can`t access row.Dispose() row = Nothing End Sub When I don't use &quo ...Show All

  • SQL Server People with same last name causing problems (Adam you there)

    I run a report which displays transcripts for members. One page per person with their name, courses they've took, date of the course and their score. The problem I am having is when the report runs and comes across the same last name for many people (say, Hanna and Billy Alexander), it's only giving me the first "Alexander" it comes across and it is putting all the information for the other "Alexander's" in that first transcript. How do I separate out the people who's last name is the same say "Smith" or Jones" I have a distinct clause on my query and when I run it I can see the other people with the same last name and their unique courses and scores (each of them have a unique member ID) - it's w ...Show All

  • SQL Server SQL Server 2005 Enterprise Edition - Extract database's info

    I've got a MS SQL server setup which now has a lot of databases. Since there is multiple users using the server no one realy has a clue which databases which is still in use and which that is just sitting around doing nothing. The server is now about to run out of disc space and I've got to do something about it. What I'm now attempting is to create a list of the databases, combined with the path to where on the disc the database is actually stored and where the backup is beeing placed. So does anyone know how to extract this information in a simple way without having to go into the properties of each database Hi Epimetheus, To get the backup information, you'd have to know where your backups are be ...Show All

  • Visual C# How get Graphics object a Panel

    Hi all, I am finding the way to draw an image on a panel. I have tried out the method that puts the drawing task inside overried onPaint() method and call invalidate(). However, my application need to do custom drawing depending on very different cases. Hence, forcing all drawing command in one method onPaint() is not flexible. I want to get the Graphics object of a panel ( as a member variable of a class) and then I can draw on it anywhere I want. I tried to get g=Graphics.FromHdc(myPanel.Handle) but there was an error saying myPanel.Handle value is out of range. I guess this is because panel's handle had not created. Would anyone please give me some example and hint on this issue Thank a lot! Regards, Stefen Huynh ...Show All

  • SQL Server bit field---

    HI, while saving in bit field sometimes it is saved as true or false. sometimes it is saved as 0 or 1. how to make it true or false when i needed. if i set default value to 0 will it save 1 or 0 always. with default 0 i need to store truee or false. how it is possible this way. thanks venp--- Hi, 00 True False 01 True False 02 True False 210 True False 220 True False 250 True False 03 False False   the above values i copied from table.  true ,false fields are bit datatype.   venp-- ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. RenderTarget2D and MipMaps

    How to "enable" automatic mipmap generation in RenderTarget2D i don't know why but it don't work m_DrawBufferColor = new RenderTarget2D(m_GraphicsDevice, 1024, 1024, 4, SurfaceFormat.Color, MultiSampleType.None, 0); m_Game.GraphicsDevice.SetRenderTarget(0, m_DrawBufferColor); //here i render m_GraphicsDevice.ResolveRenderTarget(0); m_GraphicsDevice.SetRenderTarget(0, null); //now i use it Texture2D Tex = m_DrawBufferColor.GetTexture(); m_HDREffect.Parameters["DiffuseTexture"].SetValue(Tex); //part of fx file Out = tex2Dbias(DiffuseSampler, float4(In.TexCoord.xy, 0, 3)); and i get some thing that looks like like random (texture on this mip level is some random memory) //------ ...Show All

  • .NET Development Why choose SHA512 over SHA1

    Hi, I need to create some hash values on some large files (say > 100MB) to make sure contents has not been changed. A little test showed me that creating a hash using SHA512 takes approx. 6 times longer that using SHA1. I assume that SHA512 is more secure that SHA1 :-) - but will this also imply that SHA512 will "discover" changes in files that SHA1 will not Kr. Soren If you only need the hash function to detect that a file has changed (the common case you want to check that a file was downloaded corectly from somewhere) then the security of the used hash function is not relevant. You can use MD5 as well for this type of task. The security of the has function comes in to pla ...Show All

©2008 Software Development Network