Topics
-
-
- Administrators
- 1 reply
- 897 views
hey there i want to use the combobox.text property in the where clause but it is not working. where is working if i use it inth form of OracleDataAdapter da = new OracleDataAdapter("select * from int_try where field_name = 12(or any value) ","user id=****;data source=;password=*****"); if i pass 12 in the combox, .net is not taking it. please suggest some solution...
Last reply by PlausiblyDamp, -
-
-
- Administrators
- 3 replies
- 2.6k views
Hi, Please someone help me about Resources, Settings and XML. The point is how should I read/write a configuration file quickly and easily? I currrently used, DataSet.ReadXml(<path>) and i get/set the values i need, but this is not very heavy and memory consumer? Settings files, are great, easy to use by name, etc... but i'm having serious problems in writting values there, i load my form, i read the values and when i close it, i wannted to save the current values to settings file, but the values aren't assumed correctly. I saw a lot of examples using XMLReader and iterate through the nodes to get/set the values. I hope someone can help me about good progr…
Last reply by PlausiblyDamp, -
-
-
- Administrators
- 1 reply
- 911 views
Hi! I have this problem I create a web service with a function that take some result from a db, this result must be insered (Return of my function) in a structure, to create this result: <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi= "http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd= "http://www.w3.org/2001/XMLSchema" xmlns:soap= "http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <SERVS1Response xmlns="http://www.contoso.com/Response"> <SERVS1Result> <NumeroComm>int</NumeroComm> <Comm> <SComm> <Nome>string</Nome> …
Last reply by PlausiblyDamp, -
-
- 2 replies
- 948 views
I have a datagridview object binded to a database. I'm adding a new DataGridViewComboBoxColumn to it (from design view or code view, doesn't matter) and when I run the application everything seems to be ok, but I CAN"T CHECK THE Check boxes. It's very strange. The column is NOT read only. Any help appreciated
Last reply by IUnknown, -
- 3 replies
- 1k views
Hello, I'm just starting with SQL. So far I've installed SQL Server Express and SQL Server Management Studio Express. I have also managed to start a server and create a table called "table1" there. On the table I have two columns and two entries(rows). Could someone please give me a simple sample code for reading the cell values from my "table1" and for adding a new row. I also appreciate links for good tutorials for beginners in SQL Server Express. PS: I'm using Visual Basic 2005 Express.
Last reply by IUnknown, -
- 1 reply
- 981 views
This is a bit of a longshot but there may be a way. I'm investigating creating msi installations for some software we have that doesn't already have an msi file. The aim is to have silent installs for all of the programs we have. I was wondering if instead of creating an msi file why can't I just create a program that waits for prompts to appear and auto fills them or hits ok or whatever. I guess the hardest parts would be to identify what action to do and when from the forms that appear during the setup process. If these had something unique that I can read and then react to I could possibly do this. The other stummbling block would be performing the action on the …
Last reply by Denaes, -
- 0 replies
- 1.5k views
hello all, I 've got a question about sending data form child window which is opened by a parent window can send data into a textbox.. or how can I invoke a method (function) from child written in parent page? is there any way to do this with atlas? thank you
Last reply by mccrash, -
- 0 replies
- 1.1k views
Hi, I am unable to check DB.Null value from Formula Editor in Crystal reports .Net. If the column value is NULL then display "Some text" else "Column Value". Database is SQLServer 2000. Thanks Imran
Last reply by imranIBM, -
- 1 reply
- 2k views
I'm getting an error while trying to load some data that includes a binary field into a database. Doing a INSERT INTO works fine, but doing a BULK LOAD doesn't. How could I fix this problem? Do I have to specify any additional information in the BULK INSERT command? Command: File Contents: (temp.txt) The binary field is the final field (col 2) Error Message: Thanks for the help. Edit: btw, i'm using SQL Server 2005 Express
Last reply by decrypt, -
- 0 replies
- 1.2k views
How do I get hidden data from another form? I am using LinkPoint Connect for credit card processing. I have 3 hidden inputs that are required when I call LinkPoint Connect. In their documentation they say "You can add custom fields to LinkPoint Connect. This allows you to pass your own custom data to us whenever an order is place, and we will post it back to your server. You can then collect and analyze the data however you please." How do I get to the data when it is posted back to my server? Can someone show me the actual code? Is it done in my codebehind or in the html page? I'm really stuck. If this isn't the right forum, please direct me to where I …
Last reply by ryan1107, -
-
- Administrators
- 1 reply
- 3.6k views
I am using the code below to play my background music Midi (.mid) files (for little game) and I ran into a problem I can't seem to figue out... [DllImport("winmm.dll", EntryPoint="mciSendStringA")] private static extern long mciSendString(string lpstrCommand, string lpstrReturnString, long uReturnLength, long hwndCallback); public static long PlayMidiFile(string MidiFile) { long lRet = -1; if (File.Exists(MidiFile)) { lRet = mciSendString("stop midi", "", 0, 0); lRet = mciSendString("close midi", "", 0, 0); lRet = mciSendString(("open sequencer!" + (MidiFile + " alias midi")), "", 0, 0); lRet = mciSendString("play midi", "", 0, 0); return lRet; } else { …
Last reply by PlausiblyDamp, -
-
-
- Leaders
- Administrators
- 3 replies
- 786 views
I have a folder [souds\Backgrounds] full on Midi files which I can play using a function [PlayMidiFile(string MidiFile)] and everything works fine... Thing is this folder [souds\Backgrounds] has a large amount of Midi files (and some other non-music files that must be ignored) and I want my program to randomly choose one everytime it starts... So, essentially I want to pass into [PlayMidiFiles] a string (MidiFile) representing the filename (with path) of a randomly selected Midi file in the [souds\Backgrounds] folder... So far this is what I have, I am able to get a string[] with a list of all the possible midi files, but now how do I RANDOMLY select one? string s…
Last reply by PlausiblyDamp, -
-
- 0 replies
- 1.2k views
Hi, I have a ASP.net 1.1 Webform that contains a datagrid , that contains 4 columns Product--Qty--Price--Total Each column has a textbox. The user will enter a value in the Product and the Qty and Price textbox. I want to call the TextChange event of the Qty and Price and textboxes whenever the text inside them changes. In the called textchange event I want to calculate the expression Qty*Price and assign the result to the Total textbox in the datagrid. How can I do this? Note:The controls are in the Datagrid.
Last reply by Rattlesnake, -
-
- Administrators
- 1 reply
- 1.1k views
hey i have been facing problem in passing parameters to an oracle stored procedure from c#.net. i think the connection is alright. kindly specify how to send a string and mention any changes that have to be done in the basic code of the procedure. kindly post the code also.... thanks in advance.... the procedure runs fine if it is executed from oracle directly.... comm.Parameters.Add("isno",Convert.ToInt16(txtserial.Text)); comm.Parameters[0].Direction = ParameterDirection.Input; comm.Parameters.Add("iname", txtname.Text ); comm.Parameters[1].Direction = ParameterDirection.Input; this is how i tried to pass an integer value and an string to oracle....
Last reply by PlausiblyDamp, -
-
- 0 replies
- 633 views
#include "FFT.h" #define TWO_PI 6.283185 void CopyAudioData(PBYTE pbAudioBuffer, PFLOAT pfRealBuffer,PFLOAT pfImagBuffer, int iNumBytes) { int i,n; short sAudioSample; for (i=0,n=0; i< iNumBytes; i+=2,n++) { // we need to align the data, because it has the wrong byte order sAudioSample = ((pbAudioBuffer[i+1] << 8) & 0xFF00)| (pbAudioBuffer & 0x00FF); pfImagBuffer[n] = 0; pfRealBuffer[n] = sAudioSample; // this is the correct 16bit SampleValue } } what would this look like converted?Using framework 2.0 At least get me pointed in the right direction :rolleyes: Example...,what the void,,,does that s…
Last reply by cheewacheewa, -
-
- *Gurus*
- 3 replies
- 6.3k views
I need to be able to open, edit, add files to, and save a word document from within my WinForm program. I've read a number of threads about the Word object, but none of them talk about displaying the document in some control. In VB6 I would use the object container and open the word object inside of it. It would display the object. I can't see what object to use here. Any answers? Thanks
Last reply by anjanesh, -
-
- 0 replies
- 6.2k views
I implemented a class to play my wav files (as shown below) in my game (background music, effects such as explosions, fire, gun shots, etc...): public class WAVSounds { [DllImport("WinMM.dll")] public static extern bool PlaySound(byte[]wfname, int fuSound); // flag values for SoundFlags argument on PlaySound public static int SND_SYNC = 0x0000; // play synchronously (default) public static int SND_ASYNC = 0x0001; // play asynchronously public static int SND_NODEFAULT = 0x0002; // silence (!default) if sound not found public static int SND_MEMORY = 0x0004; // pszSound points to a memory file public static int SND_LOOP = …
Last reply by Shaitan00, -
- 0 replies
- 702 views
Okay, I have not done a whole lot with ASP .NET 1.0-2.0. But I know enough to stumble my way through. I also know that my space has been switched from ColdFusion to ASP.NET 2.0. Now my question is, using VB and ASP, is it possible to write your own scripts to do change your profile the you want it to be or what? Does anyone know of any samples? Thanks, Chester
Last reply by cpopham, -
-
- Leaders
- 4 replies
- 1.9k views
I've always used Application.Exit() as a way of closing down my application. It recently dawned on me however that doing so doesn't appear to call either Dispose, OnClosed or OnClosing (at least a break point doesn't stop in them) of the form which is passed to Application.Run(). Now call me niave, but I always assumed this was the case. Whilst I never realised this untill now I have never appeared to have any ill effects such as memory leaks, now is this through sheer luck or is there another explanation (such as the Disposed method being called, but after the debugger has been detached from the appliction)? I've recently been starting todo some stuff that involves al…
Last reply by snarfblam, -
-
Hi: I'm having a 2003 to 2005 conversion that is petty, but I would like to know if there is a way to get the intellisense to just show one list of methods/properties...instead of the common/all one 2005 shows? Again, I know its petty, but its irritating. Eric
Last reply by ehelin,
-
Who's Online 0 Members, 0 Anonymous, 50 Guests (See full list)
- There are no registered users currently online