|
The biggest problem your facing is that you can't determine when the Flash window finishes it's painting. There is no notification given that signals the painting completion. You also can't determine when the scan is at the top of the monitor. Hardware interaction isn't available to your app without you writing driver-level code.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Thanks for the reply, I'm about to use it to try and get out of the task
|
|
|
|
|
I need a help here.
How to create dial-up setting for web browser I have create in visual C#. How to call in form with button click the New Connection Wizard like in IE.
Another question:
How to craete proxy setting form like in IE. This is also enough, can tell me how to call the Local Area Network(LAN) setting form when click button.
Another question:
How to display history of page have I been visit in a form and a botton fof delete it.
I'm realy in trouble please help me. Tq very much.
|
|
|
|
|
hi ..
i want to get image from scanner in my vc#2005 app, how to do ?
thanks
|
|
|
|
|
TWAIN is the mechanism most scanners use, although some may use WIA, I guess. There is no built in TWAIN support, but there are commercial and ( I think ) free libraries around. CP has at least one free C++ TWAIN library, and perhaps some .NET ones.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
thanks for reply..
does any free library for c# 2005 ??
|
|
|
|
|
Hi,
I am have to use Sybase database in my appliction.
Is there any way to use it without installing ODBC Driver on each machine, I mean like is there any way to directly connect to Sybase by imporing a reference dll or something.
Thank you!
"Mess with the Best, Die like the rest"
|
|
|
|
|
hi,
I want to send audio or a .wav file through a socket. On the otherside will the bytes be converted to play.
What is the best way to send a .wav file? the file will be converted into chars ? or something?
How can I easely record voice from microphone and send it immediatly through the socket?
Thanks in advance
|
|
|
|
|
Take a look at the NetworkStream class.
trab007 wrote: will be converted into chars ? or something?
Depends on your definition of chars.trab007 wrote: How can I easely record voice from microphone and send it immediatly through the socket?
Find a way to read in bytes of data from the microphone and then you can write then to a NetworkStream .
|
|
|
|
|
|
hello
i was assigning a progress bar to a thread which i don't know how much time takes to complete... actually the thread calls a method of a library that i have downloaded from net... so i don't know how to use the step property of the progress bar... please provide a code snippet that shows assigning a progress bar to a thread ... thanx
haseeb
|
|
|
|
|
Your thread cannot interact with the UI. You should use a backgroundworker object, it can send messages back to the UI thread to update a progress bar.
If you don't know how long it will take to complete, you obviously cannot show a progress bar properly, you'd have to show one that just moves from empty to full over and over, as Windows also does at times.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
hi, i want to know if there is a way in vbscript to empty and remove a declared variable from the memory after defining it, for example:
Dim var1
var1 = "value"
i want not only to empty the value assigned to the var1 variable, i want to remove it from the memory to free it to avoid the space reserved to it in the moemory,
I found that i can use empty and nothing, do they enough to free the memory???
Thanks alot
Hamody
|
|
|
|
|
You should post this in a more appropriate forum. One dedicated to VBScript.
|
|
|
|
|
what do u mean? don't u understand my question?
Thanks alot
Hamody
|
|
|
|
|
Mohammad Daba`an wrote: what do u mean?
This is the C# forum. Not the VB Script forum.
Mohammad Daba`an wrote: don't u understand my question?
Yes, I understand your question.
|
|
|
|
|
where is the vbscript forume
Thanks alot
Hamody
|
|
|
|
|
Next time, ask in the Visual Basic Forum.
Yes and no. It depends on the type of the variable and it's context.
No, there is no way to release it. You don't have to worry about it. Just let the runtime take care of it.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
HI
can anybody help me to solve the problm, it will be a great helpfull.
I am using remoting and i wants to raise an event in client from server. here s the code
SERVER
using System.Runtime.Remoting;
using System.Runtime.Remoting.Channels;
using System.Runtime.Remoting.Channels.Tcp;
namespace UpdTrackSrvr
{
public class Server
{
public Server()
{
}
public static void Main(string [] args)
{
//select channel to communicate
BinaryServerFormatterSinkProvider oSrvrProv = new BinaryServerFormatterSinkProvider();
oSrvrProv.TypeFilterLevel = System.Runtime.Serialization.Formatters.TypeFilterLevel.Full;
BinaryClientFormatterSinkProvider oClProv = new BinaryClientFormatterSinkProvider();
IDictionary Dict = new Hashtable();
Dict["port"] = 8085;
TcpChannel chnChanl = new TcpChannel(Dict, oClProv, oSrvrProv);
ChannelServices.RegisterChannel(chnChanl);
UpdTrig oUpdTrig = new UpdTrig();
RemotingConfiguration.RegisterWellKnownServiceType(oUpdTrig.GetType(),
"UpdTrackSrvr",
WellKnownObjectMode.Singleton);
System.Windows.Forms.MessageBox.Show("Server Activated");
}
}
}
UpdTrig
using System;
using System.Runtime.Remoting;
using System.Runtime.Remoting.Channels;
using System.Runtime.Remoting.Channels.Tcp;
namespace UpdTrackSrvr
{
public delegate void del_ev();
public class UpdTrig : MarshalByRefObject
{
public event del_ev UpdEvt;
public UpdTrig()
{
}
public String ReplyMessage(String msg)
{
System.Windows.Forms.MessageBox.Show("Client : "+ msg);
return "Server : s! I'm here";
}
public void RaiseEvent()
{
UpdEvt();
}
}
}
CLIENT
using System;
using System.Runtime.Remoting;
using System.Runtime.Remoting.Channels;
using System.Runtime.Remoting.Channels.Tcp;
namespace UpdTrackClnt
{
public sealed class Loader
{
public static void Main(string [] args)
{
new Client().RaiseRemoteEvent();
}
}
public class Client : MarshalByRefObject
{
private UpdTrackSrvr.UpdTrig oUpdTrig;
public override object InitializeLifetimeService()
{
return null;
}
public Client()
{
TcpChannel chan = new TcpChannel();
ChannelServices.RegisterChannel(chan);
oUpdTrig = (UpdTrackSrvr.UpdTrig) Activator.GetObject(
typeof(UpdTrackSrvr.UpdTrig),
"tcp://localhost:8085/UpdTrackSrvr");
// oUpdTrig.ReplyMessage("Hello?");
oUpdTrig.UpdEvt += new UpdTrackSrvr.del_ev(oUpdTrig_UpdEvt);
oUpdTrig.RaiseEvent();
}
public void oUpdTrig_UpdEvt()
{
System.Windows.Forms.MessageBox.Show("EVENT");
}
}
}
The server side running fine, but when i run the client, when execution is on the line " oUpdTrig.UpdEvt += new UpdTrackSrvr.del_ev(oUpdTrig_UpdEvt);
" then i gets an error "Cannot find the assembly UpdTrackClnt, Version=1.0.2632.26133, Culture=neutral, PublicKeyToken=null."
I m stuck in the line
Thanks in advance
Panal
|
|
|
|
|
I set up a listbox linked to a database (Microsoft Visual C# generated the adapter, dataset, and binding source for me) and it's working just fine, except that the text that shows up in the listbox is garbage. I need to be able to run an operation on each item that would show up in the listbox. How can I "intercept" each item as it gets piped from the database to the listbox. I've attempted a bunch of foreach loops and such, but I can't seem to "get into" any of the objects and find the text that shows up in the listbox. There doesnt seem to be a "myBindingSource.currentItem" or anything to make this easy.
|
|
|
|
|
I would like to build a simple sql db search with a textbox, button, and datagridview.
Example: enter customer Name in textbox hit go button and fill datagridview with results from db table.
If you have the time or a link to an article/tutorial I would be forever grateful.
Thanks Again
|
|
|
|
|
Hope following method will help.
public void BindDataGrid(string sql, GridView GV)
{
//connect to database
dbConnect();
try
{
mysqlCommand = new MySqlCommand(sql);
mysqlCommand.Connection = connection;
mysqlAdapter = new MySqlDataAdapter(mysqlCommand);
dataset = new DataSet();
mysqlAdapter.Fill(dataset, "Table");
GV.DataSource = dataset;
GV.DataBind();
}
catch (Exception)
{
}
finally
{
connection.Close();
connection.Dispose();
}
}
|
|
|
|
|
hello guys,I know it's really a very beginner type question but it is the key point of my project. I would like the user to enter a 64 bit(8 characters)key and a text .. then what I will do is all the binary operations .. like binary shifting, XOR ing the binary values of text entered...I am at the beginnig yet.So first I should convert what user entered as text(characer) format to binary form to process.... Would you help me ? I would appreciate that... by the way I am trying to implement the DES algorithm on C # .. thank you
hail programming..
|
|
|
|
|
A string is made of characters, which have a numeric value. You can take each char, and convert it to an int, and do whatever binary operations on it that you like.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
I use a double type variable and I want to display value of variable in form of "***.**" example 6.88 .Could you help me to do it? Thank you?
|
|
|
|