Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
S

samithas

@samithas
About
Posts
19
Topics
15
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • javascript problem
    S samithas

    I want to create a javascript tha achoieves the fullowing functions 1. when page loads it shows images from random locations 2. Whenever the user click the mouse anywhere on the browser the images should be hidden 3. After some time duration diaplay the images again here is my code <!-- Cupid=new Image(); loaded =true; Cupid.src="bat.gif"; //specify path to bat image amount=3; //Number of cupids, minimum must be 3. Xpos=700; //cupids x coordinates, in pixel Ypos=200; //cupids y coordinates, in pixel step=0.3; //Animation speed (smaller is slower) dismissafter=15; //seconds after which Cupids should disappear, in seconds yBase=xBase=currStep=a_count=0; flycupid=0; b_count=1; c_count=2; d_count=3; move=1; var ns6=document.getElementById&&!document.all bats=new Array(3) if (document.layers){ //alert('start in if1'); for (i=0; i < amount; i++) { document.write("<LAYER NAME=n"+i+" LEFT=0 TOP=-50><a href='http://www.dynamicdrive.com'><IMG SRC='"+Cupid.src+"' NAME='nsi' width=69 height=60 border=0></a></LAYER>")} } else if (document.all||ns6) { document.write('<div id="out" style="position:absolute;top:0;left:0"><div id="in" style="position:relative">'); for (i=0; i < amount; i++) { if (document.all) { document.write('<a href="http://www.dynamicdrive.com"><img src="'+Cupid.src+'" id="msieBats" style="position:absolute;top:-50;left:0" border=0></a>') //alert('start in if2'); } else document.write('<a href="http://www.dynamicdrive.com"><img src="'+Cupid.src+'" id="ns6Bats'+i+'" width=69 height=60 style="position:absolute;top:-50;left:0" border=0></a>') } document.write('</div></div>'); } if (document.layers||ns6) { //alert('start in if3'); yBase=window.innerHeight/3; xBase=window.innerWidth/6; if (document.layers) window.captureEvents(Event.MOUSEMOVE); } if (document.all) { yBase = window.document.body.offsetHeight/3; xBase = window.document.body.offsetWidth/6; } if (document.layers) { for (i=0; i < amount; i++) document.layers['n'+i].document.images['nsi'].src=Cupid.src } else if (document.all) { for (i=0; i < amount; i++) { document.all.msieBats[i].src=Cupid.src //alert('start in if6'); } } else if (ns6) { for (i=0; i < amount; i++) document.getElementById("ns6Bats"+i).src=Cupid.src } function dismisscupid() { clearInte</x-turndown>

    Web Development javascript com data-structures performance help

  • enabling log4net
    S samithas

    I'm getting the following messages log4net:ERROR No appender named [LogFileAppender] could be found. log4net: Appender named [LogFileAppender] not found. log4net:ERROR No appenders could be found for category (Com.SriLogic.Qsurv.QBuilder.Gui.MainForm). log4net:ERROR Please initialize the log4net system properly. here is the config file /**/ /**/ how can I fix this? samitha

    C# help debugging question

  • enabling log4net
    S samithas

    I'm using log4net in my app to print debugging information. I have added code as follows static QuestionGroup() { log = log4net.LogManager.GetLogger(typeof(QuestionGroup)); isDebugEnabled = log.IsDebugEnabled; isInfoEnabled = log.IsInfoEnabled; } public QuestionGroup() { questionGroupId="questionGroup"+questionGroupCreated++; heading="Place your heading here"; subHeading="Place your subheading here"; position=-1; this.questionList=new ArrayList(); if(isDebugEnabled) { log.Debug("QuestionGroup created with id :"+questionGroupId); } } but in the output window it give the error log4net:ERROR No appender named [LogFileAppender] could be found. how can I fix it samitha

    C# help debugging question

  • connecting to MS ACCESS in PHP
    S samithas

    I want to connect to MS ACCESS and rerieve records in a table using PHP. How can I achieve this? samitha

    Web Development question php

  • applying splitter resizing on tab pages
    S samithas

    I have added 3 tab pages to a form. On each tab page the same user control has been added. On the control there is a left docked treeview and a right docked text boxes. I have added a splitter between these controls so that I'm able to change the size of the treeview. Once I change the size of the treeview in one tab the splitter should be located accordingly in the other tab pages as well so that I don't need to resize it. How can I achieve this?:zzz: samitha

    C# question

  • Armature Programming
    S samithas

    ops sorry 4 the printing mistake..it should be Amateur Programming samitha

    IT & Infrastructure question

  • Armature Programming
    S samithas

    could anybody describe what's meant by Armature Programming?:doh: samitha

    IT & Infrastructure question

  • dynamically adding tabpages to a tabcontrol
    S samithas

    as you have mentioned I have put my code as follows //this method is called from the main windows form public void AddNewTabPage() { if(tabReportPages==null) { this.InitializeComponent(); } System.Windows.Forms.TabPage tabPage1 = new System.Windows.Forms.TabPage("test"); // // tabPage1 // tabPage1.Location = new System.Drawing.Point(4, 22); tabPage1.Name = "tabPage1"; tabPage1.Size = new System.Drawing.Size(536, 310); tabPage1.TabIndex = 0; this.tabReportPages.TabPages.Add(tabPage1); //....continues for the othe tab pages tabPage1.Show(); tabPage1.BringToFront(); tabPage2.Show(); //..continues for the other tab pages } but any of the tab pages are not showing..why is that?(the tab control is added to a user control) samitha

    C# question

  • dynamically adding tabpages to a tabcontrol
    S samithas

    I want to add tabpages to a tab control at runtime. And I should be able to specify those tabpages' names at runtime as well.HOw can I achive this? samitha

    C# question

  • local VCS in .net IDE
    S samithas

    does the visual studio .NET IDE provide a local VCS system ? ( simlar to that found in like in Intelij idea [tools > local VCS])..Is there way to enable CVS found in File>Source control...? samitha

    C# csharp visual-studio tools question

  • LinkLabel (c#)
    S samithas

    I want to add a Link label to a form ,and when a user clicks on it the browser opens and navigate to that link in the .net help the follwing code has been given protected void LinkLabel1_LinkClicked(object sender, System.EventArgs e) { // Change the color of the link text by setting LinkVisited // to True. linkLabel1.LinkVisited = true; // Call the Process.Start method to open the default browser // with a URL: System.Diagnostics.Process.Start("http://www.Microsoft.com"); } but it didn't work bcos the app enters to the debug mode..any suggestions?:confused: samitha

    C# csharp com debugging help question

  • spitter problem
    S samithas

    i hav a problem using the splitter.I hav tried to use it with panels and the splitting doesn't occur properly..For the form I added 3 panels. A base panel, a top panel and a bottom panel. i want to add a splitter between the top and bottom panels so that when u click and drag the panels should resize. How can I achieve this? samitha

    C# question help

  • supporting localization
    S samithas

    what's the easiest way to enable the localization support to your form so that u can select the language u want from the menu and all the buttons texts and numerics change to the specidied language. do u have do create seperate forms for each of the language u support? samitha

    C# question

  • capturing the modifications in a datagrid
    S samithas

    thnks 4 the reply...My actual requiremnt is this.. Suppiose u have a datagrid with only one row has been entred. When you click on the close button on the form(without giving the focus on any other control) it should check whether the row has a value. This ckeck happens correctly when u click else where on the form or on the next row and then try to close.. can anybody help me...? samitha

    C# question

  • capturing the modifications in a datagrid
    S samithas

    I want to check whether the content in a datagrid cell has been changed or not... how can u achieve this? samitha

    C# question

  • associate sounds with buttons
    S samithas

    I have a form layed out in Visual Studio .NET Professional, and I have 30 buttons layed out, I have sound files on the hard drive, and I would like to associate those sounds with those buttons. So when the Sounds.exe is run, and I press the first button then the sound is automatically played. Is there a way to link the sound to the button? And also when I build the .exe file is the sound file added to the .exe file? I am all new to this, and have created some code from a webpage that talked about embedding sounds, so I used the code as you see below : Class SoundButton Inherits Button 'API call for playing sounds in memory Private Declare Function PlaySound Lib "winmm.dll" (ByVal data() As Byte, _ ByVal hMod As IntPtr, ByVal hwFlags As Integer) As Integer Private Const SND_ASYNC As Integer = &H1 'Play asynchronously Private Const SND_MEMORY As Integer = &H4 'Play wav in memory 'The .wav will be stored in this byte array Private Shared ClickSound As Byte() Shared Sub New() 'Get running assembly name Dim NameSpc As String = _ Reflection.Assembly.GetExecutingAssembly().GetName().Name.ToString() 'Look for the button click sound in the resource stream. 'This example has a resource called hello1.wav Dim WavStrm As IO.Stream = _ Reflection.Assembly.GetExecutingAssembly().GetManifestResourceStream( _ NameSpc + "." + "hello1.wav") 'ReDim the byte array to be the size of the embedded .wav ReDim ClickSound(CType(WavStrm.Length, Integer)) 'Load the .wav from the stream into the byte array WavStrm.Read(ClickSound, 0, Int(CType(WavStrm.Length, Integer))) End Sub 'Override the OnClick event to play the sound Protected Overrides Sub OnClick(ByVal ea As EventArgs) Call PlayWav(ClickSound) MyBase.OnClick(ea) End Sub 'Play embedded .wav resource Public Sub PlayWav(ByVal WavResource As Byte()) PlaySound(WavResource, IntPtr.Zero, SND_ASYNC Or SND_MEMORY) End Sub End Class The hello1.wav file is the file I wanted to play when i ran the app. If you want to see my source code you can get it here : h**p://home.pacific.net.au/~jf3000/sounds.zip Id appreciate any help at all on this, and just let me know how to get the first button going so I know where to take it from there. You will have to tell me in the most earliest of beginners terms, cos im still trying to understand something ive only just started. Someone mentioned in a forum to play a sound use this : PlaySound() but that lost me. samitha

    Visual Basic csharp tutorial visual-studio hardware data-structures

  • how to clear only few rows from a datagrid
    S samithas

    :-O i have created 2 datagrids. The upper one displays the currently available values and the lower one allows entering new avalues... When u enter a vale to the lower grid and click on a button(Add) the selected value (s) should be added. If one entered a valid row and another row with missing fields only the valid row should be added and the invalid row should be remained (displayed).How can I achive this?. samitha

    C# question css tutorial

  • adding a Menu bar log
    S samithas

    I want to add a logo to the top right of the menu bar (as in IE). How can I achieve this>...pls help:(( samitha

    C# help question

  • connecting user controls in c sharp
    S samithas

    I have created a smalll prototype like Ms visio. In my program i can add controls(rectangle, ellipse,..) to the panel and move them with mouse. But the problem is connecting them with lines so that the objects and lines should move together. Can anybody help me... :confused: samitha

    C# help csharp winforms
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups