|
Hello Chris,
You can get started in POS using the following
POS for .NET 1.11 from Microsoft.
They are trying to reduce the problem of different hardware drivers/manufacturers as mentioned
by using service objects. Epson and a few others support OPOS for .NET and even give
examples in C#, which is nice...
Good Luck
Mick Curley
|
|
|
|
|
Hello,
I am building a composite control. The problem occurs in design-time. When i use a skin file it doesn't care about it in design-time. bu in run-time it use skin file.
Any solution would be most appreciated.
|
|
|
|
|
Hi,
I've Win app that communicates with a web page using Http via WebRequest.Create(site); etc...
1. How can I send a file to web server using Post method ? (It's Windows app, not web!!)
2. When communicating with web server, I get sometimes "System.Net.WebException: The server committed a protocol violation. Section=ResponseStatusLine" . I know It has something to do with .NET security settings. How can I tunrn it off ? (I'm not concerned about security since I've created the web site I'm connected to...)
3. I also use Ftp protocol for sending files and I'm getting strange Errors there too (like ftp command unrecognized etc...) and me feeling is that it has to be something with security too.
thanx for answer
zilo
|
|
|
|
|
hi
you can upload , download files with "WebClient" class in .net.
such as follow :
WebClient client = new WebClient();
client.UploadFile(...)
|
|
|
|
|
Hi guys,
i want to save the user input as time in the sql server. bud the problem is that it also saves the date. how can i save only the time, without date? i tried the datandtime and smalldatetime.
thanx
|
|
|
|
|
AFAIK, SQLServer stores Date along with Time. You can use varchar column instead.
|
|
|
|
|
You can't. However this doesn't matter, as you can format the date for presentation purposes using a format string that only shows the time e.g. hh:mm:ss .
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
Hi,
I want to pass one url and get response stream from that url.How can I do this with any java method.
Earlier I was using HttpWebRequest and HttpWebResponse APIs of System.net namespace. But now since I want output in stream of sbyte[] I want to use any java method. Please help me.
Prateek Gupta.
|
|
|
|
|
Response.getOutputStream() - But what is this parady?
Intelligence is measured by common sense not by how many scholarly books you read.
|
|
|
|
|
I want to use any java method which takes url and give me response of server.
Why I am doing so is I am using java.util.zip which takes sbyte[] earlier I was getting byte[] (when I was using httpWebRequest and httpWebResponse) and if i was trying to make this conversion byte[] to sbyte[] file which i m getting from server is getting damaged.So what I am thinking is if I can send url to any java method which can give me response back we can directly add this output stream to zipinputstream.
The code which I was using earlier is
HttpWebRequest hReq = (HttpWebRequest)HttpWebRequest.Create(ReqUrl);
HttpWebResponse hResp = (HttpWebResponse)hReq.GetResponse();
Stream str = hResp.GetResponseStream();
MemoryStream output = new MemoryStream();
int nBytesRead = 0;
byte[] buffer = new byte[1024];
while ((nBytesRead = str.Read(buffer, 0, 1024)) > 0)
{
//Read the stream until the end of file in chunks of 1024 bytes
output.Write(buffer, 0, nBytesRead);//Write the currently read bytes into the MemoryStream
}
hResp.Close();
output.Close();
return output.ToArray(); // This .ToArray() method gives me byte[] while i want sbyte[]
Any equivalent method in java can help me out.
Prateek Gupta.
|
|
|
|
|
hi, in the first application, i have a textbox which it's content is bind to a xml file. if there is 2 application running at the same time, when the second app changes the data in the xml file, how can i safely update the textbox which was binded to the xml file in the first app?
Thanks in advance
|
|
|
|
|
Ive started a project recently where ive been doing fairly well until i came across an issue, and is bugging me like mad.
Ive got a main form(will call it Form1)
Form1 has 2 User Control forms in it (will call Uform1 and Uform2)
Uform1 is a menu and Ufrom2 contains a DataGridview will dataset, table adapter.
Now im really new to winforms, but I did it this was because if I created lots of static forms
and the menu was statically set when ever I make a change to the menu I would have to change it on every menu on every form.
(If I should be doing this a better way please say so)
So the isssue, Ufrom1 needs to be able to access the data/controls on Uform2, I need to be able from Uform1 to update Uform2 tableadapter/controls.
I have no idea how to do this, ive seen some stuff but it looks so complicated yet this should be a everyday programmers task and should be straight forward??
Im looking for a a guide and example..please help.
thanks
David
|
|
|
|
|
ziwez0 wrote: So the isssue, Ufrom1 needs to be able to access the data/controls on Uform2, I need to be able from Uform1 to update Uform2 tableadapter/controls.
I don't know whether I understood your problem correctly, How about creating a public method in uform2 which is accessible from uform1 and does the data adapter updation ?
|
|
|
|
|
There's articles here on CP on communication between forms. The short answer is, use delegates.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
No offense, but this sounds like its a bit of mess architecturally. I would recommend that you take a look at implementing a pattern like the Model View Controller or Model View Presenter, which allows you to abstract the model (data) from the view.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Hi to all,
Whenever i run my application i want copy the address bar contents that are appears in the address bar into a string variable.
Is there any way to accessing the contents of Addressbar into a string variable.?
Please help me...
Pravin
|
|
|
|
|
Are you talking about ASP.NET? If it's in ASP.NET, try this Request.Url;
|
|
|
|
|
Here is how you do that:
var url = window.location.href;
This question is better asked in the web development forum, though, as this is Javascript, not C#.
Experience is the sum of all the mistakes you have done.
|
|
|
|
|
I was trying to add a timer to a checked list box and all I get is a check box without any text. I also tried creating a derived class and overriding the ToString function with no help. Anyone have any ideas?
It works fine with the TimeSpan struct, but not the Timer class.
private void button1_Click(object sender, EventArgs e)<br />
{<br />
Timer t = new Timer();<br />
checkedListBox1.Items.Add(t);<br />
ListBox1.Items.Add(t);<br />
}
I want to use the List box collection to keep track of all the timers I intend to create, having the user enable and disable them with the check boxes. Is there a better way to do this? And does anyone know why this isn't working? I thought that the list box and friends just used ToString for the display values.
Thanks for you time!
|
|
|
|
|
The ListBox will only use the ToString method if FormattingEnabled[^] is set to false. By default (when controls are added to a Form), this property is set to true.
When this is true, then the ListBox uses a TypeConverter to convert from the Timer to a String, for which there is none.
Take care,
Tom
-----------------------------------------------
Check out my blog at http://tjoe.wordpress.com
|
|
|
|
|
Thank you so much! Works great now. Just wish I could have found it!
|
|
|
|
|
hello friends
I am freshers for .net, i am developing asp.net(with C#.net)project,I want detail about how to create "MENU".
srinivasan.s
|
|
|
|
|
Add a menu strip control and then add it to the form properties.
Using the GUI editor to do this I find the easiest way.
|
|
|
|
|
|
Use the Menu [^] control.
/ravi
|
|
|
|